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

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

Issue 20847003: Fix Dromaeo performance tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 07d1e028daf881e8ff00c5ef03051dee4ce50a09..c4e224e002165c0f483768a7f684a111f3abe9ab 100644
--- a/samples/third_party/dromaeo/tests/dom-traverse-html.dart
+++ b/samples/third_party/dromaeo/tests/dom-traverse-html.dart
@@ -41,7 +41,7 @@ void main() {
for (int j = 0; j < nl; j++) {
Node cur = nodes[j];
while (cur != null) {
- cur = cur.$dom_firstChild;
+ cur = cur.firstChild;
}
ret = cur;
}
@@ -55,7 +55,7 @@ void main() {
for (int j = 0; j < nl; j++) {
Node cur = nodes[j];
while (cur != null) {
- cur = cur.$dom_lastChild;
+ cur = cur.lastChild;
}
ret = cur;
}
@@ -63,7 +63,7 @@ void main() {
})
.test('nextSibling', () {
for (int i = 0; i < num * 2; i++) {
- Node cur = document.body.$dom_firstChild;
+ Node cur = document.body.firstChild;
while (cur != null) {
cur = cur.nextNode;
}
@@ -72,7 +72,7 @@ void main() {
})
.test('previousSibling', () {
for (int i = 0; i < num * 2; i++) {
- Node cur = document.body.$dom_lastChild;
+ Node cur = document.body.lastChild;
while (cur != null) {
cur = cur.previousNode;
}

Powered by Google App Engine
This is Rietveld 408576698