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

Unified Diff: tests/html/node_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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: tests/html/node_test.dart
diff --git a/tests/html/node_test.dart b/tests/html/node_test.dart
index 18f7f36dfff9eb9ef344db9382d456d7dad2f9b6..5b62f6358d790ee69a6589d97fb3d7f24512a38a 100644
--- a/tests/html/node_test.dart
+++ b/tests/html/node_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
library NodeTest;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_individual_config.dart';
import 'dart:html';
@@ -10,7 +11,7 @@ import 'dart:svg' as svg;
Node makeNode() => new Element.tag('div');
Node makeNodeWithChildren() =>
- new Element.html("<div>Foo<br/><!--baz--></div>");
+ new Element.html("<div>Foo<br/><!--baz--></div>");
void testUnsupported(String name, void f()) {
test(name, () {
@@ -81,11 +82,7 @@ main() {
test('insertAllBefore', () {
var node = makeNodeWithChildren();
var b = new DivElement();
- b.nodes.addAll([
- new HRElement(),
- new ImageElement(),
- new InputElement()
- ]);
+ b.nodes.addAll([new HRElement(), new ImageElement(), new InputElement()]);
node.insertAllBefore(b.nodes, node.nodes[1]);
expect(node.nodes[0], isText);
expect(node.nodes[1], isHRElement);
@@ -94,11 +91,7 @@ main() {
expect(node.nodes[4], isBRElement);
expect(node.nodes[5], isComment);
- var nodes = [
- new HRElement(),
- new ImageElement(),
- new InputElement()
- ];
+ var nodes = [new HRElement(), new ImageElement(), new InputElement()];
node.insertAllBefore(nodes, node.nodes[5]);
expect(node.nodes[0], isText);
@@ -287,11 +280,7 @@ main() {
test('insertAll', () {
var node = makeNodeWithChildren();
var b = new DivElement();
- b.nodes.addAll([
- new HRElement(),
- new ImageElement(),
- new InputElement()
- ]);
+ b.nodes.addAll([new HRElement(), new ImageElement(), new InputElement()]);
node.nodes.insertAll(1, b.nodes);
expect(node.nodes[0], isText);
expect(node.nodes[1], isHRElement);
@@ -300,11 +289,7 @@ main() {
expect(node.nodes[4], isBRElement);
expect(node.nodes[5], isComment);
- var nodes = [
- new HRElement(),
- new ImageElement(),
- new InputElement()
- ];
+ var nodes = [new HRElement(), new ImageElement(), new InputElement()];
node.nodes.insertAll(5, nodes);
expect(node.nodes[0], isText);

Powered by Google App Engine
This is Rietveld 408576698