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

Unified Diff: tests/dom/exceptions_test.dart

Issue 10222026: Migrate dom tests to dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase & address comments. 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
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);

Powered by Google App Engine
This is Rietveld 408576698