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

Unified Diff: tests/compiler/dart2js_native/native_library_same_name_used_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_library_same_name_used_frog_test.dart
diff --git a/tests/compiler/dart2js_native/native_library_same_name_used_frog_test.dart b/tests/compiler/dart2js_native/native_library_same_name_used_frog_test.dart
index e90e9f4153451ff7eb605160ccefabacfe8a3c00..9f305f7692108acaebdf23bb3f8d432c9769aeb1 100644
--- a/tests/compiler/dart2js_native/native_library_same_name_used_frog_test.dart
+++ b/tests/compiler/dart2js_native/native_library_same_name_used_frog_test.dart
@@ -6,7 +6,7 @@
library main;
-import 'native_testing.dart';
+import "package:expect/expect.dart";
import 'native_library_same_name_used_lib1.dart';
void setup() native """
@@ -15,7 +15,6 @@ void setup() native """
I.prototype.read = function() { return this._x; };
I.prototype.write = function(x) { this._x = x; };
makeI = function(){return new I};
- self.nativeConstructor(I);
""";
// A pure Dart implementation of I.
@@ -32,7 +31,6 @@ class ProxyI implements I {
}
main() {
- nativeTesting();
setup();
var a1 = makeI();
@@ -49,7 +47,4 @@ main() {
Expect.isTrue(a1 is I, 'a1 is I');
Expect.isFalse(a1 is ProxyI, 'a1 is ProxyI');
-
- Expect.isTrue(confuse(a1) is I, 'a1 is I');
- Expect.isFalse(confuse(a1) is ProxyI, 'a1 is ProxyI');
}

Powered by Google App Engine
This is Rietveld 408576698