Index: tests/compiler/dart2js_native/native_exception2_test.dart |
diff --git a/tests/compiler/dart2js_native/native_exception2_test.dart b/tests/compiler/dart2js_native/native_exception2_test.dart |
index 44f89fba9757ed48bcb595fe5fb54bee0d72ad17..916709b2f185943c9ccda8751803e6d87ce76bb2 100644 |
--- a/tests/compiler/dart2js_native/native_exception2_test.dart |
+++ b/tests/compiler/dart2js_native/native_exception2_test.dart |
@@ -8,19 +8,24 @@ |
library native_exception2_test; |
import 'native_exception_test.dart' as other; |
-import 'dart:_js_helper'; |
+import 'native_testing.dart'; |
@Native("NativeClass") |
-class NativeClass {} |
+class NativeClass { |
+ foo() => 'oof'; |
+} |
makeNativeClass() native ; |
setup() native """ |
function NativeClass() {} |
makeNativeClass = function() { return new NativeClass; } |
+self.nativeConstructor(NativeClass); |
"""; |
main() { |
+ nativeTesting(); |
setup(); |
+ Expect.equals('oof', makeNativeClass().foo()); |
other.main(); |
} |