Index: tests/compiler/dart2js_native/native_field_rename_1_frog_test.dart |
diff --git a/tests/compiler/dart2js_native/native_field_rename_1_frog_test.dart b/tests/compiler/dart2js_native/native_field_rename_1_frog_test.dart |
index a18c31c48cfc471d5db486e8e61453736d186678..aaa578b78db63edfd101bfc16d7cb9185741a9b3 100644 |
--- a/tests/compiler/dart2js_native/native_field_rename_1_frog_test.dart |
+++ b/tests/compiler/dart2js_native/native_field_rename_1_frog_test.dart |
@@ -6,7 +6,8 @@ |
// fields. However, native fields keep their name. The implication: a getter |
// for the field must be based on the field's name, not the field's jsname. |
-import 'native_testing.dart'; |
+import "package:expect/expect.dart"; |
+import 'dart:_js_helper' show Native, JSName; |
@Native("A") |
class A { |
@@ -43,15 +44,13 @@ X.prototype.key = function(){return 666;}; |
makeA = function(){return new A}; |
makeX = function(){return new X}; |
- |
-self.nativeConstructor(A); |
-self.nativeConstructor(X); |
"""; |
testDynamic() { |
- var a = confuse(makeA()); |
- var b = confuse(new B()); |
- var x = confuse(makeX()); |
+ var things = [makeA(), new B(), makeX()]; |
+ var a = things[0]; |
+ var b = things[1]; |
+ var x = things[2]; |
Expect.equals(111, a.key); |
Expect.equals(222, b.key); |
@@ -78,7 +77,6 @@ testTyped() { |
} |
main() { |
- nativeTesting(); |
setup(); |
testTyped(); |