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

Unified Diff: tests/compiler/dart2js_native/subclassing_super_field_2_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_field_2_test.dart
diff --git a/tests/compiler/dart2js_native/subclassing_super_field_2_test.dart b/tests/compiler/dart2js_native/subclassing_super_field_2_test.dart
index c691edfec6846efd2418b812336ccd5479ecddb3..837568a2e0de3a2454102b9b277d6a2ca321ab48 100644
--- a/tests/compiler/dart2js_native/subclassing_super_field_2_test.dart
+++ b/tests/compiler/dart2js_native/subclassing_super_field_2_test.dart
@@ -36,12 +36,15 @@ B makeB() native;
@Creates('=Object')
getBPrototype() native;
-void setup() native r"""
-function B() { this.foo = 111; } // N.foo
-makeB = function(){return new B;};
-
-getBPrototype = function(){return B.prototype;};
-""";
+void setup() {
+ JS('', r"""
+(function(){
+ function B() { this.foo = 111; } // N.foo
+ makeB = function(){return new B()};
+
+ getBPrototype = function(){return B.prototype;};
+})()""");
+}
main() {
nativeTesting();

Powered by Google App Engine
This is Rietveld 408576698