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

Unified Diff: tests/compiler/dart2js_native/abstract_class_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/abstract_class_test.dart
diff --git a/tests/compiler/dart2js_native/abstract_class_test.dart b/tests/compiler/dart2js_native/abstract_class_test.dart
index d90fe2ecfeaa94e0e75c3f0a69404c6122d1868a..18e0af3723467249e10c4e60932a04ee51363df6 100644
--- a/tests/compiler/dart2js_native/abstract_class_test.dart
+++ b/tests/compiler/dart2js_native/abstract_class_test.dart
@@ -2,7 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import "native_testing.dart";
+import "dart:_js_helper";
+import "package:expect/expect.dart";
// Native classes can have subclasses that are not declared to the program. The
// subclasses are indistinguishable from the base class. This means that
@@ -28,17 +29,17 @@ function B(){}
B.prototype.foo = function() { return 'B.foo'; };
makeA = function(){return new A};
makeB = function(){return new B};
-self.nativeConstructor(A);
-self.nativeConstructor(B);
""";
+var inscrutable;
main() {
- nativeTesting();
setup();
+ inscrutable = (x) => x;
+ inscrutable = inscrutable(inscrutable);
var a = makeA();
var b = makeB();
- var c = confuse(new C());
+ var c = inscrutable(new C());
Expect.isTrue(a is A);
Expect.isFalse(b is A);
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/native_helper.dart ('k') | tests/compiler/dart2js_native/bound_closure_super_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698