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

Unified Diff: tests/dom/exceptions_test.dart

Issue 10178014: Copy lib/dom tests that use dart:html to lib/html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 8 years, 8 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
« no previous file with comments | « tests/dom/events_test.dart ('k') | tests/dom/hidden_dom_1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/dom/exceptions_test.dart
diff --git a/tests/dom/exceptions_test.dart b/tests/dom/exceptions_test.dart
deleted file mode 100644
index b36890db195e6a5a35372e0417249ae7680e8402..0000000000000000000000000000000000000000
--- a/tests/dom/exceptions_test.dart
+++ /dev/null
@@ -1,28 +0,0 @@
-#library('ExceptionsTest');
-#import('../../lib/unittest/unittest.dart');
-#import('../../lib/unittest/html_config.dart');
-#import('dart:html');
-
-main() {
- useHtmlConfiguration();
- 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 = new Event('Event');
- // Intentionally do not initialize it!
- try {
- document.$dom_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);
- }
- });
-}
« no previous file with comments | « tests/dom/events_test.dart ('k') | tests/dom/hidden_dom_1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698