| OLD | NEW |
| (Empty) |
| 1 #library('HistoryTest'); | |
| 2 #import('../../lib/unittest/unittest.dart'); | |
| 3 #import('../../lib/unittest/html_config.dart'); | |
| 4 #import('dart:html'); | |
| 5 | |
| 6 main() { | |
| 7 useHtmlConfiguration(); | |
| 8 test('History', () { | |
| 9 window.history.pushState(null, document.title, '?foo=bar'); | |
| 10 expect(window.history.length).equals(2); | |
| 11 window.history.back(); | |
| 12 expect(window.location.href.endsWith('foo=bar')).isTrue(); | |
| 13 | |
| 14 window.history.replaceState(null, document.title, '?foo=baz'); | |
| 15 Expect.equals(2, window.history.length); | |
| 16 expect(window.location.href.endsWith('foo=baz')).isTrue(); | |
| 17 }); | |
| 18 } | |
| OLD | NEW |