| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script> | |
| 4 if (window.testRunner) { | |
| 5 testRunner.dumpAsText(); | |
| 6 testRunner.waitUntilDone(); | |
| 7 } | |
| 8 | |
| 9 function log(msg) | |
| 10 { | |
| 11 document.getElementById('console').appendChild(document.createTextNo
de(msg + "\n")); | |
| 12 } | |
| 13 | |
| 14 function test() | |
| 15 { | |
| 16 var video = document.getElementById('fr').contentDocument.getElement
sByTagName('video')[0]; | |
| 17 if (video) | |
| 18 log("PASS: <video> used"); | |
| 19 else | |
| 20 log("FAIL: <video> NOT used"); | |
| 21 | |
| 22 if (window.testRunner) { | |
| 23 testRunner.notifyDone(); | |
| 24 } | |
| 25 } | |
| 26 </script> | |
| 27 </head> | |
| 28 <body onload="setTimeout(test, 250)"> | |
| 29 <iframe src="content/counting.mp4" id="fr" width=380 height=330></iframe
> | |
| 30 <p>This tests that a standalone MPEG-4 file with 'sdsm' and 'odsm' track
s is opened in a MediaDocument.</p> | |
| 31 <pre id="console"></pre> | |
| 32 </body> | |
| 33 </html> | |
| OLD | NEW |