OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <head> |
| 4 <title>Media documents: video</title> |
| 5 <link rel="author" title="Michael Ventnor" href="mailto:mventnor@mozilla.com"> |
| 6 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"> |
| 7 <link rel="help" href="https://html.spec.whatwg.org/multipage/#read-media"> |
| 8 <script src="../../../../../../resources/testharness.js"></script> |
| 9 <script src="../../../../../../resources/testharnessreport.js"></script> |
| 10 |
| 11 <script> |
| 12 var t = async_test("The document for a standalone media file should have one c
hild in the body."); |
| 13 |
| 14 function frameLoaded() { |
| 15 var testframe = document.getElementById('testframe'); |
| 16 var testframeChildren = testframe.contentDocument.body.childNodes; |
| 17 assert_equals(testframeChildren.length, 1, "Body of image document has 1 chi
ld"); |
| 18 assert_equals(testframeChildren[0].nodeName, "VIDEO", "Only child of body mu
st be an <video> element"); |
| 19 assert_equals(testframeChildren[0].namespaceURI, "http://www.w3.org/1999/xht
ml", |
| 20 "Only child of body must be an HTML element"); |
| 21 t.done(); |
| 22 } |
| 23 </script> |
| 24 </head> |
| 25 <body> |
| 26 <div id="log"></div> |
| 27 <iframe id="testframe" onload="t.step(frameLoaded)" |
| 28 src="data:video/webm,"></iframe> |
| 29 </body> |
| 30 </html> |
OLD | NEW |