Index: tests/compiler/dart2js/instantiated_classes_test.dart |
diff --git a/tests/compiler/dart2js/instantiated_classes_test.dart b/tests/compiler/dart2js/instantiated_classes_test.dart |
index f5113799ba481b211c19d99df3044b00ddb96901..f0b91586fa8df233f5caedbdccd3779c7ec40b3a 100644 |
--- a/tests/compiler/dart2js/instantiated_classes_test.dart |
+++ b/tests/compiler/dart2js/instantiated_classes_test.dart |
@@ -14,69 +14,42 @@ import 'type_test_helper.dart'; |
void main() { |
asyncTest(() => Future.forEach([ |
() => test("class Class {}", ["Class"]), |
- () => test( |
- """abstract class A {} |
- class Class extends A {}""", |
- ["Class"]), |
- () => test( |
- """class A {} |
- class Class extends A {}""", |
- ["Class"]), |
- () => test( |
- """class A {} |
+ () => test("""abstract class A {} |
+ class Class extends A {}""", ["Class"]), |
+ () => test("""class A {} |
+ class Class extends A {}""", ["Class"]), |
+ () => test("""class A {} |
class B {} |
- class Class extends A {}""", |
- ["Class"]), |
- () => test( |
- """class A {} |
- class Class implements A {}""", |
- ["Class"]), |
- () => test( |
- """class A {} |
- class Class extends Object with A {}""", |
- ["Class"]), |
- () => test( |
- """class A {} |
+ class Class extends A {}""", ["Class"]), |
+ () => test("""class A {} |
+ class Class implements A {}""", ["Class"]), |
+ () => test("""class A {} |
+ class Class extends Object with A {}""", ["Class"]), |
+ () => test("""class A {} |
class B {} |
class Class extends Object with B implements A {}""", |
["Class"]), |
- () => test( |
- """class A {} |
- class Class {}""", |
- ["Class", "A"], |
+ () => test("""class A {} |
+ class Class {}""", ["Class", "A"], ["Class", "A"]), |
+ () => test("""class A {} |
+ class Class extends A {}""", ["Class", "A"], ["Class", "A"]), |
+ () => test("""class A {} |
+ class Class implements A {}""", ["Class", "A"], |
["Class", "A"]), |
- () => test( |
- """class A {} |
- class Class extends A {}""", |
- ["Class", "A"], |
- ["Class", "A"]), |
- () => test( |
- """class A {} |
- class Class implements A {}""", |
- ["Class", "A"], |
- ["Class", "A"]), |
- () => test( |
- """class A {} |
+ () => test("""class A {} |
class B extends A {} |
- class Class extends B {}""", |
- ["Class", "A"], |
- ["Class", "A"]), |
- () => test( |
- """class A {} |
+ class Class extends B {}""", ["Class", "A"], ["Class", "A"]), |
+ () => test("""class A {} |
class B {} |
- class Class extends B with A {}""", |
- ["Class", "A"], |
+ class Class extends B with A {}""", ["Class", "A"], |
["Class", "A"]), |
// TODO(johnniwinther): Avoid registration of `Class` as instantiated. |
- () => test( |
- """class A {} |
+ () => test("""class A {} |
class Class implements A { |
factory Class() = A; |
- }""", |
- ["Class", "A"], |
- ["Class"]), |
+ }""", ["Class", "A"], ["Class"]), |
], (f) => f())); |
} |