| Index: tests/compiler/dart2js/no_such_method_enabled_test.dart
|
| diff --git a/tests/compiler/dart2js/no_such_method_enabled_test.dart b/tests/compiler/dart2js/no_such_method_enabled_test.dart
|
| index 927396c0f4dd8b2a09225ecf9f2e5e1a4c0bf6f5..c9da1a05f9fb8b4a00f897e3555a378dab0dca31 100644
|
| --- a/tests/compiler/dart2js/no_such_method_enabled_test.dart
|
| +++ b/tests/compiler/dart2js/no_such_method_enabled_test.dart
|
| @@ -209,6 +209,28 @@ main() {
|
| }));
|
| }
|
|
|
| +dummyImplTest10() {
|
| + String source = """
|
| +class A {
|
| + noSuchMethod(Invocation x) {
|
| + throw new UnsupportedException();
|
| + }
|
| +}
|
| +main() {
|
| + print(new A().foo());
|
| +}
|
| +""";
|
| + Uri uri = new Uri(scheme: 'source');
|
| + var compiler = compilerFor(source, uri);
|
| + asyncTest(() => compiler.runCompiler(uri).then((_) {
|
| + Expect.isTrue(compiler.backend.enabledNoSuchMethod);
|
| + ClassElement clsA = findElement(compiler, 'A');
|
| + Expect.isTrue(
|
| + compiler.backend.noSuchMethodRegistry.throwingImpls.contains(
|
| + clsA.lookupMember('noSuchMethod')));
|
| + }));
|
| +}
|
| +
|
| main() {
|
| dummyImplTest();
|
| dummyImplTest2();
|
| @@ -219,4 +241,5 @@ main() {
|
| dummyImplTest7();
|
| dummyImplTest8();
|
| dummyImplTest9();
|
| + dummyImplTest10();
|
| }
|
|
|