2011-01-14 Andrey Kosyakov <caseq@chromium.org>
authorcaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Jan 2011 13:31:09 +0000 (13:31 +0000)
committercaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Jan 2011 13:31:09 +0000 (13:31 +0000)
        Unreviewed test fix.
        Filter out /favicon.ico from page resources list to avoid test expectations mismatch on GTK.

        * http/tests/inspector/extensions-resources-redirect.html:

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

LayoutTests/ChangeLog
LayoutTests/http/tests/inspector/extensions-resources-redirect.html

index 4f68900..103a843 100644 (file)
@@ -1,5 +1,12 @@
 2011-01-14  Andrey Kosyakov  <caseq@chromium.org>
 
+        Unreviewed test fix.
+        Filter out /favicon.ico from page resources list to avoid test expectations mismatch on GTK.
+
+        * http/tests/inspector/extensions-resources-redirect.html:
+
+2011-01-14  Andrey Kosyakov  <caseq@chromium.org>
+
         Reviewed by Pavel Feldman.
 
         Web Inspector: redirected resources not handled properly in Network panel
index b6d5b76..4b64989 100755 (executable)
@@ -45,8 +45,12 @@ function extension_testRedirectResourcesInHAR(nextTest)
     {
         var entries = har.entries;
         var urls = [];
-        for (var i = 0; i < entries.length; ++i)
-            urls.push(entries[i].request.url);
+        for (var i = 0; i < entries.length; ++i) {
+            var url = entries[i].request.url;
+            // Workaround for GTK DRT that requests favicon.ico along with the page.
+            if (!/\/favicon\.ico$/.test(url))
+                urls.push(url);
+        }
         urls.sort();
         output("Resources in HAR:\n" + urls.join("\n"));
         nextTest();