12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>BabylonJS - Build validation page</title>
- <link href="index.css" rel="stylesheet" />
- <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>
|