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

Unified Diff: tests/html/unknownelement_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/unknownelement_test.dart
diff --git a/tests/html/unknownelement_test.dart b/tests/html/unknownelement_test.dart
index 21ba1ef1e196d6dc600e090f9f6881c1910b0867..0957766e53a5d85b98f0bf7cf8d5690528fb572a 100644
--- a/tests/html/unknownelement_test.dart
+++ b/tests/html/unknownelement_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file
library UnknownElementTest;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
import 'dart:html';
@@ -20,15 +21,17 @@ main() {
document.body.nodes.addAll([foo, bar]);
test('type-check', () {
- expect(foo, isUnknownElement);
- expect(bar, isUnknownElement);
- expect(query('#foo'), equals(foo));
- expect(query('#bar'), equals(bar));
- });
+ expect(foo, isUnknownElement);
+ expect(bar, isUnknownElement);
+ expect(query('#foo'), equals(foo));
+ expect(query('#bar'), equals(bar));
+ });
test('dispatch-fail', () {
- expect(() => foo.method1(), throwsNoSuchMethodError);
- expect(() => foo.field1, throwsNoSuchMethodError);
- expect(() { foo.field1 = 42; }, throwsNoSuchMethodError);
- });
+ expect(() => foo.method1(), throwsNoSuchMethodError);
+ expect(() => foo.field1, throwsNoSuchMethodError);
+ expect(() {
+ foo.field1 = 42;
+ }, throwsNoSuchMethodError);
+ });
}

Powered by Google App Engine
This is Rietveld 408576698