OLD | NEW |
1 library CrossFrameTest; | 1 library CrossFrameTest; |
2 import '../../pkg/unittest/lib/unittest.dart'; | 2 import 'package:unittest/unittest.dart'; |
3 import '../../pkg/unittest/lib/html_config.dart'; | 3 import 'package: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 var isWindowBase = predicate((x) => x is WindowBase, 'is a WindowBase'); | 9 var isWindowBase = predicate((x) => x is WindowBase, 'is a WindowBase'); |
10 var isWindow = predicate((x) => x is Window, 'is a Window'); | 10 var isWindow = predicate((x) => x is Window, 'is a Window'); |
11 var isLocationBase = predicate((x) => x is LocationBase, 'is a LocationBase'); | 11 var isLocationBase = predicate((x) => x is LocationBase, 'is a LocationBase'); |
12 var isLocation = | 12 var isLocation = |
13 predicate((x) => x is Location, 'is a Location'); | 13 predicate((x) => x is Location, 'is a Location'); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 // Valid methods. | 67 // Valid methods. |
68 frameHistory.forward(); | 68 frameHistory.forward(); |
69 | 69 |
70 expect(() => frameHistory.length, throws); | 70 expect(() => frameHistory.length, throws); |
71 | 71 |
72 final frameParentHistory = iframe.contentWindow.parent.history; | 72 final frameParentHistory = iframe.contentWindow.parent.history; |
73 expect(frameParentHistory, isHistory); | 73 expect(frameParentHistory, isHistory); |
74 }); | 74 }); |
75 } | 75 } |
OLD | NEW |