Title: [252305] trunk/LayoutTests
Revision
252305
Author
[email protected]
Date
2019-11-08 22:27:57 -0800 (Fri, 08 Nov 2019)

Log Message

New test inspector-protocol/page/archive.html added in r154828 fails on EFL, Qt, GTK
https://bugs.webkit.org/show_bug.cgi?id=120682

Reviewed by Devin Rousso.

Generate custom expectations for inspector-protocol/page/archive.html on the platforms
where Page.archive is not supported yet.

* inspector/page/archive.html: 'Not supported' is a valid response on some platforms.
* platform/gtk/TestExpectations:
* platform/gtk/inspector/page/archive-expected.txt: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (252304 => 252305)


--- trunk/LayoutTests/ChangeLog	2019-11-09 04:09:36 UTC (rev 252304)
+++ trunk/LayoutTests/ChangeLog	2019-11-09 06:27:57 UTC (rev 252305)
@@ -1,3 +1,17 @@
+2019-11-08  Yury Semikhatsky  <[email protected]>
+
+        New test inspector-protocol/page/archive.html added in r154828 fails on EFL, Qt, GTK
+        https://bugs.webkit.org/show_bug.cgi?id=120682
+
+        Reviewed by Devin Rousso.
+
+        Generate custom expectations for inspector-protocol/page/archive.html on the platforms
+        where Page.archive is not supported yet.
+
+        * inspector/page/archive.html: 'Not supported' is a valid response on some platforms.
+        * platform/gtk/TestExpectations:
+        * platform/gtk/inspector/page/archive-expected.txt: Added.
+
 2019-11-08  Peng Liu  <[email protected]>
 
         Entering/Exiting Picture-in-Picture mode through webkitSetPresentationMode() does not fire events (enterpictureinpicture and leavepictureinpicture) defined in the spec

Modified: trunk/LayoutTests/inspector/page/archive.html (252304 => 252305)


--- trunk/LayoutTests/inspector/page/archive.html	2019-11-09 04:09:36 UTC (rev 252304)
+++ trunk/LayoutTests/inspector/page/archive.html	2019-11-09 06:27:57 UTC (rev 252305)
@@ -6,14 +6,17 @@
 {
     InspectorProtocol.sendCommand("Page.enable", {});
     InspectorProtocol.sendCommand("Page.archive", {}, function(event) {
-        var data = ""
-        if (!data)
-            ProtocolTest.log("FAIL: no data");
-        else if (data.length < 1000)
-            ProtocolTest.log("FAIL: unexpectedly short data. A serialized archive should be pretty large.");
-        else
-            ProtocolTest.log("PASS: Received archive data.");
-
+        if (event.error) {
+            ProtocolTest.fail(`Page.archive returned error: '${event.error.message}'.`);
+        } else {
+            let data = ""
+            if (!data)
+                ProtocolTest.fail("no data");
+            else if (data.length < 1000)
+                ProtocolTest.fail("unexpectedly short data. A serialized archive should be pretty large.");
+            else
+                ProtocolTest.pass("Received archive data.");
+        }
         ProtocolTest.completeTest();
     });
 }

Modified: trunk/LayoutTests/platform/gtk/TestExpectations (252304 => 252305)


--- trunk/LayoutTests/platform/gtk/TestExpectations	2019-11-09 04:09:36 UTC (rev 252304)
+++ trunk/LayoutTests/platform/gtk/TestExpectations	2019-11-09 06:27:57 UTC (rev 252305)
@@ -2318,8 +2318,6 @@
 
 webkit.org/b/116957 media/track/track-automatic-subtitles.html [ Timeout ]
 
-webkit.org/b/120682 inspector/page/archive.html [ Timeout ]
-
 webkit.org/b/147518 inspector/debugger/nested-inspectors.html [ Timeout ]
 
 Bug(GTK) plugins/reloadplugins-and-pages.html [ Timeout ]

Added: trunk/LayoutTests/platform/gtk/inspector/page/archive-expected.txt (0 => 252305)


--- trunk/LayoutTests/platform/gtk/inspector/page/archive-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/gtk/inspector/page/archive-expected.txt	2019-11-09 06:27:57 UTC (rev 252305)
@@ -0,0 +1,2 @@
+FAIL: Page.archive returned error: 'Not supported'.
+
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to