Title: [251163] trunk/LayoutTests
Revision
251163
Author
clo...@igalia.com
Date
2019-10-15 15:36:18 -0700 (Tue, 15 Oct 2019)

Log Message

Import apng testcases from WPT.
https://bugs.webkit.org/show_bug.cgi?id=202783

Reviewed by Simon Fraser.

LayoutTests/imported/w3c:

Import apng tests from WTP.

* resources/import-expectations.json:
* web-platform-tests/apng/META.yml: Added.
* web-platform-tests/apng/animated-png-timeout-expected.html: Added.
* web-platform-tests/apng/animated-png-timeout.html: Added.
* web-platform-tests/apng/supported-in-source-type-expected.txt: Added.
* web-platform-tests/apng/supported-in-source-type.html: Added.
* web-platform-tests/apng/w3c-import.log: Added.

LayoutTests:

Import apng tests from WTP

* TestExpectations: Mark the new imported test as failing. One already
has a fix and the other would pass once the support for reftest-wait
is implemented in the tooling.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (251162 => 251163)


--- trunk/LayoutTests/ChangeLog	2019-10-15 22:33:26 UTC (rev 251162)
+++ trunk/LayoutTests/ChangeLog	2019-10-15 22:36:18 UTC (rev 251163)
@@ -1,3 +1,16 @@
+2019-10-15  Carlos Alberto Lopez Perez  <clo...@igalia.com>
+
+        Import apng testcases from WPT.
+        https://bugs.webkit.org/show_bug.cgi?id=202783
+
+        Reviewed by Simon Fraser.
+
+        Import apng tests from WTP
+
+        * TestExpectations: Mark the new imported test as failing. One already
+        has a fix and the other would pass once the support for reftest-wait
+        is implemented in the tooling.
+
 2019-10-15  Peng Liu  <peng.l...@apple.com>
 
         [Picture-in-Picture Web API] Implement HTMLVideoElement.requestPictureInPicture() / Document.exitPictureInPicture()

Modified: trunk/LayoutTests/TestExpectations (251162 => 251163)


--- trunk/LayoutTests/TestExpectations	2019-10-15 22:33:26 UTC (rev 251162)
+++ trunk/LayoutTests/TestExpectations	2019-10-15 22:36:18 UTC (rev 251163)
@@ -1218,6 +1218,7 @@
 webkit.org/b/186045 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/available-images.html [ Pass ImageOnlyFailure ]
 webkit.org/b/186045 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001.html [ ImageOnlyFailure ]
 webkit.org/b/186045 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-002.html [ ImageOnlyFailure ]
+webkit.org/b/186045 imported/w3c/web-platform-tests/apng/animated-png-timeout.html [ Skip ]
 
 # These W3C tests time out.
 imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/autoplay-overrides-preload.html [ Skip ]
@@ -3881,3 +3882,5 @@
 webkit.org/b/200208 imported/w3c/web-platform-tests/css/css-images/gradients-with-transparent.html [ ImageOnlyFailure ]
 webkit.org/b/200209 imported/w3c/web-platform-tests/css/css-images/multiple-position-color-stop-radial.html [ ImageOnlyFailure ]
 webkit.org/b/202813 imported/w3c/web-platform-tests/css/css-images/multiple-position-color-stop-conic.html [ ImageOnlyFailure ]
+
+webkit.org/b/202785 imported/w3c/web-platform-tests/apng/supported-in-source-type.html [ Failure ]

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (251162 => 251163)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2019-10-15 22:33:26 UTC (rev 251162)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2019-10-15 22:36:18 UTC (rev 251163)
@@ -1,3 +1,20 @@
+2019-10-15  Carlos Alberto Lopez Perez  <clo...@igalia.com>
+
+        Import apng testcases from WPT.
+        https://bugs.webkit.org/show_bug.cgi?id=202783
+
+        Reviewed by Simon Fraser.
+
+        Import apng tests from WTP.
+
+        * resources/import-expectations.json:
+        * web-platform-tests/apng/META.yml: Added.
+        * web-platform-tests/apng/animated-png-timeout-expected.html: Added.
+        * web-platform-tests/apng/animated-png-timeout.html: Added.
+        * web-platform-tests/apng/supported-in-source-type-expected.txt: Added.
+        * web-platform-tests/apng/supported-in-source-type.html: Added.
+        * web-platform-tests/apng/w3c-import.log: Added.
+
 2019-10-15  Peng Liu  <peng.l...@apple.com>
 
         [Picture-in-Picture Web API] Implement HTMLVideoElement.requestPictureInPicture() / Document.exitPictureInPicture()

