Skip to content

Commit

Permalink
remove timeouts + some test refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
deniak committed Jan 15, 2014
1 parent f31e3c2 commit 94ade8d
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 247 deletions.
39 changes: 0 additions & 39 deletions html/semantics/embedded-content-0/the-video-element/video_002.htm

This file was deleted.

44 changes: 0 additions & 44 deletions html/semantics/embedded-content-0/the-video-element/video_011.htm

This file was deleted.

This file was deleted.

41 changes: 0 additions & 41 deletions html/semantics/embedded-content-0/the-video-element/video_012.htm

This file was deleted.

This file was deleted.

40 changes: 0 additions & 40 deletions html/semantics/embedded-content-0/the-video-element/video_013.htm

This file was deleted.

Expand Up @@ -11,7 +11,7 @@

<script type="text/javascript" src="../../../../common/media.js"></script>
<script type="text/javascript">
var test = async_test("'error' attribute returns 'null' when no error has occurred.", {timeout:3000})
var test = async_test("'error' attribute returns 'null' when no error has occurred.")
function do_loadstart(event) {
test.step(function() { assert_equals(document.getElementById("video0").error, null)} );
test.done();
Expand Down
Expand Up @@ -14,12 +14,9 @@
Your browser does not support media elements.
</video>
<script type="text/javascript">
var t = async_test("'ratechange' event fires when 'playbackRate' changes.", {timeout:3000});
var t = async_test("'ratechange' event fires when 'playbackRate' changes.");

document.getElementById("video0").addEventListener('ratechange', function() {
t.step(function () {
assert_true(true);
});
t.done();
}, false);

Expand Down
Expand Up @@ -10,17 +10,19 @@
<script src="/resources/testharnessreport.js"></script>
<script type="text/javascript" src="../../../../common/media.js"></script>
<script type="text/javascript">
var test = async_test("removing the 'src' attribute does not invoke the media element load algorithm.");
var test = async_test("removing the 'src' attribute does not invoke the media element load algorithm.", {timeout:5000});

function do_play(event) {
var vid = document.getElementById("video0");
vid.removeAttribute("src");
vid.addEventListener("loadstart", do_loadstart, false);
vid.load();
test.step(function() {
var vid = document.getElementById("video0");
vid.addEventListener("loadstart", do_loadstart, false);
vid.removeAttribute("src");
vid.load();
});
}

function do_loadstart(){
test.step(function() {assert_unreached("removing src attribute does not invodethe media element load algorithm")});
test.step(function() {assert_unreached("removing src attribute does not invoke the media element load algorithm")});
test.done();
}

Expand Down
@@ -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="http://www.w3.org/TR/html5/video.html#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="http://www.w3.org/TR/html5/video.html#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 comments on commit 94ade8d

Please sign in to comment.