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

Unified Diff: client/tests/client/dom/DOMIsolatesTest.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/DOMIsolatesTest.dart
diff --git a/client/tests/client/dom/DOMIsolatesTest.dart b/client/tests/client/dom/DOMIsolatesTest.dart
index 542145cba17b87c45fb26036921836e4554efa81..f752a4decaf8a064d4959d6023831d02a7628619 100644
--- a/client/tests/client/dom/DOMIsolatesTest.dart
+++ b/client/tests/client/dom/DOMIsolatesTest.dart
@@ -1,7 +1,7 @@
#library('DOMIsolatesTest');
#import('../../../../lib/unittest/unittest.dart');
-#import('../../../../lib/unittest/dom_config.dart');
-#import('dart:dom');
+#import('../../../../lib/unittest/html_config.dart');
+#import('dart:html');
#import('dart:isolate');
isolateMain(port) {
@@ -27,10 +27,10 @@ isolateMainTrampoline(port) {
}
main() {
- useDomConfiguration();
+ useHtmlConfiguration();
- final iframe = document.createElement('iframe');
- document.body.appendChild(iframe);
+ final iframe = new Element.tag('iframe');
+ document.body.nodes.add(iframe);
asyncTest('Simple DOM isolate test', 1, () {
spawnDomIsolate(iframe.contentWindow, 'isolateMain').then((sendPort) {

Powered by Google App Engine
This is Rietveld 408576698