Browse Source

Fix validation tests to handle pg versions correctly

David Catuhe 8 năm trước cách đây
mục cha
commit
2d59008de2

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1187 - 1177
dist/preview release/babylon.d.ts


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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