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">
5 https://bugzilla.mozilla.org/show_bug.cgi?id=463162
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" />
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>
21 <script class=
"testbody" type=
"text/javascript">
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");