OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 | 4 |
5 <div id="container"> | 5 <div id="container"> |
6 <div id="inside"> | 6 <div id="inside"> |
7 <iframe id="frame1" srcdoc="frame1"></iframe> | 7 <iframe id="frame1" name="frame1" srcdoc="frame1"></iframe> |
8 <iframe id="frame2" srcdoc="frame2"></iframe> | 8 <iframe id="frame2" name="frame2" srcdoc="frame2"></iframe> |
9 </div> | 9 </div> |
10 </div> | 10 </div> |
11 | 11 |
12 <script> | 12 <script> |
13 description('Reparented sibling frames from unload handlers should load.'); | 13 description('Reparented sibling frames from unload handlers should load.'); |
14 | 14 |
15 var jsTestIsAsync = true; | 15 var jsTestIsAsync = true; |
16 var count = 2; | 16 var count = 2; |
17 var container = document.getElementById('container'); | 17 var container = document.getElementById('container'); |
18 var inside = document.getElementById('inside'); | 18 var inside = document.getElementById('inside'); |
(...skipping 24 matching lines...) Expand all Loading... |
43 frame1.contentWindow.onunload = function() { | 43 frame1.contentWindow.onunload = function() { |
44 frame1.onload = runTest; | 44 frame1.onload = runTest; |
45 frame2.onload = runTest; | 45 frame2.onload = runTest; |
46 document.body.appendChild(inside); | 46 document.body.appendChild(inside); |
47 }; | 47 }; |
48 | 48 |
49 container.parentNode.removeChild(container); | 49 container.parentNode.removeChild(container); |
50 }; | 50 }; |
51 </script> | 51 </script> |
52 | 52 |
OLD | NEW |