Title: [295632] trunk/LayoutTests/imported/w3c/web-platform-tests
Revision
295632
Author
[email protected]
Date
2022-06-17 04:57:06 -0700 (Fri, 17 Jun 2022)

Log Message

css/css-transitions/before-load-001.html is a unique failure
https://bugs.webkit.org/show_bug.cgi?id=235131
<rdar://87785218>

Patch by Antoine Quint <[email protected]> on 2022-06-17
Unreviewed WPT import (https://github.com/web-platform-tests/wpt/pull/34463) and rebaseline.

* LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/before-load-001-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/before-load-001.html:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/delay-load-event-until-move-to-empty-source-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/delay-load-event-until-move-to-empty-source.html: Added.

Canonical link: https://commits.webkit.org/251637@main

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/before-load-001-expected.txt (295631 => 295632)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/before-load-001-expected.txt	2022-06-17 07:23:02 UTC (rev 295631)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/before-load-001-expected.txt	2022-06-17 11:57:06 UTC (rev 295632)
@@ -1,6 +1,4 @@
 
 
-Harness Error (TIMEOUT), message = null
-
 PASS CSS Transitions Test: Transitioning before load event
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/before-load-001.html (295631 => 295632)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/before-load-001.html	2022-06-17 07:23:02 UTC (rev 295631)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/before-load-001.html	2022-06-17 11:57:06 UTC (rev 295632)
@@ -41,6 +41,6 @@
 });
 </script>
 
-<img src="" id="cat">
+<img src="" id="cat">
 </body>
 </html>

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/delay-load-event-until-move-to-empty-source-expected.txt (0 => 295632)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/delay-load-event-until-move-to-empty-source-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/delay-load-event-until-move-to-empty-source-expected.txt	2022-06-17 11:57:06 UTC (rev 295632)
@@ -0,0 +1,6 @@
+
+
+Harness Error (TIMEOUT), message = null
+
+TIMEOUT Image element delays window's load event until the image changes to empty source Test timed out
+

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/delay-load-event-until-move-to-empty-source.html (0 => 295632)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/delay-load-event-until-move-to-empty-source.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/delay-load-event-until-move-to-empty-source.html	2022-06-17 11:57:06 UTC (rev 295632)
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>Inline image element blocks load until source is changed to empty source</title>
+<script src=""
+<script src=""
+<img src=""
+<script>
+
+async_test(t => {
+  const image = document.querySelector("img");
+
+  assert_false(image.complete, "The image is loading initially");
+
+  // Complete the test as soon as we obtained the window "load" event,
+  // which should happen as soon as the image stops loading by moving
+  // to an empty source.
+  window.addEventListener("load", t.step_func_done(() => {
+      assert_true(image.complete, "The image is no longer loading once the window 'load' event is dispatched");
+  }));
+
+  // Stop loading the image.
+  image.src = ""
+}, "Image element delays window's load event until the image changes to empty source");
+
+</script>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to