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

Unified Diff: client/tests/client/dom/WindowOpenTest.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/WindowOpenTest.dart
diff --git a/client/tests/client/dom/WindowOpenTest.dart b/client/tests/client/dom/WindowOpenTest.dart
index a16b280c7417a44347df3e321643fea2c0271a7c..0e7d81c2e6fcd48415504d3c27cf2c85d246eb86 100644
--- a/client/tests/client/dom/WindowOpenTest.dart
+++ b/client/tests/client/dom/WindowOpenTest.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