5 <script src=media-file.js></script>
9 if (window.testRunner) {
10 testRunner.dumpAsText();
11 testRunner.waitUntilDone();
16 document.getElementById('console').appendChild(document.createTextNode(msg + "\n"));
21 if (window.GCController)
22 return GCController.collect();
24 // Force garbage collection
25 for (var ndx = 0; ndx < 99000; ndx++)
26 var str = new String("1234");
31 log("EVENT(loadstart) from iframe");
34 location.href="data:text/html,SUCCESS<script>if (window.testRunner) testRunner.notifyDone()<" + "/script>";
39 log("EVENT(loadstart)");
41 var video = document.getElementsByTagName('video')[0];
42 var newVideo = video.cloneNode(true);
43 newVideo.addEventListener("loadstart", finish);
45 var iframeDocument = document.getElementById("iframe").contentDocument;
46 iframeDocument.body.appendChild(newVideo);
51 var video = document.getElementsByTagName('video')[0];
52 video.addEventListener("loadstart", loadstart);
53 video.src = findMediaFile("video", "content/test");
58 <iframe id="iframe" width=340 height=260 ></iframe>
59 <div id=parent><video id=vid></video></div>
60 <p>Tests that we don't crash when moving a video element to a new document.</p>
61 <script>start()</script>
62 <pre id="console"></pre>