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

Unified Diff: client/tests/client/dom/ExceptionsTest.dart

Issue 10222026: Migrate dom tests to dart: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
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);

Powered by Google App Engine
This is Rietveld 408576698