| Index: tests/compiler/dart2js_native/native_method_rename1_frog_test.dart
|
| diff --git a/tests/compiler/dart2js_native/native_method_rename1_frog_test.dart b/tests/compiler/dart2js_native/native_method_rename1_frog_test.dart
|
| index 4d8ead2bbf90af6b4293218f437fd699e728b49d..e38cd2834094d601e43482b6228e7f066611dd20 100644
|
| --- a/tests/compiler/dart2js_native/native_method_rename1_frog_test.dart
|
| +++ b/tests/compiler/dart2js_native/native_method_rename1_frog_test.dart
|
| @@ -4,7 +4,7 @@
|
|
|
| // Test the feature where the native string declares the native method's name.
|
|
|
| -import 'native_testing.dart';
|
| +import "package:expect/expect.dart";
|
| import 'dart:_js_helper' show Native, JSName;
|
|
|
| @Native("A")
|
| @@ -34,13 +34,14 @@ A.prototype.barA = function(){return 200;};
|
| A.prototype.bazA = function(){return 300;};
|
|
|
| makeA = function(){return new A};
|
| -
|
| -self.nativeConstructor(A);
|
| """;
|
|
|
| testDynamic() {
|
| - var a = confuse(makeA());
|
| - var b = confuse(new B());
|
| + setup();
|
| +
|
| + var things = [makeA(), new B()];
|
| + var a = things[0];
|
| + var b = things[1];
|
|
|
| Expect.equals(100, a.foo());
|
| Expect.equals(200, a.bar());
|
| @@ -61,7 +62,6 @@ testTyped() {
|
| }
|
|
|
| main() {
|
| - nativeTesting();
|
| setup();
|
| testDynamic();
|
| testTyped();
|
|
|