Title: [249809] trunk/LayoutTests
Revision
249809
Author
drou...@apple.com
Date
2019-09-12 08:09:31 -0700 (Thu, 12 Sep 2019)

Log Message

REGRESSION? (r249786): inspector/canvas/context-attributes.html is failing on macOS WK1
https://bugs.webkit.org/show_bug.cgi?id=201714
<rdar://problem/55290473>

Reviewed by Joseph Pecoraro.

* inspector/canvas/context-attributes.html:
* inspector/canvas/context-attributes-expected.txt:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (249808 => 249809)


--- trunk/LayoutTests/ChangeLog	2019-09-12 15:04:29 UTC (rev 249808)
+++ trunk/LayoutTests/ChangeLog	2019-09-12 15:09:31 UTC (rev 249809)
@@ -1,3 +1,14 @@
+2019-09-12  Devin Rousso  <drou...@apple.com>
+
+        REGRESSION? (r249786): inspector/canvas/context-attributes.html is failing on macOS WK1
+        https://bugs.webkit.org/show_bug.cgi?id=201714
+        <rdar://problem/55290473>
+
+        Reviewed by Joseph Pecoraro.
+
+        * inspector/canvas/context-attributes.html:
+        * inspector/canvas/context-attributes-expected.txt:
+
 2019-09-12  Russell Epstein  <repst...@apple.com>
 
         Layout Test http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-invalidstaterror.html is flaky.

Modified: trunk/LayoutTests/inspector/canvas/context-attributes-expected.txt (249808 => 249809)


--- trunk/LayoutTests/inspector/canvas/context-attributes-expected.txt	2019-09-12 15:04:29 UTC (rev 249808)
+++ trunk/LayoutTests/inspector/canvas/context-attributes-expected.txt	2019-09-12 15:09:31 UTC (rev 249809)
@@ -32,7 +32,7 @@
   "antialias": true,
   "premultipliedAlpha": true,
   "preserveDrawingBuffer": false,
-  "powerPreference": "default",
+  "powerPreference": "<filtered>",
   "failIfMajorPerformanceCaveat": false
 }
 
@@ -46,7 +46,7 @@
   "antialias": true,
   "premultipliedAlpha": true,
   "preserveDrawingBuffer": false,
-  "powerPreference": "default",
+  "powerPreference": "<filtered>",
   "failIfMajorPerformanceCaveat": false
 }
 PASS: Canvas context should have attribute "alpha" with value "false".

Modified: trunk/LayoutTests/inspector/canvas/context-attributes.html (249808 => 249809)


--- trunk/LayoutTests/inspector/canvas/context-attributes.html	2019-09-12 15:04:29 UTC (rev 249808)
+++ trunk/LayoutTests/inspector/canvas/context-attributes.html	2019-09-12 15:09:31 UTC (rev 249809)
@@ -27,7 +27,13 @@
 
                     let contextDisplayName = WI.Canvas.displayNameForContextType(contextType);
                     InspectorTest.expectEqual(canvas.contextType, contextType, `Canvas context should be "${contextDisplayName}".`);
-                    InspectorTest.log(JSON.stringify(canvas.contextAttributes, null, 2));
+                    InspectorTest.json(canvas.contextAttributes, (key, value) => {
+                        if (key === "powerPreference") {
+                            InspectorTest.assert(value === "default" || value === "low-power" || value === "high-performance", `Unexpected "powerPreference" value: ${value}`);
+                            return "<filtered>";
+                        }
+                        return value;
+                    });
 
                     for (let name in contextAttributes)
                         InspectorTest.expectEqual(canvas.contextAttributes[name], contextAttributes[name], `Canvas context should have attribute "${name}" with value "${contextAttributes[name]}".`);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to