Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
html/semantics/embedded-content-0/the-video-element/video_022.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Media Elements: 'preload' is ignored if 'autoplay' is present.</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="http://www.w3.org/TR/html5/video.html#attr-media-preload" /> | ||
<meta name="assert" content="'preload' is ignored if 'autoplay' is present." /> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
</head> | ||
<body> | ||
<script type="text/javascript"> | ||
var test = async_test("'preload' is ignored if 'autoplay' is present.") | ||
|
||
function do_loadstart(event) | ||
{ | ||
test.step(function() { assert_true(true)} ); | ||
test.done(); | ||
} | ||
|
||
function timeout() | ||
{ | ||
test.step(function(){ assert_false(true, "'onloadstart' event never fired!")}); | ||
test.done(); | ||
} | ||
|
||
var timer = setTimeout(timeout, 5000); | ||
</script> | ||
<div id=log></div> | ||
<video src="broken-uri" preload="none" autoplay onloadstart="do_loadstart();">Your browser does not support media elements.</video> | ||
</body> | ||
</html> |