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

Unified Diff: tests/compiler/dart2js_native/dispatch_property_initialization_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/dispatch_property_initialization_test.dart
diff --git a/tests/compiler/dart2js_native/dispatch_property_initialization_test.dart b/tests/compiler/dart2js_native/dispatch_property_initialization_test.dart
index 6fa49cbf929dccef5f389866f6d693014f251921..4e4ed957f51d26fa24e904547f6a0a5efd66fe98 100644
--- a/tests/compiler/dart2js_native/dispatch_property_initialization_test.dart
+++ b/tests/compiler/dart2js_native/dispatch_property_initialization_test.dart
@@ -13,14 +13,17 @@ class Foo {
makeFoo() native;
-void setup() native r"""
-function Foo() {}
-Foo.prototype.method = function(x) { return 'Foo ' + x; }
+void setup() {
+ JS('', r"""
+(function(){
+ function Foo() {}
+ Foo.prototype.method = function(x) { return 'Foo ' + x; };
-self.makeFoo = function() { return new Foo(); }
+ self.makeFoo = function() { return new Foo(); };
-self.nativeConstructor(Foo);
-""";
+ self.nativeConstructor(Foo);
+})()""");
+}
main() {
nativeTesting();
« no previous file with comments | « tests/compiler/dart2js_native/browser_compat_2_test.dart ('k') | tests/compiler/dart2js_native/error_safeToString_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698