Chromium Code Reviews| Index: client/tests/client/dom/ExceptionsTest.dart |
| diff --git a/client/tests/client/dom/ExceptionsTest.dart b/client/tests/client/dom/ExceptionsTest.dart |
| index 92a0b7332ee0ec9aaf7ad3e9ed2e92b49c61899c..811f3a122ee6f8d60771d384416750ac7f24758c 100644 |
| --- a/client/tests/client/dom/ExceptionsTest.dart |
| +++ b/client/tests/client/dom/ExceptionsTest.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); |
| + window.document.$dom_dispatchEvent(event); |
|
Anton Muhin
2012/04/26 18:47:36
no html variant? maybe a bug should be filed
Jacob
2012/04/26 19:32:45
there is one but is a bit ugly for this edge case
podivilov
2012/04/27 11:59:47
Done.
|
| } catch (EventException e) { |
| Expect.equals(EventException.UNSPECIFIED_EVENT_TYPE_ERR, e.code); |
| Expect.equals('UNSPECIFIED_EVENT_TYPE_ERR', e.name); |