Index: tests/lib_strong/html/htmlcollection_test.dart |
diff --git a/tests/lib_strong/html/htmlcollection_test.dart b/tests/lib_strong/html/htmlcollection_test.dart |
index 4496106e07e48342cafca2799fe6b6c96d145f12..75e7544c84a57195d4ff43335018a1e1ef93c31d 100644 |
--- a/tests/lib_strong/html/htmlcollection_test.dart |
+++ b/tests/lib_strong/html/htmlcollection_test.dart |
@@ -37,8 +37,7 @@ main() { |
test('IsList', () { |
Element root = insertTestDiv(); |
- List<Element> eachChecked = |
- document.query('#allChecked').children; |
+ List<Element> eachChecked = document.query('#allChecked').children; |
expect(eachChecked is List, isTrue); |
@@ -47,14 +46,11 @@ main() { |
test('Every', () { |
Element root = insertTestDiv(); |
- List<Element> eachChecked = |
- document.query('#allChecked').children; |
+ List<Element> eachChecked = document.query('#allChecked').children; |
- List<Element> someChecked = |
- document.query('#someChecked').children; |
+ List<Element> someChecked = document.query('#someChecked').children; |
- List<Element> noneChecked = |
- document.query('#noneChecked').children; |
+ List<Element> noneChecked = document.query('#noneChecked').children; |
expect(eachChecked.length, 4); |
expect(someChecked.length, 4); |
@@ -72,14 +68,11 @@ main() { |
test('Some', () { |
Element root = insertTestDiv(); |
- List<Element> eachChecked = |
- document.query('#allChecked').children; |
+ List<Element> eachChecked = document.query('#allChecked').children; |
- List<Element> someChecked = |
- document.query('#someChecked').children; |
+ List<Element> someChecked = document.query('#someChecked').children; |
- List<Element> noneChecked = |
- document.query('#noneChecked').children; |
+ List<Element> noneChecked = document.query('#noneChecked').children; |
expect(eachChecked.length, 4); |
expect(someChecked.length, 4); |
@@ -97,14 +90,11 @@ main() { |
test('Filter', () { |
Element root = insertTestDiv(); |
- List<Element> eachChecked = |
- document.query('#allChecked').children; |
+ List<Element> eachChecked = document.query('#allChecked').children; |
- List<Element> someChecked = |
- document.query('#someChecked').children; |
+ List<Element> someChecked = document.query('#someChecked').children; |
- List<Element> noneChecked = |
- document.query('#noneChecked').children; |
+ List<Element> noneChecked = document.query('#noneChecked').children; |
expect(eachChecked.length, 4); |
expect(someChecked.length, 4); |
@@ -122,11 +112,9 @@ main() { |
test('IsEmpty', () { |
Element root = insertTestDiv(); |
- List<Element> someChecked = |
- document.query('#someChecked').children; |
+ List<Element> someChecked = document.query('#someChecked').children; |
- List<Element> emptyDiv = |
- document.query('#emptyDiv').children; |
+ List<Element> emptyDiv = document.query('#emptyDiv').children; |
expect(someChecked.length, 4); |
expect(emptyDiv.length, 0); |
@@ -140,22 +128,19 @@ main() { |
int countWithForEach(collection, predicate) { |
int count = 0; |
collection.forEach((element) { |
- if (predicate(element)) count++; |
- }); |
+ if (predicate(element)) count++; |
+ }); |
return count; |
} |
test('ForEach', () { |
Element root = insertTestDiv(); |
- List<Element> eachChecked = |
- document.query('#allChecked').children; |
+ List<Element> eachChecked = document.query('#allChecked').children; |
- List<Element> someChecked = |
- document.query('#someChecked').children; |
+ List<Element> someChecked = document.query('#someChecked').children; |
- List<Element> noneChecked = |
- document.query('#noneChecked').children; |
+ List<Element> noneChecked = document.query('#noneChecked').children; |
expect(eachChecked.length, 4); |
expect(someChecked.length, 4); |
@@ -179,17 +164,15 @@ main() { |
return count; |
} |
- test('ForLoop', () { // Uses iterator. |
+ test('ForLoop', () { |
+ // Uses iterator. |
Element root = insertTestDiv(); |
- List<Element> eachChecked = |
- document.query('#allChecked').children; |
+ List<Element> eachChecked = document.query('#allChecked').children; |
- List<Element> someChecked = |
- document.query('#someChecked').children; |
+ List<Element> someChecked = document.query('#someChecked').children; |
- List<Element> noneChecked = |
- document.query('#noneChecked').children; |
+ List<Element> noneChecked = document.query('#noneChecked').children; |
expect(eachChecked.length, 4); |
expect(someChecked.length, 4); |
@@ -207,8 +190,7 @@ main() { |
test('Last', () { |
Element root = insertTestDiv(); |
- List<Element> someChecked = |
- document.query('#someChecked').children; |
+ List<Element> someChecked = document.query('#someChecked').children; |
expect(someChecked.length, 4); |
@@ -219,11 +201,9 @@ main() { |
test('IndexOf', () { |
Element root = insertTestDiv(); |
- List<Element> someChecked = |
- document.query('#someChecked').children; |
+ List<Element> someChecked = document.query('#someChecked').children; |
- List<Element> noneChecked = |
- document.query('#noneChecked').children; |
+ List<Element> noneChecked = document.query('#noneChecked').children; |
expect(someChecked.length, 4); |
expect(noneChecked.length, 4); |
@@ -248,11 +228,9 @@ main() { |
test('LastIndexOf', () { |
Element root = insertTestDiv(); |
- List<Element> someChecked = |
- document.query('#someChecked').children; |
+ List<Element> someChecked = document.query('#someChecked').children; |
- List<Element> noneChecked = |
- document.query('#noneChecked').children; |
+ List<Element> noneChecked = document.query('#noneChecked').children; |
expect(someChecked.length, 4); |
expect(noneChecked.length, 4); |