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

Side by Side Diff: tests/html/cross_frame_test.dart

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « tests/html/contentelement_test.dart ('k') | tests/html/css_rule_list_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('CrossFrameTest'); 1 library CrossFrameTest;
2 #import('../../pkg/unittest/unittest.dart'); 2 import '../../pkg/unittest/lib/unittest.dart';
3 #import('../../pkg/unittest/html_config.dart'); 3 import '../../pkg/unittest/lib/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 isWindow = predicate((x) => x is Window, 'is a Window'); 9 var isWindow = predicate((x) => x is Window, 'is a Window');
10 var isLocalWindow = predicate((x) => x is LocalWindow, 'is a LocalWindow'); 10 var isLocalWindow = predicate((x) => x is LocalWindow, 'is a LocalWindow');
11 var isLocation = predicate((x) => x is Location, 'is a Location'); 11 var isLocation = predicate((x) => x is Location, 'is a Location');
12 var isLocalLocation = 12 var isLocalLocation =
13 predicate((x) => x is LocalLocation, 'is a LocalLocation'); 13 predicate((x) => x is LocalLocation, 'is a LocalLocation');
14 var isHistory = predicate((x) => x is History, 'is a History'); 14 var isHistory = predicate((x) => x is History, 'is a History');
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, isLocalHistory); 73 expect(frameParentHistory, isLocalHistory);
74 }); 74 });
75 } 75 }
OLDNEW
« no previous file with comments | « tests/html/contentelement_test.dart ('k') | tests/html/css_rule_list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698