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

Unified Diff: tests/html/messageevent_test.dart

Issue 10441104: New expectation functions plus convert old tests to use these. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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
« no previous file with comments | « tests/html/history_test.dart ('k') | tests/html/transferables_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/messageevent_test.dart
===================================================================
--- tests/html/messageevent_test.dart (revision 8345)
+++ tests/html/messageevent_test.dart (working copy)
@@ -9,13 +9,13 @@
test('MessageEvent.initMessageEvent', () {
final event = document.$dom_createEvent('MessageEvent');
event.initMessageEvent('type', false, true, 'data', 'origin', 'lastEventId', window, []);
- expect(event.type).equals('type');
- expect(event.bubbles).equals(false);
- expect(event.cancelable).equals(true);
- expect(event.data).equals('data');
- expect(event.origin).equals('origin');
- expect(event.lastEventId).equals('lastEventId');
- expect(event.source).same(window);
+ expect(event.type, equals('type'));
+ expect(event.bubbles, isFalse);
+ expect(event.cancelable, isTrue);
+ expect(event.data, equals('data'));
+ expect(event.origin, equals('origin'));
+ expect(event.lastEventId, equals('lastEventId'));
+ expect(event.source, same(window));
// TODO(antonm): accessing ports is not supported yet.
});
}
« no previous file with comments | « tests/html/history_test.dart ('k') | tests/html/transferables_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698