mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<title>tabindex on video elements</title>
|
||||
<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#video">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<div id="test">
|
||||
<video></video>
|
||||
</div>
|
||||
<script>
|
||||
var t = async_test("Attributes shouldn't magically appear");
|
||||
on_event(window, "load", t.step_func(function() {
|
||||
var el = document.getElementById("test").getElementsByTagName("video")[0];
|
||||
assert_equals(el.hasAttribute("tabindex"), false);
|
||||
t.done()
|
||||
}))
|
||||
</script>
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>HTML5 Media Elements: Content inside the 'video' element is not shown to the user.</title>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
|
||||
</head>
|
||||
<body>
|
||||
<div id='testcontent'>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>HTML5 Media Elements: Content inside the 'video' element is not shown to the user.</title>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#video" />
|
||||
<link rel="match" href="video_content-ref.htm" />
|
||||
<meta name="assert" content="Content inside the 'video' element is not shown to the user (image)." />
|
||||
</head>
|
||||
<body>
|
||||
<div id='testcontent'>
|
||||
<video><img src="../../../../images/fail.gif" /></video>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>HTML5 Media Elements: Content inside the 'video' element is not shown to the user.</title>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#video" />
|
||||
<link rel="match" href="video_content-ref.htm" />
|
||||
<meta name="assert" content="Content inside the 'video' element is not shown to the user." />
|
||||
</head>
|
||||
<body>
|
||||
<div id='testcontent'>
|
||||
<video><p style="color: red;">FAIL</p></video>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE HTML>
|
||||
<meta charset=UTF-8>
|
||||
<title>Reference for poster tests</title>
|
||||
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
|
||||
<img src="/media/poster.png">
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE HTML>
|
||||
<meta charset=UTF-8>
|
||||
<title>The 'HTMLVideoElement' interface supports setting 'poster' to an absolute URL</title>
|
||||
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-video-poster">
|
||||
<link rel="match" href="video_dynamic_poster-ref.htm">
|
||||
<meta name="assert" content="The 'HTMLVideoElement' interface supports setting 'poster' to an absolute URL">
|
||||
<video id="video0">Your browser does not support video.</video>
|
||||
<script>
|
||||
var testElem = document.getElementById("video0");
|
||||
testElem.poster = "/media/poster.png";
|
||||
</script>
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE HTML>
|
||||
<meta charset=UTF-8>
|
||||
<title>The 'HTMLVideoElement' interface supports setting 'poster' to a relative URL</title>
|
||||
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-video-poster">
|
||||
<link rel="match" href="video_dynamic_poster-ref.htm">
|
||||
<meta name="assert" content="The 'HTMLVideoElement' interface supports setting 'poster' to a relative URL">
|
||||
<video id="video0">Your browser does not support video.</video>
|
||||
<script>
|
||||
var testElem = document.getElementById("video0");
|
||||
testElem.poster = "../../../../media/poster.png";
|
||||
</script>
|
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE HTML>
|
||||
<meta charset=UTF-8>
|
||||
<title>Video elements should initially be paused</title>
|
||||
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-media-paused">
|
||||
<script src="/common/media.js"></script>
|
||||
<p>The following video element should be paused. (All clocks at zero).</p>
|
||||
<img src='/images/movie_300_frame_0.png'>
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE HTML>
|
||||
<meta charset=UTF-8>
|
||||
<title>Video elements should initially be paused</title>
|
||||
<link rel="match" href="video_initially_paused-ref.html">
|
||||
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-media-paused">
|
||||
<script src="/common/media.js"></script>
|
||||
<style>
|
||||
div#video {
|
||||
padding: 6px 3px;
|
||||
}
|
||||
</style>
|
||||
<p>The following video element should be paused. (All clocks at zero).</p>
|
||||
<div id=video>
|
||||
<script>
|
||||
document.write(
|
||||
"<video src='"+ getVideoURI('/media/movie_300') + "' >" +
|
||||
"Your browser does not support the video element." +
|
||||
"<\/video>");
|
||||
</script>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue