| Index: tests/compiler/dart2js_native/native_method_rename2_frog_test.dart
|
| diff --git a/tests/compiler/dart2js_native/native_method_rename2_frog_test.dart b/tests/compiler/dart2js_native/native_method_rename2_frog_test.dart
|
| index 2fd79c89cdc1cbefa2c5410c885657c49e2262da..e375f2ff0d791d8b014d7f48b8d6d134d0abdb62 100644
|
| --- a/tests/compiler/dart2js_native/native_method_rename2_frog_test.dart
|
| +++ b/tests/compiler/dart2js_native/native_method_rename2_frog_test.dart
|
| @@ -10,17 +10,17 @@ import 'dart:_js_helper' show Native, JSName;
|
| @Native("A")
|
| class A {
|
| @JSName('fooA')
|
| - int foo() native;
|
| + int foo() native ;
|
| }
|
|
|
| @Native("B")
|
| class B extends A {
|
| @JSName('fooB')
|
| - int foo() native;
|
| + int foo() native ;
|
| }
|
|
|
| -makeA() native;
|
| -makeB() native;
|
| +makeA() native ;
|
| +makeB() native ;
|
|
|
| void setup() native """
|
| // This code is all inside 'setup' and so not accesible from the global scope.
|
| @@ -52,11 +52,19 @@ testDynamic() {
|
| Expect.equals(100, a.foo());
|
| Expect.equals(200, b.foo());
|
|
|
| - expectNoSuchMethod((){ a.fooA(); }, 'fooA should be invisible on A');
|
| - expectNoSuchMethod((){ b.fooA(); }, 'fooA should be invisible on B');
|
| -
|
| - expectNoSuchMethod((){ a.fooB(); }, 'fooB should be absent on A');
|
| - expectNoSuchMethod((){ b.fooB(); }, 'fooA should be invisible on B');
|
| + expectNoSuchMethod(() {
|
| + a.fooA();
|
| + }, 'fooA should be invisible on A');
|
| + expectNoSuchMethod(() {
|
| + b.fooA();
|
| + }, 'fooA should be invisible on B');
|
| +
|
| + expectNoSuchMethod(() {
|
| + a.fooB();
|
| + }, 'fooB should be absent on A');
|
| + expectNoSuchMethod(() {
|
| + b.fooB();
|
| + }, 'fooA should be invisible on B');
|
| }
|
|
|
| testTyped() {
|
|
|