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

Unified Diff: tests/html/event_customevent_test.dart

Issue 11030012: Add constructor for CustomEvent. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/event_customevent_test.dart
===================================================================
--- tests/html/event_customevent_test.dart (revision 13097)
+++ tests/html/event_customevent_test.dart (working copy)
@@ -27,10 +27,7 @@
useHtmlConfiguration();
eventTest('CustomEvent.initCustomEvent', () {
- // TODO: switch to constructors later.
- final ev = document.$dom_createEvent('CustomEvent');
- ev.initCustomEvent('foo', false, false, 'detail');
- return ev;
+ return new CustomEvent('foo', false, false, 'detail');
},
(ev) { expect(ev.detail, equals('detail')); });
}

Powered by Google App Engine
This is Rietveld 408576698