Index: tests/html/messageevent_test.dart |
diff --git a/tests/html/messageevent_test.dart b/tests/html/messageevent_test.dart |
index 86348fdd820b4174d65aff7087473f7489dae9eb..f1e5119ec45eeff43064161961bb2514665fe45e 100644 |
--- a/tests/html/messageevent_test.dart |
+++ b/tests/html/messageevent_test.dart |
@@ -1,4 +1,5 @@ |
library SerializedScriptValueTest; |
+ |
import 'package:unittest/unittest.dart'; |
import 'package:unittest/html_config.dart'; |
import 'dart:html'; |
@@ -7,17 +8,20 @@ main() { |
useHtmlConfiguration(); |
test('new MessageEvent', () { |
- final event = new MessageEvent('type', cancelable: true, data: 'data', |
- origin: 'origin', lastEventId: 'lastEventId'); |
+ final event = new MessageEvent('type', |
+ cancelable: true, |
+ data: 'data', |
+ origin: 'origin', |
+ lastEventId: 'lastEventId'); |
- expect(event.type, equals('type')); |
- expect(event.bubbles, isFalse); |
- expect(event.cancelable, isTrue); |
- expect(event.data, equals('data')); |
- expect(event.origin, equals('origin')); |
- // IE allows setting this but just ignores it. |
- // expect(event.lastEventId, equals('lastEventId')); |
- expect(event.source, window); |
- // TODO(antonm): accessing ports is not supported yet. |
+ expect(event.type, equals('type')); |
+ expect(event.bubbles, isFalse); |
+ expect(event.cancelable, isTrue); |
+ expect(event.data, equals('data')); |
+ expect(event.origin, equals('origin')); |
+ // IE allows setting this but just ignores it. |
+ // expect(event.lastEventId, equals('lastEventId')); |
+ expect(event.source, window); |
+ // TODO(antonm): accessing ports is not supported yet. |
}); |
} |