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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_call_arity2_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_call_arity2_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_call_arity2_test.dart b/dart/tests/compiler/dart2js_foreign/native_call_arity2_test.dart
index 727ec38e3ac7bec53bdafa027b80649dbdcdc5c4..d03e60b8815ca17842bb7a3f359aea00071c6cb9 100644
--- a/dart/tests/compiler/dart2js_foreign/native_call_arity2_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_call_arity2_test.dart
@@ -5,18 +5,20 @@
// This is a similar test to NativeCallArity1FrogTest, but makes sure
// that subclasses also get the right number of arguments.
-class A native "*A" {
- int foo([x, y]) native;
+@native("*A")
+class A {
+ @native int foo([x, y]);
}
-class B extends A native "*B" {
- int foo([x, y]) native;
+@native("*B")
+class B extends A {
+ @native int foo([x, y]);
}
-A makeA() native { return new A(); }
-B makeB() native { return new B(); }
+@native A makeA() { return new A(); }
+@native B makeB() { return new B(); }
-void setup() native """
+@native("""
function inherits(child, parent) {
if (child.prototype.__proto__) {
child.prototype.__proto__ = parent.prototype;
@@ -36,7 +38,8 @@ inherits(B, A);
makeA = function(){return new A;};
makeB = function(){return new B;};
-""";
+""")
+void setup();
testDynamicContext() {

Powered by Google App Engine
This is Rietveld 408576698