Title: [144435] trunk/LayoutTests
Revision
144435
Author
[email protected]
Date
2013-03-01 03:36:57 -0800 (Fri, 01 Mar 2013)

Log Message

Flaky test: http/tests/inspector/resource-tree/resource-request-content-while-loading.html
https://bugs.webkit.org/show_bug.cgi?id=111123

Reviewed by Alexander Pavlov.

* TestExpectations:
* http/tests/inspector/resource-tree/resource-request-content-while-loading.html:
* platform/chromium/TestExpectations:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (144434 => 144435)


--- trunk/LayoutTests/ChangeLog	2013-03-01 10:33:48 UTC (rev 144434)
+++ trunk/LayoutTests/ChangeLog	2013-03-01 11:36:57 UTC (rev 144435)
@@ -1,3 +1,14 @@
+2013-03-01  Vsevolod Vlasov  <[email protected]>
+
+        Flaky test: http/tests/inspector/resource-tree/resource-request-content-while-loading.html
+        https://bugs.webkit.org/show_bug.cgi?id=111123
+
+        Reviewed by Alexander Pavlov.
+
+        * TestExpectations:
+        * http/tests/inspector/resource-tree/resource-request-content-while-loading.html:
+        * platform/chromium/TestExpectations:
+
 2013-02-28  Alexander Pavlov  <[email protected]>
 
         Web Inspector: Selector's raw start position in its line is considered to be 0 when computing UILocation

Modified: trunk/LayoutTests/TestExpectations (144434 => 144435)


--- trunk/LayoutTests/TestExpectations	2013-03-01 10:33:48 UTC (rev 144434)
+++ trunk/LayoutTests/TestExpectations	2013-03-01 11:36:57 UTC (rev 144435)
@@ -5,4 +5,3 @@
 # pending functional patch and per-port verification
 webkit.org/b/109954 css3/line-break [ Skip ]
 
-webkit.org/b/111123 http/tests/inspector/resource-tree/resource-request-content-while-loading.html [ Failure Pass ]

Modified: trunk/LayoutTests/http/tests/inspector/resource-tree/resource-request-content-while-loading.html (144434 => 144435)


--- trunk/LayoutTests/http/tests/inspector/resource-tree/resource-request-content-while-loading.html	2013-03-01 10:33:48 UTC (rev 144434)
+++ trunk/LayoutTests/http/tests/inspector/resource-tree/resource-request-content-while-loading.html	2013-03-01 11:36:57 UTC (rev 144435)
@@ -3,38 +3,45 @@
 <script src=""
 <script src=""
 <script src=""
-<link rel="stylesheet" href=""
 <script>
+function loadStylesheet()
+{
+    var styleElement = document.createElement("link");
+    styleElement.rel = "stylesheet";
+    styleElement.href = ""
+    document.head.appendChild(styleElement);
+}
+
 function test()
 {
-      var contentWasRequested = false;
-      var resource;
-      InspectorTest.addSniffer(WebInspector.ResourceTreeFrame.prototype, "_addRequest", requestAdded, true);
-      InspectorTest.addSniffer(PageAgent, "getResourceContent", pageAgentGetResourceContentCalled, true);
-      InspectorTest.reloadPage(function() {});
+    InspectorTest.addSniffer(WebInspector.ResourceTreeFrame.prototype, "_addRequest", requestAdded, true);
+    InspectorTest.addSniffer(PageAgent, "getResourceContent", pageAgentGetResourceContentCalled, true);
+    InspectorTest.evaluateInPage("loadStylesheet()");
+    var contentWasRequested = false;
+    var resource;
 
-      function requestAdded(request)
-      {
-          if (request.url.indexOf("styles-initial") === -1)
-              return;
-          resource = InspectorTest.resourceMatchingURL("styles-initial");
-          if (!resource || !resource.request || contentWasRequested)
-              return;
-          resource.requestContent(contentLoaded);
-          contentWasRequested = true;
-      }
+    function requestAdded(request)
+    {
+        if (request.url.indexOf("styles-initial") === -1)
+            return;
+        resource = InspectorTest.resourceMatchingURL("styles-initial");
+        if (!resource || !resource.request || contentWasRequested)
+            return;
+        resource.requestContent(contentLoaded);
+        contentWasRequested = true;
+    }
 
-      function pageAgentGetResourceContentCalled()
-      {
-          InspectorTest.assertTrue(resource.request.finished);
-      }
+    function pageAgentGetResourceContentCalled()
+    {
+        InspectorTest.assertTrue(resource.request.finished);
+    }
 
-      function contentLoaded(content)
-      {
-          InspectorTest.addResult("Resource url: " + resource.url);
-          InspectorTest.addResult("Resource content: " + content);
-          InspectorTest.completeTest();
-      }
+    function contentLoaded(content)
+    {
+        InspectorTest.addResult("Resource url: " + resource.url);
+        InspectorTest.addResult("Resource content: " + content);
+        InspectorTest.completeTest();
+    }
 }
 </script>
 </head>

Modified: trunk/LayoutTests/platform/chromium/TestExpectations (144434 => 144435)


--- trunk/LayoutTests/platform/chromium/TestExpectations	2013-03-01 10:33:48 UTC (rev 144434)
+++ trunk/LayoutTests/platform/chromium/TestExpectations	2013-03-01 11:36:57 UTC (rev 144435)
@@ -1086,7 +1086,6 @@
 webkit.org/b/65770 http/tests/inspector/resource-main-cookies.php
 
 webkit.org/b/83890 http/tests/inspector/resource-tree/resource-tree-document-url.html [ Failure Pass Timeout ]
-webkit.org/b/83890 http/tests/inspector/resource-tree/resource-request-content-while-loading.html [ Failure Pass Timeout ]
 webkit.org/b/83890 [ Win Linux Release ] http/tests/inspector/resource-tree/resource-tree-frame-add.html [ Pass Timeout ]
 webkit.org/b/83890 [ Win Linux Release ] http/tests/inspector/resource-tree/resource-tree-events.html [ Pass Timeout ]
 webkit.org/b/83890 [ Win Linux Release ] http/tests/inspector/resource-tree/resource-tree-non-unique-url.html [ Pass Failure ]
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to