Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Unified Diff: tests/compiler/dart2js_native/native_null_closure_frog_test.dart

Issue 2383273002: Revert "Add native_testing library to mock @Native classes" (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « tests/compiler/dart2js_native/native_novel_html_test.dart ('k') | tests/compiler/dart2js_native/native_null_frog_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698