| Index: client/tests/client/dom/HistoryTest.dart
|
| diff --git a/client/tests/client/dom/HistoryTest.dart b/client/tests/client/dom/HistoryTest.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..33f60a306d3aad5950fa2d2efca05369a6ca3ae2
|
| --- /dev/null
|
| +++ b/client/tests/client/dom/HistoryTest.dart
|
| @@ -0,0 +1,17 @@
|
| +#library('HistoryTest');
|
| +#import('../../../testing/unittest/unittest.dart');
|
| +#import('dart:dom');
|
| +
|
| +main() {
|
| + forLayoutTests();
|
| + test('History', () {
|
| + window.history.pushState(null, document.title, '?foo=bar');
|
| + expect(window.history.length).equals(2);
|
| + window.history.back();
|
| + expect(window.location.href.endsWith('foo=bar')).isTrue();
|
| +
|
| + window.history.replaceState(null, document.title, '?foo=baz');
|
| + Expect.equals(2, window.history.length);
|
| + expect(window.location.href.endsWith('foo=baz')).isTrue();
|
| + });
|
| +}
|
|
|