| <script src="media-file.js"></script> |
| testRunner.waitUntilDone(); |
| setSrcByTagName('video', findMediaFile('video', 'content/test-25fps')); |
| // Removes the video element here. |
| container.innerHTML = "PASS. WebKit didn't crash."; |
| <p>When an element containing video is removed, WebKit should not crash.</p> |
| <!-- This is required to reproduce. --> |
| <!-- Only if we cannot eval the content of oncanplaythrough (i.e. only if the content of oncanplaythough |
| has invalid syntax), this test causes a crash. --> |
| <video oncanplaythrough='if'> |