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

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

Issue 2990083002: dart2js_native tests: Migrate 'native STRING' to JS-calls - part 2/2 (Closed)
Patch Set: remove defunct comments Created 3 years, 5 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/subclassing_super_call_test.dart
diff --git a/tests/compiler/dart2js_native/subclassing_super_call_test.dart b/tests/compiler/dart2js_native/subclassing_super_call_test.dart
index a94c01bf32d77e9d689a417a17be577b38371a49..61e3fc155c9b1a5a7cd3d3c0e34e7f464744826a 100644
--- a/tests/compiler/dart2js_native/subclassing_super_call_test.dart
+++ b/tests/compiler/dart2js_native/subclassing_super_call_test.dart
@@ -42,15 +42,18 @@ BB makeBB() native;
@Creates('=Object')
getBBPrototype() native;
-void setup() native r"""
-function N2() {}
-N2.prototype.foo = function() { return "foo:" + this.text; }
-function BB() {}
-BB.prototype.__proto__ = N2.prototype;
-makeBB = function(){return new BB;};
-
-getBBPrototype = function(){return BB.prototype;};
-""";
+void setup() {
+ JS('', r"""
+(function(){
+ function N2() {}
+ N2.prototype.foo = function() { return "foo:" + this.text; };
+ function BB() {}
+ BB.prototype.__proto__ = N2.prototype;
+ makeBB = function(){return new BB()};
+
+ getBBPrototype = function(){return BB.prototype;};
+})()""");
+}
testSuperOnNative() {
BB b1 = makeBB();

Powered by Google App Engine
This is Rietveld 408576698