aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-01-14 17:35:23 -0500
committerGitHub <noreply@github.com>2019-01-14 17:35:23 -0500
commit2cf9a00c9983bf23eff23d56321973d36a14f977 (patch)
tree126bfd4da3d2ec29b5482b075fef69b7e8879f6a /tests
parentc242abd99931676f246152daadf2b8dd9ddf8177 (diff)
parent7633cab63a0080350b3883a7fed045d3b9d83a15 (diff)
downloadservo-2cf9a00c9983bf23eff23d56321973d36a14f977.tar.gz
servo-2cf9a00c9983bf23eff23d56321973d36a14f977.zip
Auto merge of #22399 - ferjm:poster.frame, r=jdm
Implement HTMLMediaElement poster attribute - [X] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22288 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22399) <!-- Reviewable:end -->
Diffstat (limited to 'tests')
-rw-r--r--tests/wpt/metadata/html/dom/interfaces.https.html.ini6
-rw-r--r--tests/wpt/mozilla/meta/MANIFEST.json34
-rw-r--r--tests/wpt/mozilla/meta/mozilla/video_poster_frame.html.ini2
-rw-r--r--tests/wpt/mozilla/tests/mozilla/poster.pngbin0 -> 201257 bytes
-rw-r--r--tests/wpt/mozilla/tests/mozilla/video_poster_frame.html17
-rw-r--r--tests/wpt/mozilla/tests/mozilla/video_poster_frame_ref.html4
6 files changed, 57 insertions, 6 deletions
diff --git a/tests/wpt/metadata/html/dom/interfaces.https.html.ini b/tests/wpt/metadata/html/dom/interfaces.https.html.ini
index 4ee5b81b82b..8799fae2688 100644
--- a/tests/wpt/metadata/html/dom/interfaces.https.html.ini
+++ b/tests/wpt/metadata/html/dom/interfaces.https.html.ini
@@ -6747,9 +6747,6 @@
[HTMLVideoElement interface: attribute height]
expected: FAIL
- [HTMLVideoElement interface: attribute poster]
- expected: FAIL
-
[HTMLVideoElement interface: attribute playsInline]
expected: FAIL
@@ -6759,9 +6756,6 @@
[HTMLVideoElement interface: document.createElement("video") must inherit property "height" with the proper type]
expected: FAIL
- [HTMLVideoElement interface: document.createElement("video") must inherit property "poster" with the proper type]
- expected: FAIL
-
[HTMLVideoElement interface: document.createElement("video") must inherit property "playsInline" with the proper type]
expected: FAIL
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index 03ca02fce8b..9dfbd8de91e 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -7157,6 +7157,18 @@
{}
]
],
+ "mozilla/video_poster_frame.html": [
+ [
+ "/_mozilla/mozilla/video_poster_frame.html",
+ [
+ [
+ "/_mozilla/mozilla/video_poster_frame_ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
"mozilla/webgl/clearcolor.html": [
[
"/_mozilla/mozilla/webgl/clearcolor.html",
@@ -10368,6 +10380,11 @@
{}
]
],
+ "mozilla/poster.png": [
+ [
+ {}
+ ]
+ ],
"mozilla/referrer-policy/OWNERS": [
[
{}
@@ -11813,6 +11830,11 @@
{}
]
],
+ "mozilla/video_poster_frame_ref.html": [
+ [
+ {}
+ ]
+ ],
"mozilla/webgl/clearcolor_ref.html": [
[
{}
@@ -27227,6 +27249,10 @@
"5aff666995fe6cd1d4e84e63a9f6019d04387f8e",
"testharness"
],
+ "mozilla/poster.png": [
+ "33834c3ef095fa9c0080017e1b65b2eb8413eac4",
+ "support"
+ ],
"mozilla/postmessage_closed.html": [
"c54e371b270cd2e34558dfb7994785d697330534",
"testharness"
@@ -32811,6 +32837,14 @@
"5ab0557c5e02828c38f5c58edde5425e40dcb4b1",
"testharness"
],
+ "mozilla/video_poster_frame.html": [
+ "8e85bcd62303b70153f8d451a843cb2bdd96484d",
+ "reftest"
+ ],
+ "mozilla/video_poster_frame_ref.html": [
+ "b45a87aa614eef6cbe21a77a7b75e81e9a9f8c95",
+ "support"
+ ],
"mozilla/weakref.html": [
"4deccbe1e26a3f921eea85a4395394a55cc88be4",
"testharness"
diff --git a/tests/wpt/mozilla/meta/mozilla/video_poster_frame.html.ini b/tests/wpt/mozilla/meta/mozilla/video_poster_frame.html.ini
new file mode 100644
index 00000000000..300efbf7350
--- /dev/null
+++ b/tests/wpt/mozilla/meta/mozilla/video_poster_frame.html.ini
@@ -0,0 +1,2 @@
+[video_poster_frame.html]
+ prefs: [media.testing.enabled:true]
diff --git a/tests/wpt/mozilla/tests/mozilla/poster.png b/tests/wpt/mozilla/tests/mozilla/poster.png
new file mode 100644
index 00000000000..33834c3ef09
--- /dev/null
+++ b/tests/wpt/mozilla/tests/mozilla/poster.png
Binary files differ
diff --git a/tests/wpt/mozilla/tests/mozilla/video_poster_frame.html b/tests/wpt/mozilla/tests/mozilla/video_poster_frame.html
new file mode 100644
index 00000000000..8e85bcd6230
--- /dev/null
+++ b/tests/wpt/mozilla/tests/mozilla/video_poster_frame.html
@@ -0,0 +1,17 @@
+<!doctype html>
+<html class="reftest-wait">
+ <head>
+ <meta charset="utf-8">
+ <title></title>
+ <link rel="match" href="video_poster_frame_ref.html">
+ </head>
+ <body>
+ <video poster="poster.png"></video>
+ <script>
+ let video = document.querySelector("video");
+ video.addEventListener("postershown", function() {
+ document.documentElement.classList.remove("reftest-wait");
+ });
+ </script>
+ </body>
+</html>
diff --git a/tests/wpt/mozilla/tests/mozilla/video_poster_frame_ref.html b/tests/wpt/mozilla/tests/mozilla/video_poster_frame_ref.html
new file mode 100644
index 00000000000..b45a87aa614
--- /dev/null
+++ b/tests/wpt/mozilla/tests/mozilla/video_poster_frame_ref.html
@@ -0,0 +1,4 @@
+<!doctype html>
+<meta charset="utf-8">
+<title></title>
+<img src="poster.png"/>