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

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

Issue 10806016: Cleanup queryAll to return List<Element>. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix comment Created 8 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
« no previous file with comments | « samples/third_party/dromaeo/tests/dom-query-html.dart ('k') | tests/html/queryall_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/third_party/dromaeo/tests/dom-query-htmlidiomatic.dart
diff --git a/samples/third_party/dromaeo/tests/dom-query-htmlidiomatic.dart b/samples/third_party/dromaeo/tests/dom-query-htmlidiomatic.dart
index cb5284db6eac8a99d89be1559b8ec3ed0f403699..b65d00810873f6417d4495d55b9a59fe89d41dff 100644
--- a/samples/third_party/dromaeo/tests/dom-query-htmlidiomatic.dart
+++ b/samples/third_party/dromaeo/tests/dom-query-htmlidiomatic.dart
@@ -50,37 +50,37 @@ void main() {
})
.test('getElementsByTagName(div)', () {
for (int i = 0; i < num; i++) {
- ElementList elems = document.queryAll('div');
+ List<Element> elems = document.queryAll('div');
ret = elems.last().$dom_nodeType;
}
})
.test('getElementsByTagName(p)', () {
for (int i = 0; i < num; i++) {
- ElementList elems = document.queryAll('p');
+ List<Element> elems = document.queryAll('p');
ret = elems.last().$dom_nodeType;
}
})
.test('getElementsByTagName(a)', () {
for (int i = 0; i < num; i++) {
- ElementList elems = document.queryAll('a');
+ List<Element> elems = document.queryAll('a');
ret = elems.last().$dom_nodeType;
}
})
.test('getElementsByTagName(*)', () {
for (int i = 0; i < num; i++) {
- ElementList elems = document.queryAll('*');
+ List<Element> elems = document.queryAll('*');
ret = elems.last().$dom_nodeType;
}
})
.test('getElementsByTagName (not in document)', () {
for (int i = 0; i < num; i++) {
- ElementList elems = document.queryAll('strong');
+ List<Element> elems = document.queryAll('strong');
ret = elems.isEmpty();
}
})
.test('getElementsByName', () {
for (int i = 0; i < num * 20; i++) {
- ElementList elems = document.queryAll('[name="test$num"]');
+ List<Element> elems = document.queryAll('[name="test$num"]');
ret = elems.last().$dom_nodeType;
elems = document.queryAll('[name="test$num"]');
ret = elems.last().$dom_nodeType;
« no previous file with comments | « samples/third_party/dromaeo/tests/dom-query-html.dart ('k') | tests/html/queryall_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698