Index: client/tests/client/dom/ExceptionsTest.dart |
diff --git a/client/tests/client/dom/ExceptionsTest.dart b/client/tests/client/dom/ExceptionsTest.dart |
deleted file mode 100644 |
index 92a0b7332ee0ec9aaf7ad3e9ed2e92b49c61899c..0000000000000000000000000000000000000000 |
--- a/client/tests/client/dom/ExceptionsTest.dart |
+++ /dev/null |
@@ -1,28 +0,0 @@ |
-#library('ExceptionsTest'); |
-#import('../../../../lib/unittest/unittest.dart'); |
-#import('../../../../lib/unittest/dom_config.dart'); |
-#import('dart:dom'); |
- |
-main() { |
- useDomConfiguration(); |
- test('DOMException', () { |
- try { |
- window.webkitNotifications.createNotification('', '', ''); |
- } catch (DOMException e) { |
- Expect.equals(DOMException.SECURITY_ERR, e.code); |
- Expect.equals('SECURITY_ERR', e.name); |
- Expect.equals('SECURITY_ERR: DOM Exception 18', e.message); |
- } |
- }); |
- test('EventException', () { |
- final event = window.document.createEvent('Event'); |
- // Intentionally do not initialize it! |
- try { |
- window.document.dispatchEvent(event); |
- } catch (EventException 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); |
- } |
- }); |
-} |