| Index: tests/html/exceptions_test.dart
|
| ===================================================================
|
| --- tests/html/exceptions_test.dart (revision 14114)
|
| +++ 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');
|
| }
|
| });
|
| }
|
|
|