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

Side by Side Diff: client/tests/client/dom/HistoryTest.dart

Issue 9600035: Enable new dart:html wrapperless frog bindings and wrapper dartium bindings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Handle all code review comments Created 8 years, 9 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
OLDNEW
1 #library('HistoryTest'); 1 #library('HistoryTest');
2 #import('../../../testing/unittest/unittest.dart'); 2 #import('../../../testing/unittest/unittest_dom.dart');
3 #import('dart:dom'); 3 #import('dart:dom');
4 4
5 main() { 5 main() {
6 forLayoutTests(); 6 forLayoutTests();
7 test('History', () { 7 test('History', () {
8 window.history.pushState(null, document.title, '?foo=bar'); 8 window.history.pushState(null, document.title, '?foo=bar');
9 expect(window.history.length).equals(2); 9 expect(window.history.length).equals(2);
10 window.history.back(); 10 window.history.back();
11 expect(window.location.href.endsWith('foo=bar')).isTrue(); 11 expect(window.location.href.endsWith('foo=bar')).isTrue();
12 12
13 window.history.replaceState(null, document.title, '?foo=baz'); 13 window.history.replaceState(null, document.title, '?foo=baz');
14 Expect.equals(2, window.history.length); 14 Expect.equals(2, window.history.length);
15 expect(window.location.href.endsWith('foo=baz')).isTrue(); 15 expect(window.location.href.endsWith('foo=baz')).isTrue();
16 }); 16 });
17 } 17 }
OLDNEW
« no previous file with comments | « client/tests/client/dom/HiddenDom2Test.dart ('k') | client/tests/client/dom/InnerFrameTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698