Skip to content

Commit

Permalink
Merge pull request #494 from w3c/deniak/ms-audio
Browse files Browse the repository at this point in the history
MS tests on audio element
  • Loading branch information
deniak committed Jan 20, 2014
2 parents d69d6d9 + 23a85d8 commit 09d9f13
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 331 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,14 @@
<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#audio" />
<link rel="match" href="audio_content-ref.htm" />
<meta name="assert" content="Content inside the 'audio' element is not shown to the user (image)." />
<script type="text/javascript" src="../../../../common/media.js"></script>

</head>
<body>
<pre>
Content inside the 'audio' element is not shown to the user (image).
</pre>
<table id='testtable' border='1'>
<tr>
<td>Test Result</td>
<td>Test Assertion</td>
</tr>
<tr>
<td id='test_0_result'>Manual</td>
<td id='test_0_assertion'>Test fails if red appears anywhere on the page.</td>
</tr>
</table>
<pre>

http://www.w3.org/TR/html5/video.html#audio

Content may be provided inside the audio element. User agents should not
show this content to the user; it is intended for older Web browsers
which do not support audio, so that legacy audio plugins can be tried,
or to show text to the users of these older browsers informing them of
how to access the audio contents.

</pre>
<div id='testcontent'>

<audio><img src="../../../../images/fail.gif" /></audio>


</div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,14 @@
<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#audio" />
<link rel="match" href="audio_content-ref.htm" />
<meta name="assert" content="Content inside the 'audio' element is not shown to the user." />
<script type="text/javascript" src="../../../../common/media.js"></script>

</head>
<body>
<pre>
Content inside the 'audio' element is not shown to the user.
</pre>
<table id='testtable' border='1'>
<tr>
<td>Test Result</td>
<td>Test Assertion</td>
</tr>
<tr>
<td id='test_0_result'>Manual</td>
<td id='test_0_assertion'>Test fails if the red text 'FAIL' appears anywhere on the page.</td>
</tr>
</table>
<pre>

http://www.w3.org/TR/html5/video.html#audio

Content may be provided inside the audio element. User agents should not
show this content to the user; it is intended for older Web browsers
which do not support audio, so that legacy audio plugins can be tried,
or to show text to the users of these older browsers informing them of
how to access the audio contents.

</pre>
<div id='testcontent'>

<audio><span style="color: red;">FAIL</span></audio>


</div>
</body>
</html>
36 changes: 36 additions & 0 deletions html/semantics/embedded-content-0/the-audio-element/audio_003.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE HTML>
<html>
<head>
<title>HTML5 Media Elements: Media plays automatically when 'autoplay' is true. (audio)</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-autoplay" />
<meta name="assert" content="Media plays automatically when 'autoplay' is true. (audio)" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script type="text/javascript" src="../../../../common/media.js"></script>
<script type="text/javascript">
audiotest = async_test("Media plays automatically when 'autoplay' is true.");
function do_playing(event)
{
audiotest.done();
}

</script>
</head>
<body>
<div id='log'></div>

<script type="text/javascript">

document.write(
"<audio id='audio0' src='" + getAudioURI("/media/sound_5") + "'" +
" onplaying='do_playing(event);' autoplay>" +
"</audio>"
);

</script>

</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE HTML>
<html>
<head>
<title>HTML5 Media Elements: Content inside the 'audio' 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>
41 changes: 0 additions & 41 deletions old-tests/submission/Microsoft/audio/audio_001-ref.htm

This file was deleted.

45 changes: 0 additions & 45 deletions old-tests/submission/Microsoft/audio/audio_001.htm

This file was deleted.

41 changes: 0 additions & 41 deletions old-tests/submission/Microsoft/audio/audio_002-ref.htm

This file was deleted.

45 changes: 0 additions & 45 deletions old-tests/submission/Microsoft/audio/audio_002.htm

This file was deleted.

61 changes: 0 additions & 61 deletions old-tests/submission/Microsoft/audio/audio_003.htm

This file was deleted.

21 changes: 0 additions & 21 deletions old-tests/submission/Microsoft/audio/audio_004.htm

This file was deleted.

Loading

0 comments on commit 09d9f13

Please sign in to comment.