| Index: tests/dom/exceptions_test.dart
|
| diff --git a/tests/dom/exceptions_test.dart b/tests/dom/exceptions_test.dart
|
| index 6617ce404132bb84e8ae5e9b537a4ac9a7c9d51b..b36890db195e6a5a35372e0417249ae7680e8402 100644
|
| --- a/tests/dom/exceptions_test.dart
|
| +++ b/tests/dom/exceptions_test.dart
|
| @@ -1,10 +1,10 @@
|
| #library('ExceptionsTest');
|
| #import('../../lib/unittest/unittest.dart');
|
| -#import('../../lib/unittest/dom_config.dart');
|
| -#import('dart:dom');
|
| +#import('../../lib/unittest/html_config.dart');
|
| +#import('dart:html');
|
|
|
| main() {
|
| - useDomConfiguration();
|
| + useHtmlConfiguration();
|
| test('DOMException', () {
|
| try {
|
| window.webkitNotifications.createNotification('', '', '');
|
| @@ -15,10 +15,10 @@ main() {
|
| }
|
| });
|
| test('EventException', () {
|
| - final event = window.document.createEvent('Event');
|
| + final event = new Event('Event');
|
| // Intentionally do not initialize it!
|
| try {
|
| - window.document.dispatchEvent(event);
|
| + document.$dom_dispatchEvent(event);
|
| } catch (EventException e) {
|
| Expect.equals(EventException.UNSPECIFIED_EVENT_TYPE_ERR, e.code);
|
| Expect.equals('UNSPECIFIED_EVENT_TYPE_ERR', e.name);
|
|
|