Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/cross_frame_test.dart

Issue 2416853003: Move minitest.dart into the expect package. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/codegen/lib/html/client_rect_test.dart ('k') | pkg/dev_compiler/test/codegen/lib/html/crypto_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698