| 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);
|
|
|