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

Unified Diff: tests/language_strong/instanceof_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/language_strong/instanceof_test.dart
diff --git a/tests/language_strong/instanceof_test.dart b/tests/language_strong/instanceof_test.dart
index 73bc640f771fef79d5c8b93a83d894eef1c0471f..2f9c7e7ce725cacaba2e6499c777c9abd4db9099 100644
--- a/tests/language_strong/instanceof_test.dart
+++ b/tests/language_strong/instanceof_test.dart
@@ -5,7 +5,6 @@
import "package:expect/expect.dart";
class InstanceofTest {
-
InstanceofTest() {}
static void testBasicTypes() {
@@ -55,7 +54,7 @@ class InstanceofTest {
Expect.equals(true, d is K);
Expect.equals(true, [] is List);
- Expect.equals(true, [1,2,3] is List);
+ Expect.equals(true, [1, 2, 3] is List);
Expect.equals(false, (d is List));
Expect.equals(false, (null is List));
Expect.equals(false, (null is D));
@@ -73,7 +72,6 @@ class InstanceofTest {
Expect.equals(false, (a is num));
}
-
static void testTypeOfInstanceOf() {
var a = new A();
// Interfaces with parent
@@ -171,15 +169,26 @@ class InstanceofTest {
}
abstract class I {}
-class A implements I {A() {}}
-class B {B() {}}
+
+class A implements I {
+ A() {}
+}
+
+class B {
+ B() {}
+}
abstract class J {}
abstract class K implements J {}
-class C implements I, K {C() {}}
-class D extends C {D() : super() {}}
+class C implements I, K {
+ C() {}
+}
+
+class D extends C {
+ D() : super() {}
+}
main() {
// Repeat type checks so that inlined tests can be tested as well.
@@ -187,4 +196,3 @@ main() {
InstanceofTest.testMain();
}
}
-

Powered by Google App Engine
This is Rietveld 408576698