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

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

Issue 11086012: Fix test to pass on IE, FF (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tests/html/html.status » ('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/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
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 }
OLDNEW
« no previous file with comments | « no previous file | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698