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(); |
} |
} |
- |