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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart

Issue 10823423: Change dart2js_foreign suite to use metadata. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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: dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart b/dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart
index 0200b3132f5e47fbfc45e44029bd814b628c150e..3be6b567308bb2ac772b97bf913fc7d9bd2be155 100644
--- a/dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_method_rename1_test.dart
@@ -4,20 +4,21 @@
// 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';
+@native("*A")
+class A {
+ @native('fooA') int foo();
+ @native('barA') int bar();
+ @native('bazA') int baz();
}
-A makeA() native;
+@native A makeA();
class B {
int bar([x]) => 800;
int baz() => 900;
}
-void setup() native """
+@native("""
// This code is all inside 'setup' and so not accesible from the global scope.
function A(){}
A.prototype.fooA = function(){return 100;};
@@ -25,7 +26,8 @@ A.prototype.barA = function(){return 200;};
A.prototype.bazA = function(){return 300;};
makeA = function(){return new A};
-""";
+""")
+void setup();
testDynamic() {

Powered by Google App Engine
This is Rietveld 408576698