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

Unified Diff: tests/html/element_constructor_1_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/element_constructor_1_test.dart
diff --git a/tests/html/element_constructor_1_test.dart b/tests/html/element_constructor_1_test.dart
index b53e3667553f4042442696e09f24ed63ad43414f..7d5ee050bf97f281b727d653b3fe83ec43a38ac1 100644
--- a/tests/html/element_constructor_1_test.dart
+++ b/tests/html/element_constructor_1_test.dart
@@ -7,6 +7,7 @@
// element_constructor_foo_test.dart file.
library ElementConstructorTest;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
import 'dart:html';
@@ -14,66 +15,65 @@ import 'dart:html';
main() {
useHtmlConfiguration();
- var isAnchorElement =
+ var isAnchorElement =
predicate((x) => x is AnchorElement, 'is an AnchorElement');
- var isAreaElement =
- predicate((x) => x is AreaElement, 'is an AreaElement');
+ var isAreaElement = predicate((x) => x is AreaElement, 'is an AreaElement');
var isDivElement = predicate((x) => x is DivElement, 'is a DivElement');
- var isCanvasElement =
+ var isCanvasElement =
predicate((x) => x is CanvasElement, 'is a CanvasElement');
var isParagraphElement =
predicate((x) => x is ParagraphElement, 'is a ParagraphElement');
var isSpanElement = predicate((x) => x is SpanElement, 'is a SpanElement');
- var isSelectElement =
+ var isSelectElement =
predicate((x) => x is SelectElement, 'is a SelectElement');
test('anchor1', () {
- var e = new AnchorElement();
- expect(e, isAnchorElement);
- });
+ var e = new AnchorElement();
+ expect(e, isAnchorElement);
+ });
test('anchor2', () {
- var e = new AnchorElement(href: '#blah');
- expect(e, isAnchorElement);
- expect(e.href, endsWith('#blah'));
- });
+ var e = new AnchorElement(href: '#blah');
+ expect(e, isAnchorElement);
+ expect(e.href, endsWith('#blah'));
+ });
test('area', () {
- var e = new AreaElement();
- expect(e, isAreaElement);
- });
+ var e = new AreaElement();
+ expect(e, isAreaElement);
+ });
// AudioElement tested in audioelement_test.dart
test('div', () {
- var e = new DivElement();
- expect(e, isDivElement);
- });
+ var e = new DivElement();
+ expect(e, isDivElement);
+ });
test('canvas1', () {
- var e = new CanvasElement();
- expect(e, isCanvasElement);
- });
+ var e = new CanvasElement();
+ expect(e, isCanvasElement);
+ });
test('canvas2', () {
- var e = new CanvasElement(height: 100, width: 200);
- expect(e, isCanvasElement);
- expect(e.width, 200);
- expect(e.height, 100);
- });
+ var e = new CanvasElement(height: 100, width: 200);
+ expect(e, isCanvasElement);
+ expect(e.width, 200);
+ expect(e.height, 100);
+ });
test('p', () {
- var e = new ParagraphElement();
- expect(e, isParagraphElement);
- });
+ var e = new ParagraphElement();
+ expect(e, isParagraphElement);
+ });
test('span', () {
- var e = new SpanElement();
- expect(e, isSpanElement);
- });
+ var e = new SpanElement();
+ expect(e, isSpanElement);
+ });
test('select', () {
- var e = new SelectElement();
- expect(e, isSelectElement);
- });
+ var e = new SelectElement();
+ expect(e, isSelectElement);
+ });
}

Powered by Google App Engine
This is Rietveld 408576698