BabylonNative icon indicating copy to clipboard operation
BabylonNative copied to clipboard

[TESTUNITS] XmlHTTPRequest polyfill

Open CedricGuillemet opened this issue 5 years ago • 3 comments

XmlHTTPRequest is an essential part of Babylon Native is has a different implementation for each platform. Make Unittest (playground that will be reference in browser) to test the various schemas (file, app, http, https), validate error handling (non existing local resource, error 40X, 50X) and fiability (large files) And fix encountered issue like this one : https://github.com/BabylonJS/BabylonNative/issues/292

Also, check the number of times the downloaded buffer is copied (from java to c++ on Android, can we take care of buffer refcount on iOS/MacOS ?)

CedricGuillemet avatar Sep 30 '20 08:09 CedricGuillemet

Related: https://github.com/BabylonJS/BabylonNative/issues/213, https://github.com/BabylonJS/BabylonNative/issues/228

bghgary avatar Oct 01 '20 18:10 bghgary

xmlhttprequest does not handle times out properly. there is an exception on Apple and I'm not sure it's properly reported to the JS with an exception.

CedricGuillemet avatar Nov 30 '20 15:11 CedricGuillemet

#802 is tracking progress on unit testing

darraghjburke avatar Jun 15 '21 20:06 darraghjburke

Most of the testing is already implemented.

bghgary avatar May 25 '23 18:05 bghgary