Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 Test that reparenting a removed media tag doesn't crash the process. | 1 Test that reparenting a removed media tag doesn't crash the process. |
| 2 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 2 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 3 (Please avoid writing new tests using video-test.js) --> | 3 (Please avoid writing new tests using video-test.js) --> |
| 4 <script src=video-test.js></script> | 4 <script src=video-test.js></script> |
| 5 <script> | 5 <script> |
| 6 setTimeout(function(){ | 6 setTimeout(function(){ |
| 7 var f = document.createElement('iframe'); | 7 var f = document.createElement('iframe'); |
| 8 document.documentElement.appendChild(f); | 8 document.documentElement.appendChild(f); |
| 9 var w = f.contentWindow; | 9 var w = f.contentWindow; |
| 10 var div = w.document.createElement('div'); | 10 var div = w.document.createElement('div'); |
| 11 div.innerHTML = '<audio src="1">'; | 11 div.innerHTML = '<audio src="1">'; // Attempt to load this URL should fail. |
| 12 var node = div; | 12 var node = div; |
| 13 f.parentNode.removeChild(f); | 13 f.parentNode.removeChild(f); |
| 14 document.body.appendChild(node); | 14 document.body.appendChild(node); |
| 15 endTestLater(); | 15 |
| 16 // TODO(wolenetz,philipj): Avoid large timeout here by using | |
| 17 // waitForEventAndEnd('error') once that error event is reliably | |
| 18 // deliverable to the new parent. See https://crbug.com/600849. | |
| 19 // Larger than 250ms endTestLater() timeout is used here to prevent | |
| 20 // flakily missing console error log. If flakes recur, we may needxi | |
|
philipj_slow
2016/04/06 09:05:37
s/needxi/need/
wolenetz
2016/04/06 20:16:04
Done :)
| |
| 21 // to increase it further. | |
| 22 setTimeout(endTest, 750); | |
| 16 }) | 23 }) |
| 17 </script> | 24 </script> |
| OLD | NEW |