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 src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <script src=
"/tests/SimpleTest/EventUtils.js"></script>
11 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
12 <script type=
"text/javascript" src=
"manifest.js"></script>
15 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=463162">Mozilla Bug
463162</a>
17 <script class=
"testbody" type=
"text/javascript">
20 var gExpectedResult = {
29 function onError(event, id) {
30 is('error', gExpectedResult[id], 'unexpected error loading ' + id);
32 dump('error('+id+') expected ' + gExpectedResult[id] + ' gResultCount=' + gResultCount + '\n');
33 if (gResultCount ==
4)
37 function onMetaData(id) {
38 is('loaded', gExpectedResult[id], 'unexpected loadedmetadata loading ' + id);
40 dump('onMetaData('+id+') expected ' + gExpectedResult[id] + ' gResultCount=' + gResultCount + '\n');
41 if (gResultCount ==
4)
48 <video id=
"a1" preload=
"metadata" onloadedmetadata=
"onMetaData('a1');"><sauce/><source type=
"bad" src=
"404" onerror=
"onError(event, 'a1');"/></video>
49 <video id=
"a2" preload=
"metadata" onloadedmetadata=
"onMetaData('a2');"><source onerror=
"onError(event, 'a2');"/></video>
50 <video id=
"a3" preload=
"metadata" onloadedmetadata=
"onMetaData('a3');"><html:source onerror=
"onError(event, 'a3');"/></video>
51 <video id=
"a4" preload=
"metadata" onloadedmetadata=
"onMetaData('a4');"><svg:source/><source onerror=
"onError(event, 'a4');" type=
"bad" src=
"404"/></video>
53 <script class=
"testbody" type=
"text/javascript">
56 function setSource(id, res) {
57 var v = document.getElementById(id);
58 v.firstChild.src = res.name;
59 v.firstChild.type = res.type;
62 var t = getPlayableVideo(gSmallTests);
69 SimpleTest.waitForExplicitFinish();