Quellcode durchsuchen

Fix validation tests to handle pg versions correctly

David Catuhe vor 8 Jahren
Ursprung
Commit
2d59008de2

Datei-Diff unterdrückt, da er zu groß ist
+ 1187 - 1177
dist/preview release/babylon.d.ts


Datei-Diff unterdrückt, da er zu groß ist
+ 1187 - 1177
dist/preview release/babylon.module.d.ts


BIN
tests/validation/ReferenceImages/Flat2009.png


+ 1 - 1
tests/validation/config.json

@@ -209,7 +209,7 @@
     {
       "title": "MultiSample render targets",
       "renderCount": 10,
-      "playgroundId": "#12MKMN",
+      "playgroundId": "#12MKMN#0",
       "referenceImage": "MultiSample render targets.png"
     },            
     {

+ 1 - 1
tests/validation/validation.js

@@ -196,7 +196,7 @@ runTest(index) {
             }
         }
 
-        xmlHttp.open("GET", snippetUrl + "/" + test.playgroundId.replace("#", "/"));
+        xmlHttp.open("GET", snippetUrl + test.playgroundId.replace(/#/g, "/"));
         xmlHttp.send();
     } else {
         // Fix references