OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <title>{audio,video}.readyState - default state</title> |
| 5 <script src="../../../../../../resources/testharness.js"></script> |
| 6 <script src="../../../../../../resources/testharnessreport.js"></script> |
| 7 </head> |
| 8 <body> |
| 9 <p><a href="https://html.spec.whatwg.org/multipage/#dom-media-networkstate">sp
ec reference</a></p> |
| 10 <audio id="a"> |
| 11 </audio> |
| 12 <video id="v"> |
| 13 </video> |
| 14 <div id="log"></div> |
| 15 <script> |
| 16 test(function() { |
| 17 var a = document.getElementById("a"); |
| 18 assert_equals( |
| 19 a.readyState, |
| 20 a.HAVE_NOTHING, |
| 21 "audioElement.readyState should be HAVE_NOTHING to begin with"); |
| 22 }, "audio.readyState - default state"); |
| 23 |
| 24 test(function() { |
| 25 var v = document.getElementById("v"); |
| 26 assert_equals( |
| 27 v.readyState, |
| 28 v.HAVE_NOTHING, |
| 29 "videoElement.readyState should be HAVE_NOTHING to begin with"); |
| 30 }, "video.readyState - default state"); |
| 31 </script> |
| 32 </body> |
| 33 </html> |
OLD | NEW |