Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: third_party/WebKit/LayoutTests/media/media-reparent.html

Issue 2114243002: Convert audio*, media* and video* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <body></body>
5 <script> 6 <script>
6 setTimeout(function(){ 7 async_test(function(t) {
7 var f = document.createElement('iframe'); 8 var iframe = document.createElement('iframe');
8 document.documentElement.appendChild(f); 9 document.documentElement.appendChild(iframe);
9 var w = f.contentWindow; 10 var contentWindow = iframe.contentWindow;
10 var div = w.document.createElement('div'); 11 var div = contentWindow.document.createElement('div');
fs 2016/07/02 18:33:45 Use iframe.contentDocument?
Srirama 2016/07/03 04:31:34 Done.
11 div.innerHTML = '<audio src="1">'; 12 div.innerHTML = '<audio src="1">';
12 var node = div; 13 var node = div;
13 f.parentNode.removeChild(f); 14 iframe.parentNode.removeChild(iframe);
14 document.body.appendChild(node); 15 document.body.appendChild(node);
15 endTestLater(); 16 setTimeout(t.step_func_done(), 100);
16 }) 17 })
17 </script> 18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698