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

Unified Diff: tests/compiler/dart2js_native/native_class_fields_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/native_class_fields_test.dart
diff --git a/tests/compiler/dart2js_native/native_class_fields_test.dart b/tests/compiler/dart2js_native/native_class_fields_test.dart
index c1b4855dd2f95e96598e3076013677c9fcbd73db..e37adbe9689c3cb7d42bf925949f55301161dd25 100644
--- a/tests/compiler/dart2js_native/native_class_fields_test.dart
+++ b/tests/compiler/dart2js_native/native_class_fields_test.dart
@@ -13,7 +13,9 @@ class A {
int method(int z) => myLongPropertyName;
}
-void setup() native r"""
+void setup() {
+ JS('', r"""
+(function(){
function getter() {
return ++this.getValue;
}
@@ -35,9 +37,10 @@ function A(){
return a;
}
-makeA = function(){return new A;};
+makeA = function(){return new A()};
self.nativeConstructor(A);
-""";
+})()""");
+}
A makeA() native;

Powered by Google App Engine
This is Rietveld 408576698