| <script src=video-test.js></script> |
| testExpected("state", "load() with missing 'src'"); |
| testExpected("videos[0].error", null); |
| testExpected("videos[0].networkState", HTMLMediaElement.NETWORK_EMPTY); |
| testExpected("videos[0].src", ""); |
| failTest("<br><i>***'error' event fired***<" + "/i>"); |
| videos = document.querySelectorAll('video'); |
| consoleWrite("<br><i>Network state should remain in NETWORK_EMPTY with missing 'src' attribute.<" + "/i>"); |
| consoleWrite("** <video> with no src attribute**"); |
| testExpected("videos[0].error", null); |
| testExpected("videos[0].networkState", HTMLMediaElement.NETWORK_EMPTY); |
| testExpected("videos[0].src", ""); |
| consoleWrite("<br><i>Calling load() with no 'src' should NOT fire 'error' event, set network state to NETWORK_EMPTY.<" + "/i>"); |
| state = "load() with missing 'src'"; |
| setTimeout(someTimeLater, 100) ; |
| <body onload="setTimeout(test, 100)"> |
| <video width=320 height=60 controls onerror="errorEvent()"></video> |