[Webkit-unassigned] [Bug 211405] New: REGRESSION (r261109): [ Mac ] inspector/css/getAllStyleSheets.html is failing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 4 15:07:20 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=211405

            Bug ID: 211405
           Summary: REGRESSION (r261109): [ Mac ]
                    inspector/css/getAllStyleSheets.html is failing
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: tsavell at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

inspector/css/getAllStyleSheets.html

This test it failing sense the changes in r261109

History:
https://results.webkit.org/?suite=layout-tests&test=inspector%2Fcss%2FgetAllStyleSheets.html

Diff:
--- /Volumes/Data/slave/catalina-release-tests-wk1/build/layout-test-results/inspector/css/getAllStyleSheets-expected.txt
+++ /Volumes/Data/slave/catalina-release-tests-wk1/build/layout-test-results/inspector/css/getAllStyleSheets-actual.txt
@@ -1,20 +1,35 @@
 Test CSS.getAllStyleSheets returns expected information for different style sheet sources.

-PASS: There should be four stylesheets.
+Uncaught exception in Inspector page: WI.cssManager.fetchStyleSheetsIfNeeded is not a function. (In 'WI.cssManager.fetchStyleSheetsIfNeeded()', 'WI.cssManager.fetchStyleSheetsIfNeeded' is undefined)

-URL: inspector/css/resources/external.css
-OFFSET: (0, 0)
-PASS: Stylesheet should have a frame.
+Stack Trace:
+#0: (anonymous) (test)
+#1: (anonymous) (runTestMethodInFrontend)
+#2: (anonymous) (eval code)
+#3: eval [native code]
+#4: (anonymous) (TestCombined.js:9590:24)
+#5: _flushPendingScripts (TestCombined.js:7778:24)
+#6: _dispatchResponse (TestCombined.js:7628:38)
+#7: dispatch (TestCombined.js:7567:35)
+#8: dispatch (TestCombined.js:7160:52)
+#9: (anonymous) (TestCombined.js:8098:34)

-URL: <style> on inspector/css/getAllStyleSheets.html
-OFFSET: (5, 7)
-PASS: Stylesheet should have a frame.
+Evaluated Code:
+function test()
+{
+    WI.cssManager.fetchStyleSheetsIfNeeded();
+    InspectorBackend.runAfterPendingDispatches(function() {
+        let styleSheets = WI.cssManager.styleSheets;
+        InspectorTest.expectThat(styleSheets.length === 4, "There should be four stylesheets.");

-URL: <style> on inspector/css/getAllStyleSheets.html
-OFFSET: (6, 7)
-PASS: Stylesheet should have a frame.
+        for (let styleSheet of styleSheets) {
+            InspectorTest.log("");
+            InspectorTest.log(`URL: ${styleSheet.isInlineStyleTag() ? "<style> on " : ""}${sanitizeURL(styleSheet.url)}`);
+            InspectorTest.log(`OFFSET: (${styleSheet.startLineNumber}, ${styleSheet.startColumnNumber})`);
+            InspectorTest.expectThat(styleSheet.parentFrame, "Stylesheet should have a frame.");
+        }

-URL: inspector/css/getAllStyleSheets.html
-OFFSET: (0, 0)
-PASS: Stylesheet should have a frame.
+        InspectorTest.completeTest();
+    });
+}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200504/42bf05c1/attachment.htm>


More information about the webkit-unassigned mailing list