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

Unified Diff: tests/compiler/dart2js_native/jsobject_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/jsobject_test.dart
diff --git a/tests/compiler/dart2js_native/jsobject_test.dart b/tests/compiler/dart2js_native/jsobject_test.dart
index 779c6648b38db22cc8bc39f53c6407a563f6be43..dd0ec8ec7dad0c1788502f1280e9a6e6d3bf7f22 100644
--- a/tests/compiler/dart2js_native/jsobject_test.dart
+++ b/tests/compiler/dart2js_native/jsobject_test.dart
@@ -24,7 +24,9 @@ makeA() native;
makeB() native;
makeQ() native;
-void setup() native r"""
+void setup() {
+ JS('', r"""
+(function(){
makeA = function(){return {hello: 123};};
function BB(){}
@@ -34,7 +36,8 @@ function QQ(){}
makeQ = function(){return new QQ();};
self.nativeConstructor(QQ);
-""";
+})()""");
+}
class Is<T> {
bool check(x) => x is T;
« no previous file with comments | « tests/compiler/dart2js_native/issue9182_test.dart ('k') | tests/compiler/dart2js_native/native_class_fields_2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698