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

Unified Diff: tests/dom/window_open_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/window_open_test.dart
diff --git a/tests/dom/window_open_test.dart b/tests/dom/window_open_test.dart
index 01f55ee8a1d7c1f7277945b76c70480e31740869..850b8377f3844fbd20ff24475b790a53be99fc72 100644
--- a/tests/dom/window_open_test.dart
+++ b/tests/dom/window_open_test.dart
@@ -1,17 +1,17 @@
#library('WindowOpenTest');
#import('../../lib/unittest/unittest.dart');
-#import('../../lib/unittest/dom_config.dart');
-#import('dart:dom');
+#import('../../lib/unittest/html_config.dart');
+#import('dart:html');
main() {
evaluateJavaScript(code) {
- final scriptTag = document.createElement('script');
+ final scriptTag = new Element.tag('script');
scriptTag.innerHTML = code;
- document.body.appendChild(scriptTag);
+ document.body.nodes.add(scriptTag);
}
evaluateJavaScript('layoutTestController.setCanOpenWindows()');
- useDomConfiguration();
+ useHtmlConfiguration();
asyncTest('TwoArgumentVersion', 1, () {
Window win = window.open('../resources/pong.html', 'testWindow');
closeWindow(win);

Powered by Google App Engine
This is Rietveld 408576698