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

Unified Diff: tests/compiler/dart2js_native/native_method_rename2_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_rename2_frog_test.dart
diff --git a/tests/compiler/dart2js_native/native_method_rename2_frog_test.dart b/tests/compiler/dart2js_native/native_method_rename2_frog_test.dart
index f3d4bffa671fc3e6e698ce42a3e0d44b170f45ed..c030c7ebc6113595155972f289cfa2388001f6a5 100644
--- a/tests/compiler/dart2js_native/native_method_rename2_frog_test.dart
+++ b/tests/compiler/dart2js_native/native_method_rename2_frog_test.dart
@@ -5,11 +5,13 @@
// Test the feature where the native string declares the native method's name.
class A native "*A" {
- int foo() native 'fooA';
+ @JSName('fooA')
+ int foo() native;
}
class B extends A native "*B" {
- int foo() native 'fooB';
+ @JSName('fooB')
+ int foo() native;
}
makeA() native;

Powered by Google App Engine
This is Rietveld 408576698