123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>BabylonJS - Build validation page</title>
- <link href="index.css" rel="stylesheet" />
- <script src="https://preview.babylonjs.com/draco_decoder.js"></script>
- <script src="https://unpkg.com/earcut@2.1.1/dist/earcut.min.js"></script>
- <script src="../../Tools/DevLoader/BabylonLoader.js"></script>
- </head>
- <body>
- <script>
- BABYLONDEVTOOLS.Loader.require('validation.js')
- .load(function() {
- // Loading tests
- var xhr = new XMLHttpRequest();
- xhr.open("GET", "config.json", true);
- xhr.addEventListener("load", function () {
- if (xhr.status === 200) {
- config = JSON.parse(xhr.responseText);
- // Run tests
- var index = 0;
- if (window.location.search) {
- justOnce = true;
- var title = window.location.search.replace("?", "").replace(/%20/g, " ");
- for (var index = 0; index < config.tests.length; index++) {
- if (config.tests[index].title === title) {
- break;
- }
- }
- }
- var recursiveRunTest = function(i) {
- runTest(i, function() {
- i++;
- if (justOnce || i >= config.tests.length) {
- return;
- }
- recursiveRunTest(i);
- });
- }
- recursiveRunTest(index);
- }
- }, false);
- xhr.send();
- });
- </script>
- </body>
- </html>
|