MCPcopy Create free account
hub / github.com/BabylonJS/BabylonNative / onError

Function onError

Apps/ValidationTests/Scripts/validation_native.js:146–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144 var retry = 0;
145
146 var onError = function() {
147 retry++;
148 if (retry < maxRetry) {
149 setTimeout(function() {
150 loadPG();
151 }, retryTime);
152 }
153 else {
154 // Skip the test as we can not fetch the source.
155 done(true);
156 }
157 }
158
159 var loadPG = function() {
160 var xmlHttp = new XMLHttpRequest();

Callers 1

loadPGFunction · 0.70

Calls 1

loadPGFunction · 0.85

Tested by

no test coverage detected