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

Unified Diff: tests/html/storage_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/storage_test.dart
diff --git a/tests/html/storage_test.dart b/tests/html/storage_test.dart
index cb00f86a89395c20f89a48cdc399af2e46c9653e..f24e1b7757a17482d716e42624101f18b4bdb0d9 100644
--- a/tests/html/storage_test.dart
+++ b/tests/html/storage_test.dart
@@ -16,4 +16,11 @@ main() {
final stored = window.localStorage[key];
expect(stored, value);
});
+
+ test('event', () {
+ var event = new StorageEvent('something', oldValue: 'old', newValue: 'new');
+ expect(event is StorageEvent, isTrue);
+ expect(event.oldValue, 'old');
+ expect(event.newValue, 'new');
+ });
}

Powered by Google App Engine
This is Rietveld 408576698