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

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

Issue 2984403002: dart2js_native tests: Migrate 'native STRING' to JS-calls (Closed)
Patch Set: the rest of the files 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
« no previous file with comments | « tests/compiler/dart2js_native/super_call_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_native/super_property_test.dart
diff --git a/tests/compiler/dart2js_native/super_property_test.dart b/tests/compiler/dart2js_native/super_property_test.dart
index fe618c9da450b81f071d07fc5307a9265774fb61..68e815a0d7dac1fb12d4e9294686f82060100c37 100644
--- a/tests/compiler/dart2js_native/super_property_test.dart
+++ b/tests/compiler/dart2js_native/super_property_test.dart
@@ -40,15 +40,18 @@ class D extends C {
makeA() native;
makeB() native;
-void setup() native """
-// This code is all inside 'setup' and so not accessible from the global scope.
-function A(){}
-function B(){}
-makeA = function(){return new A};
-makeB = function(){return new B};
-self.nativeConstructor(A);
-self.nativeConstructor(B);
-""";
+void setup() {
+ JS('', r"""
+(function(){
+ // This code is inside 'setup' and so not accessible from the global scope.
+ function A(){}
+ function B(){}
+ makeA = function(){return new A()};
+ makeB = function(){return new B()};
+ self.nativeConstructor(A);
+ self.nativeConstructor(B);
+})()""");
+}
testThing(a) {
a.foo = 123;
« no previous file with comments | « tests/compiler/dart2js_native/super_call_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698