Skip to content

Commit

Permalink
audio_001 and audio_002 share the ref test
Browse files Browse the repository at this point in the history
rm duplicates
tests refactoring
  • Loading branch information
deniak committed Jan 20, 2014
1 parent 76c94ab commit 8643bde
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 191 deletions.

This file was deleted.

Expand Up @@ -5,30 +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>
<pre>

http://www.w3.org/TR/html5/embedded-content-0.html#the-audio-element

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>

This file was deleted.

Expand Up @@ -5,30 +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>
<pre>

http://www.w3.org/TR/html5/embedded-content-0.html#the-audio-element

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>
26 changes: 2 additions & 24 deletions html/semantics/embedded-content-0/the-audio-element/audio_003.htm
Expand Up @@ -10,7 +10,7 @@
<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.");
audiotest = async_test("Media plays automatically when 'autoplay' is true.");
function do_playing(event)
{
audiotest.done();
Expand All @@ -19,34 +19,12 @@
</script>
</head>
<body>
<pre>
Media plays automatically when 'autoplay' is true. (audio)
</pre>

<table id='testtable' border='1'>
<tr>
<td>Test Assertion</td>
</tr>
<tr>
<td id='test_0_assertion'>Test passes if the text 'PASS' appears to the left.</td>
</tr>
</table>
<pre>

http://www.w3.org/TR/html5/embedded-content-0.html#attr-media-autoplay

The autoplay attribute is a boolean attribute. When present, the user
agent (as described in the algorithm described herein) will
automatically begin playback of the media resource as soon as it can do
so without stopping.

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

<script type="text/javascript">

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

This file was deleted.

34 changes: 0 additions & 34 deletions html/semantics/embedded-content-0/the-audio-element/audio_004.htm

This file was deleted.

@@ -0,0 +1,13 @@
<!DOCTYPE HTML>
<html>
<head>
<title>HTML5 Media Elements: Content inside the 'audio' element is not shown to the user (image).</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 comments on commit 8643bde

Please sign in to comment.