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

Unified Diff: samples/third_party/dromaeo/tests/dom-traverse-html.dart

Issue 23189014: Removing more dom_ methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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: 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];
}

Powered by Google App Engine
This is Rietveld 408576698