Title: [133595] trunk/LayoutTests
Revision
133595
Author
[email protected]
Date
2012-11-06 06:08:39 -0800 (Tue, 06 Nov 2012)

Log Message

Web Inspector: Flakyness in http/tests/inspector/network/network-initiator-from-console.html
https://bugs.webkit.org/show_bug.cgi?id=101195

Unreviewed test flakiness fix.

* http/tests/inspector/network/network-initiator-from-console-expected.txt:
* http/tests/inspector/network/network-initiator-from-console.html:
* http/tests/inspector/network/resources/silent_script.js: Added.
(foo):

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (133594 => 133595)


--- trunk/LayoutTests/ChangeLog	2012-11-06 14:07:36 UTC (rev 133594)
+++ trunk/LayoutTests/ChangeLog	2012-11-06 14:08:39 UTC (rev 133595)
@@ -1,3 +1,15 @@
+2012-11-06  Vsevolod Vlasov  <[email protected]>
+
+        Web Inspector: Flakyness in http/tests/inspector/network/network-initiator-from-console.html
+        https://bugs.webkit.org/show_bug.cgi?id=101195
+
+        Unreviewed test flakiness fix.
+
+        * http/tests/inspector/network/network-initiator-from-console-expected.txt:
+        * http/tests/inspector/network/network-initiator-from-console.html:
+        * http/tests/inspector/network/resources/silent_script.js: Added.
+        (foo):
+
 2012-11-06  Stephen White  <[email protected]>
 
         [Chromium] Unreviewed gardening.

Modified: trunk/LayoutTests/http/tests/inspector/network/network-initiator-from-console-expected.txt (133594 => 133595)


--- trunk/LayoutTests/http/tests/inspector/network/network-initiator-from-console-expected.txt	2012-11-06 14:07:36 UTC (rev 133594)
+++ trunk/LayoutTests/http/tests/inspector/network/network-initiator-from-console-expected.txt	2012-11-06 14:08:39 UTC (rev 133595)
@@ -1,4 +1,3 @@
-CONSOLE MESSAGE: line 1: Done.
 Tests that there is no _javascript_ error when console evaluation causes resource loading.
 
 Bug 65466

Modified: trunk/LayoutTests/http/tests/inspector/network/network-initiator-from-console.html (133594 => 133595)


--- trunk/LayoutTests/http/tests/inspector/network/network-initiator-from-console.html	2012-11-06 14:07:36 UTC (rev 133594)
+++ trunk/LayoutTests/http/tests/inspector/network/network-initiator-from-console.html	2012-11-06 14:08:39 UTC (rev 133595)
@@ -18,11 +18,10 @@
 
     function step1()
     {
-        InspectorTest.addConsoleSniffer(step2);
         WebInspector.networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.RequestStarted, onRequest);
         var str = "";
         str += "var s = document.createElement(\"script\");";
-        str += "s.src = ""
+        str += "s.src = ""
         str += "document.head.appendChild(s);";
         WebInspector.runtimeModel.evaluate(str, "console", true, undefined, undefined, undefined, function(){});
     }
@@ -30,13 +29,13 @@
     function onRequest(event)
     {
         var request = event.data;
-        if (/script.js/.test(request.url))
+        if (/silent_script.js/.test(request.url))
             step2();
     }
 
     function step2()
     {
-        if (!findRequestByURL(/script.js/))
+        if (!findRequestByURL(/silent_script.js/))
             return;
 
         WebInspector.panel("network").show();

Added: trunk/LayoutTests/http/tests/inspector/network/resources/silent_script.js (0 => 133595)


--- trunk/LayoutTests/http/tests/inspector/network/resources/silent_script.js	                        (rev 0)
+++ trunk/LayoutTests/http/tests/inspector/network/resources/silent_script.js	2012-11-06 14:08:39 UTC (rev 133595)
@@ -0,0 +1,4 @@
+function foo()
+{
+    return 2 + 2;
+}
Property changes on: trunk/LayoutTests/http/tests/inspector/network/resources/silent_script.js
___________________________________________________________________

Added: svn:eol-style

_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to