| OLD | NEW |
| 1 #library('InnerFrameTest'); | 1 #library('InnerFrameTest'); |
| 2 #import('../../../testing/unittest/unittest.dart'); | 2 #import('../../../testing/unittest/unittest_dom.dart'); |
| 3 #import('dart:dom'); | 3 #import('dart:dom'); |
| 4 | 4 |
| 5 main() { | 5 main() { |
| 6 if (window != window.top) { | 6 if (window != window.top) { |
| 7 // Child frame. | 7 // Child frame. |
| 8 | 8 |
| 9 // The child's frame should not be able to access its parent's | 9 // The child's frame should not be able to access its parent's |
| 10 // document. | 10 // document. |
| 11 try { | 11 try { |
| 12 var parentDocument = window.frameElement.ownerDocument; | 12 var parentDocument = window.frameElement.ownerDocument; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 31 document.body.appendChild(iframe); | 31 document.body.appendChild(iframe); |
| 32 }); | 32 }); |
| 33 | 33 |
| 34 test('frameElement', () { | 34 test('frameElement', () { |
| 35 var div = document.getElementById('illegal'); | 35 var div = document.getElementById('illegal'); |
| 36 | 36 |
| 37 // Ensure that this parent frame was not modified by its child. | 37 // Ensure that this parent frame was not modified by its child. |
| 38 Expect.isNull(div); | 38 Expect.isNull(div); |
| 39 }); | 39 }); |
| 40 } | 40 } |
| OLD | NEW |