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

Unified Diff: tests/html/history_test.dart

Issue 12025027: Cleaning up event constructors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: tests/html/history_test.dart
diff --git a/tests/html/history_test.dart b/tests/html/history_test.dart
index bee3323b8866b1d7bc8748e877fb9b5fdea94e7c..271b4fc7ba10f58c7e7d700f2eae13c96f2d5c84 100644
--- a/tests/html/history_test.dart
+++ b/tests/html/history_test.dart
@@ -66,5 +66,12 @@ main() {
expect(window.location.href.endsWith('foo=baz'), isTrue);
}, expectation);
});
+
+ test('hashchangeevent', () {
+ var event = new HashChangeEvent('change', oldUrl:'old', newUrl: 'new');
+ expect(event is HashChangeEvent, true);
+ expect(event.oldUrl, 'old');
+ expect(event.newUrl, 'new');
+ });
});
}

Powered by Google App Engine
This is Rietveld 408576698