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

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

Issue 11419250: Add @JSName annotation for native fields and methods - second try. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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_method_rename1_frog_test.dart
diff --git a/tests/compiler/dart2js_native/native_method_rename1_frog_test.dart b/tests/compiler/dart2js_native/native_method_rename1_frog_test.dart
index 820763e8a5b5883c89893f3844ffff3b2b15e0ec..a4add4cce04a56f6884d4a9caa33e83ad499187b 100644
--- a/tests/compiler/dart2js_native/native_method_rename1_frog_test.dart
+++ b/tests/compiler/dart2js_native/native_method_rename1_frog_test.dart
@@ -5,9 +5,14 @@
// Test the feature where the native string declares the native method's name.
class A native "*A" {
- int foo() native 'fooA';
- int bar() native 'barA';
- int baz() native 'bazA';
+ @JSName('fooA')
+ int foo() native;
+
+ @JSName('barA')
+ int bar() native;
+
+ @JSName('bazA')
+ int baz() native;
}
A makeA() native;

Powered by Google App Engine
This is Rietveld 408576698