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

Unified Diff: tests/dom/cross_frame_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/cross_frame_test.dart
diff --git a/tests/dom/cross_frame_test.dart b/tests/dom/cross_frame_test.dart
index db9a01e4e159db5c09674341c9d78860bdebb2c3..8269e284887f6ce5d9ce303f9c8f62ee64f6ba7c 100644
--- a/tests/dom/cross_frame_test.dart
+++ b/tests/dom/cross_frame_test.dart
@@ -1,26 +1,23 @@
#library('CrossFrameTest');
#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('contentWindow', () {
- final iframe = document.createElement('iframe');
- document.body.appendChild(iframe);
+ final iframe = new Element.tag('iframe');
+ document.body.nodes.add(iframe);
final frameWindow = iframe.contentWindow;
- // Test this field to ensure a valid Dart wrapper.
- Expect.isNull(frameWindow.dartObjectLocalStorage);
-
// Ensure that the frame's document is inaccessible via window.
Expect.throws(() => frameWindow.document);
});
test('contentDocument', () {
- final iframe = document.createElement('iframe');
- document.body.appendChild(iframe);
+ final iframe = new Element.tag('iframe');
+ document.body.nodes.add(iframe);
// Ensure that the frame's document is inaccessible.
Expect.throws(() => iframe.contentDocument);

Powered by Google App Engine
This is Rietveld 408576698