| Index: tests/dom/typing_test.dart
|
| diff --git a/tests/dom/typing_test.dart b/tests/dom/typing_test.dart
|
| index ed8f8f683963f09ffa8038b74341b1b54058948f..e955e90354ecb5294228c1dd8e11c2f6c51471af 100644
|
| --- a/tests/dom/typing_test.dart
|
| +++ b/tests/dom/typing_test.dart
|
| @@ -1,21 +1,21 @@
|
| #library('TypingTest');
|
| #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('NodeList', () {
|
| - List<Node> asList = window.document.getElementsByTagName('body');
|
| + List<Node> asList = window.document.queryAll('body');
|
| // Check it's Iterable
|
| int counter = 0;
|
| - for (Node node in window.document.getElementsByTagName('body')) {
|
| + for (Node node in window.document.queryAll('body')) {
|
| counter++;
|
| }
|
| Expect.equals(1, counter);
|
| counter = 0;
|
| - window.document.getElementsByTagName('body').forEach((e) { counter++; });
|
| + window.document.queryAll('body').forEach((e) { counter++; });
|
| Expect.equals(1, counter);
|
| });
|
|
|
|
|