Index: tests/compiler/dart2js_native/native_null_closure_frog_test.dart |
diff --git a/tests/compiler/dart2js_native/native_null_closure_frog_test.dart b/tests/compiler/dart2js_native/native_null_closure_frog_test.dart |
index 7f19e1e6bc5e34f8a50972f8a72f14cc0c4ddd33..ec6f8d5671b2ac589abbc0b82aaa97a2af23b72b 100644 |
--- a/tests/compiler/dart2js_native/native_null_closure_frog_test.dart |
+++ b/tests/compiler/dart2js_native/native_null_closure_frog_test.dart |
@@ -4,7 +4,9 @@ |
// Test that exception unwrapping handle cases like ({foo:null}).foo(). |
-import "native_testing.dart"; |
+import "dart:_js_helper"; |
+ |
+import "package:expect/expect.dart"; |
typedef void MyFunctionType(); |
@@ -23,12 +25,9 @@ A.prototype.setClosure = function(f) { this.f = f; }; |
A.prototype.check = function(f) { return this.f === f; }; |
A.prototype.invoke = function() { return this.f(); }; |
makeA = function(){return new A;}; |
- |
-self.nativeConstructor(A); |
"""; |
main() { |
- nativeTesting(); |
setup(); |
A a = makeA(); |
a.setClosure(null); |
@@ -36,7 +35,7 @@ main() { |
bool caughtException = false; |
try { |
a.invoke(); |
- } on NoSuchMethodError catch (e) { |
+ } on JsNoSuchMethodError catch (e) { |
print(e); |
caughtException = true; |
} |