OLD | NEW |
1 Test that reparenting a removed media tag doesn't crash the process. | 1 <!DOCTYPE html> |
2 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 | 2 <title>Test that reparenting a removed media tag doesn't crash the process.</tit
le> |
3 (Please avoid writing new tests using video-test.js) --> | 3 <script src="../resources/testharness.js"></script> |
4 <script src=video-test.js></script> | 4 <script src="../resources/testharnessreport.js"></script> |
5 <script> | 5 <script> |
6 setTimeout(function(){ | 6 async_test(function(t) { |
7 var f = document.createElement('iframe'); | 7 var iframe = document.createElement('iframe'); |
8 document.documentElement.appendChild(f); | 8 document.documentElement.appendChild(iframe); |
9 var w = f.contentWindow; | 9 var div = iframe.contentDocument.createElement('div'); |
10 var div = w.document.createElement('div'); | |
11 div.innerHTML = '<audio src="1">'; | 10 div.innerHTML = '<audio src="1">'; |
12 var node = div; | 11 var node = div; |
13 f.parentNode.removeChild(f); | 12 iframe.parentNode.removeChild(iframe); |
14 document.body.appendChild(node); | 13 document.documentElement.appendChild(node); |
15 endTestLater(); | 14 setTimeout(t.step_func_done(), 100); |
16 }) | 15 }) |
17 </script> | 16 </script> |
OLD | NEW |