| <script src="../../resources/js-test-pre.js"></script> |
| description("Test window.oncuechange EventHandler attribute"); |
| shouldBeNull("window.oncuechange"); |
| var video = document.createElement('video'); |
| var track = video.addTextTrack('subtitles'); |
| var testEvent = new Event('cuechange'); |
| evalAndLog("window.oncuechange = function() { ran = true; };"); |
| evalAndLog("window.dispatchEvent(testEvent)"); |
| evalAndLog("window.oncuechange = null"); |
| evalAndLog("track.dispatchEvent(testEvent)"); |
| <script src="../../resources/js-test-post.js"></script> |