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

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

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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-htmlidiomatic.dart
diff --git a/samples/third_party/dromaeo/tests/dom-traverse-htmlidiomatic.dart b/samples/third_party/dromaeo/tests/dom-traverse-htmlidiomatic.dart
index 277001ef65725b29295937b02a343fea22f338c7..79f31de0a59cb9cc304c45112fee3bf9902d3c67 100644
--- a/samples/third_party/dromaeo/tests/dom-traverse-htmlidiomatic.dart
+++ b/samples/third_party/dromaeo/tests/dom-traverse-htmlidiomatic.dart
@@ -52,7 +52,7 @@ void main() {
for (int j = 0; j < nl; j++) {
Node cur = nodes[j];
while (cur !== null) {
- cur = cur.nodes.last();
+ cur = cur.nodes.last;
}
ret = cur;
}
@@ -69,7 +69,7 @@ void main() {
})
.test('previousSibling', () {
for (int i = 0; i < num * 2; i++) {
- Node cur = document.body.nodes.last();
+ Node cur = document.body.nodes.last;
while (cur !== null) {
cur = cur.previousNode;
}
« no previous file with comments | « samples/third_party/dromaeo/tests/dom-query-htmlidiomatic.dart ('k') | samples/ui_lib/observable/observable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698