Modified: trunk/LayoutTests/imported/w3c/resources/import-expectations.json (251162 => 251163)


--- trunk/LayoutTests/imported/w3c/resources/import-expectations.json	2019-10-15 22:33:26 UTC (rev 251162)
+++ trunk/LayoutTests/imported/w3c/resources/import-expectations.json	2019-10-15 22:36:18 UTC (rev 251163)
@@ -1,4 +1,5 @@
 {
+    "apng": "import", 
     "css/geometry": "import", 
     "custom-elements": "import", 
     "shadow-dom": "import", 

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/apng/META.yml (0 => 251163)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/apng/META.yml	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/apng/META.yml	2019-10-15 22:36:18 UTC (rev 251163)
@@ -0,0 +1,5 @@
+spec: https://wiki.mozilla.org/APNG_Specification
+suggested_reviewers:
+  - stuartparmenter
+  - svgeesus
+  - leonscroggins

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/apng/animated-png-timeout-expected.html (0 => 251163)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/apng/animated-png-timeout-expected.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/apng/animated-png-timeout-expected.html	2019-10-15 22:36:18 UTC (rev 251163)
@@ -0,0 +1 @@
+<img src=""

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/apng/animated-png-timeout.html (0 => 251163)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/apng/animated-png-timeout.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/apng/animated-png-timeout.html	2019-10-15 22:36:18 UTC (rev 251163)
@@ -0,0 +1,11 @@
+<html class="reftest-wait">
+<title>APNG: Second frame displays quickly, replacing red with green.</title>
+<link rel="match" href=""
+<img src="" _onload_="loaded()"/>
+<script>
+  function loaded() {
+    setTimeout(function() {
+      document.documentElement.classList.remove("reftest-wait");
+    }, 1000);
+  }
+</script>

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/apng/supported-in-source-type-expected.txt (0 => 251163)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/apng/supported-in-source-type-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/apng/supported-in-source-type-expected.txt	2019-10-15 22:36:18 UTC (rev 251163)
@@ -0,0 +1,3 @@
+
+PASS Animated PNG MIME type (image/apng) is recognized by <source type> 
+

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/apng/supported-in-source-type.html (0 => 251163)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/apng/supported-in-source-type.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/apng/supported-in-source-type.html	2019-10-15 22:36:18 UTC (rev 251163)
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<title>Animated PNG MIME type (image/apng) is recognized by &lt;source type></title>
+<script src=""
+<script src=""
+<script>
+function resolveUrl(relativeUrl) {
+  var a = document.createElement('a');
+  a.href = ""
+  return a.href;
+}
+
+async_test(t => {
+  window._onload_ = t.step_func_done(() => {
+    let image = document.querySelector('img');
+    let apngSrc = document.querySelector('source');
+    assert_equals(image.currentSrc, resolveUrl(apngSrc.srcset));
+  });
+});
+</script>
+<picture>
+  <source srcset="/images/anim-gr.png" type="image/apng">
+  <img src="" style="visibility: hidden">
+</picture>

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/apng/w3c-import.log (0 => 251163)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/apng/w3c-import.log	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/apng/w3c-import.log	2019-10-15 22:36:18 UTC (rev 251163)
@@ -0,0 +1,20 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the WPT github:
+	https://github.com/web-platform-tests/wpt
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/apng/META.yml
+/LayoutTests/imported/w3c/web-platform-tests/apng/animated-png-timeout-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/apng/animated-png-timeout.html
+/LayoutTests/imported/w3c/web-platform-tests/apng/supported-in-source-type.html
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to