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

Unified Diff: tests/lib_strong/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/lib_strong/html/element_constructor_1_test.dart
diff --git a/tests/lib_strong/html/element_constructor_1_test.dart b/tests/lib_strong/html/element_constructor_1_test.dart
index f97ce0f4335764e2f40ce217d6c573d3c4165a95..bd265b4a2e8a6b4b6eec5cf8a388a462b01d2953 100644
--- a/tests/lib_strong/html/element_constructor_1_test.dart
+++ b/tests/lib_strong/html/element_constructor_1_test.dart
@@ -13,8 +13,7 @@ import 'package:expect/minitest.dart';
main() {
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 =
predicate((x) => x is CanvasElement, 'is a CanvasElement');
@@ -25,52 +24,52 @@ main() {
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'), isTrue);
- });
+ var e = new AnchorElement(href: '#blah');
+ expect(e, isAnchorElement);
+ expect(e.href.endsWith('#blah'), isTrue);
+ });
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