Index: tests/lib_strong/html/element_classes_svg_test.dart |
diff --git a/tests/lib_strong/html/element_classes_svg_test.dart b/tests/lib_strong/html/element_classes_svg_test.dart |
index 44d47f4d0526185d4017a4f4c507c2680ee885c6..67a40e817d93a219161bcb8b5e8a122c56e613b7 100644 |
--- a/tests/lib_strong/html/element_classes_svg_test.dart |
+++ b/tests/lib_strong/html/element_classes_svg_test.dart |
@@ -12,8 +12,7 @@ import 'package:expect/minitest.dart'; |
// Html and Svg elements. |
Element makeElementsContainer() { |
- var e = new Element.html( |
- '<ul class="yes foo">' |
+ var e = new Element.html('<ul class="yes foo">' |
'<li class="yes quux qux">' |
'</ul>'); |
final svgContent = r""" |
@@ -68,7 +67,7 @@ main() { |
}); |
test('listClasses=', () { |
- var elements = elementsSetup(); |
+ var elements = elementsSetup(); |
elements.classes = ['foo', 'qux']; |
expect(view(elements.classes), '[foo, qux]'); |
@@ -101,12 +100,13 @@ main() { |
}); |
test('listAdd', () { |
- var elements = elementsSetup(); |
+ var elements = elementsSetup(); |
var added = elements.classes.add('lassie'); |
expect(added, isNull); |
expect(view(elements.classes), '[classy, foo, lassie, quux, qux, yes]'); |
- expect(view(elements), |
+ expect( |
+ view(elements), |
'[[foo, lassie, yes], [lassie, quux, qux, yes], ' |
'[lassie, qux, yes], [classy, lassie, yes]]'); |
}); |
@@ -120,8 +120,7 @@ main() { |
expect(elements.classes.remove('qux'), isTrue); |
expect(view(elements.classes), '[classy, foo, quux, yes]'); |
- expect(view(elements), |
- '[[foo, yes], [quux, yes], [yes], [classy, yes]]'); |
+ expect(view(elements), '[[foo, yes], [quux, yes], [yes], [classy, yes]]'); |
}); |
test('listToggle', () { |
@@ -135,9 +134,10 @@ main() { |
test('listAddAll', () { |
var elements = elementsSetup(); |
elements.classes.addAll(['qux', 'lassi', 'sassy']); |
- expect(view(elements.classes), |
- '[classy, foo, lassi, quux, qux, sassy, yes]'); |
- expect(view(elements), |
+ expect( |
+ view(elements.classes), '[classy, foo, lassi, quux, qux, sassy, yes]'); |
+ expect( |
+ view(elements), |
'[[foo, lassi, qux, sassy, yes], [lassi, quux, qux, sassy, yes], ' |
'[lassi, qux, sassy, yes], [classy, lassi, qux, sassy, yes]]'); |
}); |
@@ -146,23 +146,21 @@ main() { |
var elements = elementsSetup(); |
elements.classes.removeAll(['qux', 'classy', 'mumble']); |
expect(view(elements.classes), '[foo, quux, yes]'); |
- expect(view(elements), |
- '[[foo, yes], [quux, yes], [yes], [yes]]'); |
+ expect(view(elements), '[[foo, yes], [quux, yes], [yes], [yes]]'); |
elements.classes.removeAll(['foo', 'yes']); |
expect(view(elements.classes), '[quux]'); |
- expect(view(elements), |
- '[[], [quux], [], []]'); |
+ expect(view(elements), '[[], [quux], [], []]'); |
}); |
test('listToggleAll', () { |
var elements = elementsSetup(); |
elements.classes.toggleAll(['qux', 'mornin']); |
expect(view(elements.classes), '[classy, foo, mornin, quux, qux, yes]'); |
- expect(view(elements), |
+ expect( |
+ view(elements), |
'[[foo, mornin, qux, yes], [mornin, quux, yes], ' |
'[mornin, yes], [classy, mornin, qux, yes]]'); |
- |
}); |
test('listRetainAll', () { |
@@ -176,16 +174,14 @@ main() { |
var elements = elementsSetup(); |
elements.classes.removeWhere((s) => s.startsWith('q')); |
expect(view(elements.classes), '[classy, foo, yes]'); |
- expect(view(elements), |
- '[[foo, yes], [yes], [yes], [classy, yes]]'); |
+ expect(view(elements), '[[foo, yes], [yes], [yes], [classy, yes]]'); |
}); |
test('listRetainWhere', () { |
var elements = elementsSetup(); |
elements.classes.retainWhere((s) => s.startsWith('q')); |
expect(view(elements.classes), '[quux, qux]'); |
- expect(view(elements), |
- '[[], [quux, qux], [qux], []]'); |
+ expect(view(elements), '[[], [quux, qux], [qux], []]'); |
}); |
test('listContainsAll', () { |