| OLD | NEW |
| 1 #library('CrossFrameTest'); | 1 #library('CrossFrameTest'); |
| 2 #import('../../pkg/unittest/unittest.dart'); | 2 #import('../../pkg/unittest/unittest.dart'); |
| 3 #import('../../pkg/unittest/html_config.dart'); | 3 #import('../../pkg/unittest/html_config.dart'); |
| 4 #import('dart:html'); | 4 #import('dart:html'); |
| 5 | 5 |
| 6 main() { | 6 main() { |
| 7 useHtmlConfiguration(); | 7 useHtmlConfiguration(); |
| 8 | 8 |
| 9 final iframe = new Element.tag('iframe'); | 9 final iframe = new Element.tag('iframe'); |
| 10 document.body.nodes.add(iframe); | 10 document.body.nodes.add(iframe); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 expect(frameParentLocation is LocalLocation); | 42 expect(frameParentLocation is LocalLocation); |
| 43 }); | 43 }); |
| 44 | 44 |
| 45 test('history', () { | 45 test('history', () { |
| 46 expect(window.history is LocalHistory); | 46 expect(window.history is LocalHistory); |
| 47 final frameHistory = iframe.contentWindow.history; | 47 final frameHistory = iframe.contentWindow.history; |
| 48 expect(frameHistory is History); | 48 expect(frameHistory is History); |
| 49 expect(frameHistory is! LocalHistory); | 49 expect(frameHistory is! LocalHistory); |
| 50 | 50 |
| 51 // Valid methods. | 51 // Valid methods. |
| 52 frameHistory.back(); | |
| 53 frameHistory.forward(); | 52 frameHistory.forward(); |
| 54 | 53 |
| 55 expect(() => frameHistory.length, throws); | 54 expect(() => frameHistory.length, throws); |
| 56 | 55 |
| 57 final frameParentHistory = iframe.contentWindow.parent.history; | 56 final frameParentHistory = iframe.contentWindow.parent.history; |
| 58 expect(frameParentHistory is LocalHistory); | 57 expect(frameParentHistory is LocalHistory); |
| 59 }); | 58 }); |
| 60 } | 59 } |
| OLD | NEW |