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

Unified Diff: samples/third_party/dromaeo/tests/dom-query-html.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-query-html.dart
diff --git a/samples/third_party/dromaeo/tests/dom-query-html.dart b/samples/third_party/dromaeo/tests/dom-query-html.dart
index 85d1654e62f29c5c1c81fe803dbf58e5c74a7763..15a20ac1ab98d3c9ade75c12b5f38dcc04f551e8 100644
--- a/samples/third_party/dromaeo/tests/dom-query-html.dart
+++ b/samples/third_party/dromaeo/tests/dom-query-html.dart
@@ -52,25 +52,25 @@ void main() {
.test('getElementsByTagName(div)', () {
for (int i = 0; i < num; i++) {
List<Element> elems = document.$dom_getElementsByTagName('div');
- ret = elems.last().$dom_nodeType;
+ ret = elems.last.$dom_nodeType;
}
})
.test('getElementsByTagName(p)', () {
for (int i = 0; i < num; i++) {
List<Element> elems = document.$dom_getElementsByTagName('p');
- ret = elems.last().$dom_nodeType;
+ ret = elems.last.$dom_nodeType;
}
})
.test('getElementsByTagName(a)', () {
for (int i = 0; i < num; i++) {
List<Element> elems = document.$dom_getElementsByTagName('a');
- ret = elems.last().$dom_nodeType;
+ ret = elems.last.$dom_nodeType;
}
})
.test('getElementsByTagName(*)', () {
for (int i = 0; i < num; i++) {
List<Element> elems = document.$dom_getElementsByTagName('*');
- ret = elems.last().$dom_nodeType;
+ ret = elems.last.$dom_nodeType;
}
})
.test('getElementsByTagName (not in document)', () {

Powered by Google App Engine
This is Rietveld 408576698