REGRESSION(r122327): It made http/tests/inspector/network/network-request-revision...
authorvsevik@chromium.org <vsevik@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jul 2012 10:02:54 +0000 (10:02 +0000)
committervsevik@chromium.org <vsevik@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jul 2012 10:02:54 +0000 (10:02 +0000)
https://bugs.webkit.org/show_bug.cgi?id=90979

Reviewed by Pavel Feldman.

* http/tests/inspector/network/network-request-revision-content-expected.txt:
* http/tests/inspector/network/network-request-revision-content.html:
* platform/qt/Skipped:

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

LayoutTests/ChangeLog
LayoutTests/http/tests/inspector/network/network-request-revision-content-expected.txt
LayoutTests/http/tests/inspector/network/network-request-revision-content.html
LayoutTests/platform/qt/Skipped

index 4db7255..ecc8a3f 100644 (file)
@@ -1,3 +1,14 @@
+2012-07-12  Vsevolod Vlasov  <vsevik@chromium.org>
+
+        REGRESSION(r122327): It made http/tests/inspector/network/network-request-revision-content.html fail on Lion, Qt
+        https://bugs.webkit.org/show_bug.cgi?id=90979
+
+        Reviewed by Pavel Feldman.
+
+        * http/tests/inspector/network/network-request-revision-content-expected.txt:
+        * http/tests/inspector/network/network-request-revision-content.html:
+        * platform/qt/Skipped:
+
 2012-07-12  Xingnan Wang  <xingnan.wang@intel.com>
 
         [IndexedDB] upperOpen set to true in lowerBound()/lowerOpen set to true in upperBound()
index 2b807c7..93a9541 100644 (file)
@@ -1,7 +1,6 @@
-CONSOLE MESSAGE: line 1: Done.
 Tests how revision requests content if original content was not loaded yet.
 
 Bug 63631
-http://127.0.0.1:8000/inspector/network/resources/script.js
+http://127.0.0.1:8000/inspector/network/resource/style.css
 
 
index 0e6ea81..7d94184 100644 (file)
@@ -2,24 +2,28 @@
 <head>
 <script src="../inspector-test.js"></script>
 <script>
-function loadScript()
+function loadStylesheet()
 {
-    var js = document.createElement("script");
-    js.src = "resources/script.js";
-    document.head.appendChild(js);
+    var css = document.createElement("link");
+    css.rel = "stylesheet";
+    css.type = "text/css";
+    css.href = "resource/style.css";
+    document.head.appendChild(css);
 }
 
 function test()
 {
     InspectorTest.addConsoleSniffer(step2, true);
-    InspectorTest.evaluateInPage("loadScript()");
+    InspectorTest.addSniffer(WebInspector.StylesUISourceCodeProvider.prototype, "_resourceAdded", true);
+    InspectorTest.evaluateInPage("loadStylesheet()");
 
     var resource;
-    function step2(msg)
+    function step2(event)
     {
         var request = WebInspector.panels.network.requests[WebInspector.panels.network.requests.length - 1];
         uiSourceCode = WebInspector.workspace.uiSourceCodeForURL(request.url);
-        resource = WebInspector.resourceForURL(request.url);
+        if (!uiSourceCode)
+            return;
         uiSourceCode.addRevision("");
         uiSourceCode.history[0].requestContent(step3);
     }
index 98d26bf..cc70554 100644 (file)
@@ -695,10 +695,6 @@ http/tests/misc/xslt-bad-import.html
 # https://bugs.webkit.org/show_bug.cgi?id=87208
 http/tests/cookies/js-get-and-set-http-only-cookie.html
 
-# REGRESSION(r122327): It made http/tests/inspector/network/network-request-revision-content.html fail on Lion, Qt
-# https://bugs.webkit.org/show_bug.cgi?id=90979
-http/tests/inspector/network/network-request-revision-content.html
-
 # =========================================================================== #
 #       Failing xmlhttprequest tests                                          #
 # =========================================================================== #