OLD | NEW |
1 import 'dart:html'; | 1 import 'dart:html'; |
2 | 2 |
3 import 'package:minitest/minitest.dart'; | 3 import 'package:expect/minitest.dart'; |
4 | 4 |
5 main() { | 5 main() { |
6 var isWindowBase = predicate((x) => x is WindowBase, 'is a WindowBase'); | 6 var isWindowBase = predicate((x) => x is WindowBase, 'is a WindowBase'); |
7 var isWindow = predicate((x) => x is Window, 'is a Window'); | 7 var isWindow = predicate((x) => x is Window, 'is a Window'); |
8 var isLocationBase = predicate((x) => x is LocationBase, 'is a LocationBase'); | 8 var isLocationBase = predicate((x) => x is LocationBase, 'is a LocationBase'); |
9 var isLocation = | 9 var isLocation = |
10 predicate((x) => x is Location, 'is a Location'); | 10 predicate((x) => x is Location, 'is a Location'); |
11 var isHistoryBase = predicate((x) => x is HistoryBase, 'is a HistoryBase'); | 11 var isHistoryBase = predicate((x) => x is HistoryBase, 'is a HistoryBase'); |
12 var isHistory = predicate((x) => x is History, 'is a History'); | 12 var isHistory = predicate((x) => x is History, 'is a History'); |
13 | 13 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // Valid methods. | 64 // Valid methods. |
65 frameHistory.forward(); | 65 frameHistory.forward(); |
66 | 66 |
67 expect(() => frameHistory.length, throws); | 67 expect(() => frameHistory.length, throws); |
68 | 68 |
69 final frameParentHistory = iframe.contentWindow.parent.history; | 69 final frameParentHistory = iframe.contentWindow.parent.history; |
70 expect(frameParentHistory, isHistory); | 70 expect(frameParentHistory, isHistory); |
71 }); | 71 }); |
72 } | 72 } |
OLD | NEW |