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/oddly_named_fields_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
Index: tests/compiler/dart2js_native/oddly_named_fields_test.dart
diff --git a/tests/compiler/dart2js_native/oddly_named_fields_test.dart b/tests/compiler/dart2js_native/oddly_named_fields_test.dart
index 717e296713acf2437754ed5b16a676e68d331e39..54d9bd48d7a4387cc9e19d90836a59bc52df9fe5 100644
--- a/tests/compiler/dart2js_native/oddly_named_fields_test.dart
+++ b/tests/compiler/dart2js_native/oddly_named_fields_test.dart
@@ -1381,11 +1381,14 @@ testObjectWeaklyTyped(object) {
NativeClassWithOddNames makeNativeClassWithOddNames() native;
-setup() native """
-function NativeClassWithOddNames() {}
-makeNativeClassWithOddNames = function() { return new NativeClassWithOddNames; }
-self.nativeConstructor(NativeClassWithOddNames);
-""";
+setup() {
+ JS('', r"""
+(function(){
+ function NativeClassWithOddNames() {}
+ makeNativeClassWithOddNames = function() {return new NativeClassWithOddNames()};
+ self.nativeConstructor(NativeClassWithOddNames);
+})()""");
+}
main() {
nativeTesting();

Powered by Google App Engine
This is Rietveld 408576698