2010-08-31 Andrey Kosyakov <caseq@chromium.org>
authorcaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Aug 2010 13:49:20 +0000 (13:49 +0000)
committercaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Aug 2010 13:49:20 +0000 (13:49 +0000)
        Unreviewed. Attempt to fix flakiness of inspector extensions API audits tests on Qt.
        Synchronize last output() with signalling test completion.

        * inspector/resources/extension-main.html:
        * inspector/resources/extension-main.js:
        (onTestsDone):

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

LayoutTests/ChangeLog
LayoutTests/inspector/resources/extension-main.html
LayoutTests/inspector/resources/extension-main.js

index 0c0b58c..e352adf 100644 (file)
@@ -1,3 +1,12 @@
+2010-08-31  Andrey Kosyakov  <caseq@chromium.org>
+
+        Unreviewed. Attempt to fix flakiness of inspector extensions API audits tests on Qt.
+        Synchronize last output() with signalling test completion.
+
+        * inspector/resources/extension-main.html:
+        * inspector/resources/extension-main.js:
+        (onTestsDone):
+
 2010-08-31  Philippe Normand  <pnormand@igalia.com>
 
         Rubber-stamped by Xan Lopez.
index 160b088..82d17cc 100644 (file)
@@ -2,9 +2,9 @@
 <head>
 <script src="../../http/tests/inspector/inspector-test.js"></script>
 <script type="text/javascript">
-function output(message)
+function output(message, callback)
 {
-    webInspector.inspectedWindow.evaluate("output(unescape('" + escape(message) + "'));");
+    webInspector.inspectedWindow.evaluate("output(unescape('" + escape(message) + "'));", callback);
 }
 
 output("Started extension.");
index b1a47bd..f439960 100644 (file)
@@ -26,8 +26,9 @@ function runTests()
 
 function onTestsDone()
 {
-    output("All tests done.");
-    top.postMessage("extension-tests-done","*");
+    output("All tests done.", function() {
+        top.postMessage("extension-tests-done","*");
+    });
 }
 
 function runTest(test, name)