Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / content / media / video / test / test_bug463162.xhtml
blobccc1222f20e7843bb1f7a41120a50f9c483d4f78
1 <html xmlns="http://www.w3.org/1999/xhtml"
2 xmlns:html="http://www.w3.org/1999/xhtml"
3 xmlns:svg="http://www.w3.org/2000/svg">
4 <!--
5 https://bugzilla.mozilla.org/show_bug.cgi?id=463162
6 -->
7 <head>
8 <title>Test for Bug 463162</title>
9 <script type="text/javascript" src="/MochiKit/packed.js"></script>
10 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
11 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"/>
12 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
13 </head>
14 <body>
15 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=463162">Mozilla Bug 463162</a>
16 <audio id='a1'><sauce type="audio/x-wav" src="r11025_s16_c1.wav"/></audio>
17 <audio id='a2'><source type="audio/x-wav" src="r11025_s16_c1.wav"/></audio>
18 <audio id='a3'><html:source type="audio/x-wav" src="r11025_s16_c1.wav"/></audio>
19 <audio id='a4'><svg:source type="audio/x-wav" src="r11025_s16_c1.wav"/></audio>
20 <pre id="test">
21 <script class="testbody" type="text/javascript">
22 <![CDATA[
23 ok($("a1").networkState == HTMLMediaElement.NETWORK_EMPTY, "audio a1 with bogus child should not be loading");
24 ok($("a2").networkState >= HTMLMediaElement.NETWORK_LOADING, "audio a2 with valid child should be loading");
25 ok($("a3").networkState >= HTMLMediaElement.NETWORK_LOADING, "audio a3 with valid child should be loading");
26 ok($("a4").networkState == HTMLMediaElement.NETWORK_EMPTY, "audio a4 with bogus child should not be loading");
27 ]]>
28 </script>
29 </pre>
30 </body>
31 </html>