| Index: tests/compiler/dart2js_native/native_missing_method2_frog_test.dart
|
| diff --git a/tests/compiler/dart2js_native/native_missing_method2_frog_test.dart b/tests/compiler/dart2js_native/native_missing_method2_frog_test.dart
|
| index 5a083d7805494a8338af98defe3f5bac1d4c27aa..0a7b1f4029b0cc1fa17fd92dd7350f453f7928d5 100644
|
| --- a/tests/compiler/dart2js_native/native_missing_method2_frog_test.dart
|
| +++ b/tests/compiler/dart2js_native/native_missing_method2_frog_test.dart
|
| @@ -6,10 +6,9 @@ import "dart:_js_helper";
|
| import "package:expect/expect.dart";
|
|
|
| @Native("A")
|
| -class A {
|
| -}
|
| +class A {}
|
|
|
| -makeA() native;
|
| +makeA() native ;
|
|
|
| void setup() native """
|
| function A() {};
|
| @@ -18,35 +17,33 @@ makeA = function() { return new A; }
|
| """;
|
|
|
| class B {
|
| - foo() { return 42; }
|
| + foo() {
|
| + return 42;
|
| + }
|
| }
|
|
|
| class C {
|
| // By having two 'foo' defined in the application, Frog will mangle
|
| // all calls to 'foo', which makes this test pass.
|
| - foo(x) { return 43; }
|
| + foo(x) {
|
| + return 43;
|
| + }
|
| }
|
|
|
| typedContext() {
|
| - var things = [ makeA(), new B() ];
|
| + var things = [makeA(), new B()];
|
| A a = things[0];
|
| - Expect.throws(() => a.foo(),
|
| - (e) => e is NoSuchMethodError);
|
| - Expect.throws(() => a.foo,
|
| - (e) => e is NoSuchMethodError);
|
| - Expect.throws(() => a.foo = 4,
|
| - (e) => e is NoSuchMethodError);
|
| + Expect.throws(() => a.foo(), (e) => e is NoSuchMethodError);
|
| + Expect.throws(() => a.foo, (e) => e is NoSuchMethodError);
|
| + Expect.throws(() => a.foo = 4, (e) => e is NoSuchMethodError);
|
| }
|
|
|
| untypedContext() {
|
| - var things = [ makeA(), new B() ];
|
| + var things = [makeA(), new B()];
|
| var a = things[0];
|
| - Expect.throws(() => a.foo(),
|
| - (e) => e is NoSuchMethodError);
|
| - Expect.throws(() => a.foo,
|
| - (e) => e is NoSuchMethodError);
|
| - Expect.throws(() => a.foo = 4,
|
| - (e) => e is NoSuchMethodError);
|
| + Expect.throws(() => a.foo(), (e) => e is NoSuchMethodError);
|
| + Expect.throws(() => a.foo, (e) => e is NoSuchMethodError);
|
| + Expect.throws(() => a.foo = 4, (e) => e is NoSuchMethodError);
|
| }
|
|
|
| main() {
|
|
|