Chromium Code Reviews| Index: samples/third_party/dromaeo/tests/dom-traverse-html.dart |
| diff --git a/samples/third_party/dromaeo/tests/dom-traverse-html.dart b/samples/third_party/dromaeo/tests/dom-traverse-html.dart |
| index c4e224e002165c0f483768a7f684a111f3abe9ab..b27e92eb7e6d1f90c834192c3b6db9ddcc97aea3 100644 |
| --- a/samples/third_party/dromaeo/tests/dom-traverse-html.dart |
| +++ b/samples/third_party/dromaeo/tests/dom-traverse-html.dart |
| @@ -34,7 +34,7 @@ void main() { |
| document.body.append(div); |
| }) |
| .test('firstChild', () { |
| - final nodes = document.body.$dom_childNodes; |
| + final nodes = document.body; |
|
blois
2013/08/27 16:08:10
I don't think this is a correct translation.
Emily Fortuna
2013/08/27 22:48:43
You can index into body to access all of the child
|
| final nl = nodes.length; |
| for (int i = 0; i < num; i++) { |
| @@ -48,7 +48,7 @@ void main() { |
| } |
| }) |
| .test('lastChild', () { |
| - final nodes = document.body.$dom_childNodes; |
| + final nodes = document.body; |
| final nl = nodes.length; |
| for (int i = 0; i < num; i++) { |
| @@ -81,7 +81,7 @@ void main() { |
| }) |
| .test('childNodes', () { |
| for (int i = 0; i < num; i++) { |
| - final nodes = document.body.$dom_childNodes; |
| + final nodes = document.body; |
| for (int j = 0; j < nodes.length; j++) { |
| ret = nodes[j]; |
| } |