Unreviewed, fix ability to run tests in browser.
authorfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Sep 2017 21:45:05 +0000 (21:45 +0000)
committerfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Sep 2017 21:45:05 +0000 (21:45 +0000)
* WebGPUShadingLanguageRI/Test.html:
* WebGPUShadingLanguageRI/index.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222353 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/WebGPUShadingLanguageRI/Test.html
Tools/WebGPUShadingLanguageRI/index.html

index 54d2c36..da7ae5e 100644 (file)
@@ -1,3 +1,10 @@
+2017-09-21  Filip Pizlo  <fpizlo@apple.com>
+
+        Unreviewed, fix ability to run tests in browser.
+
+        * WebGPUShadingLanguageRI/Test.html:
+        * WebGPUShadingLanguageRI/index.html:
+
 2017-09-21  Jonathan Bedard  <jbedard@apple.com>
 
         webkitpy: Ignore failure to get updated selenium version
index 033d5e7..4e151d9 100644 (file)
@@ -77,6 +77,7 @@
 <script src="IntLiteral.js"></script>
 <script src="IntLiteralType.js"></script>
 <script src="Intrinsics.js"></script>
+<script src="LateChecker.js"></script>
 <script src="Lexer.js"></script>
 <script src="LexerToken.js"></script>
 <script src="LiteralTypeChecker.js"></script>
@@ -157,22 +158,15 @@ function doTestInBrowser()
     var lastTime;
     function next()
     {
-        var before = Date.now();
-        for (;;) {
-            try {
-                if (tester.next().done)
-                    return;
-            } catch (e) {
-                print("ERROR: " + e.message);
-                print(e.stack);
+        try {
+            if (tester.next().done)
                 return;
-            }
-            var now = Date.now();
-            if (now - before > 100) {
-                window.setTimeout(next, 0);
-                return;
-            }
+        } catch (e) {
+            print("ERROR: " + e.message);
+            print(e.stack);
+            return;
         }
+        window.setTimeout(next, 0);
     }
     next();
 }
index 15b70c3..8968bf5 100644 (file)
@@ -77,6 +77,7 @@
 <script src="IntLiteral.js"></script>
 <script src="IntLiteralType.js"></script>
 <script src="Intrinsics.js"></script>
+<script src="LateChecker.js"></script>
 <script src="Lexer.js"></script>
 <script src="LexerToken.js"></script>
 <script src="LiteralTypeChecker.js"></script>