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

Unified Diff: tests/html/exceptions_test.dart

Issue 11275054: Modified unittest to use new argument syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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/exceptions_test.dart
===================================================================
--- tests/html/exceptions_test.dart (revision 14156)
+++ tests/html/exceptions_test.dart (working copy)
@@ -9,9 +9,9 @@
try {
window.webkitNotifications.createNotification('', '', '');
} on DOMException catch (e) {
- Expect.equals(DOMException.SECURITY_ERR, e.code);
- Expect.equals('SECURITY_ERR', e.name);
- Expect.equals('SECURITY_ERR: DOM Exception 18', e.message);
+ expect(e.code, DOMException.SECURITY_ERR);
+ expect(e.name, 'SECURITY_ERR');
+ expect(e.message, 'SECURITY_ERR: DOM Exception 18');
}
});
test('EventException', () {
@@ -20,9 +20,9 @@
try {
document.$dom_dispatchEvent(event);
} on EventException catch (e) {
- Expect.equals(EventException.UNSPECIFIED_EVENT_TYPE_ERR, e.code);
- Expect.equals('UNSPECIFIED_EVENT_TYPE_ERR', e.name);
- Expect.equals('UNSPECIFIED_EVENT_TYPE_ERR: DOM Events Exception 0', e.message);
+ expect(e.code, EventException.UNSPECIFIED_EVENT_TYPE_ERR);
+ expect(e.name, 'UNSPECIFIED_EVENT_TYPE_ERR');
+ expect(e.message, 'UNSPECIFIED_EVENT_TYPE_ERR: DOM Events Exception 0');
}
});
}

Powered by Google App Engine
This is Rietveld 408576698