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

Unified Diff: tests/html/history_test.dart

Issue 12041053: Adding supported flag to HashChangeEvent. (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 211b950ee742922e44ba5913245703c05a132ff2..c3f017049204ee70fe5ff2b3c10fb50465e16d85 100644
--- a/tests/html/history_test.dart
+++ b/tests/html/history_test.dart
@@ -22,6 +22,12 @@ main() {
});
});
+ group('supported_HashChangeEvent', () {
+ test('supported', () {
+ expect(HashChangeEvent.supported, true);
+ });
+ });
+
var expectation = History.supportsState ? returnsNormally : throws;
group('history', () {
@@ -68,6 +74,7 @@ main() {
});
test('hashchangeevent', () {
+ var expectation = HashChangeEvent.supported ? returnsNormally : throws;
expect(() {
var event = new HashChangeEvent('change', oldUrl:'old', newUrl: 'new');
expect(event is HashChangeEvent, true);

Powered by Google App Engine
This is Rietveld 408576698