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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_wrapping_function_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_wrapping_function_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_wrapping_function_test.dart b/dart/tests/compiler/dart2js_foreign/native_wrapping_function_test.dart
index 0495a5a17e8f8e42b04bfd61b991ac1a856e25db..a7e2e8f063a92b74fe3e6ac2e0ac18b76d0f3071 100644
--- a/dart/tests/compiler/dart2js_foreign/native_wrapping_function_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_wrapping_function_test.dart
@@ -6,15 +6,16 @@ typedef void Callback0();
typedef void Callback1(arg1);
typedef void Callback2(arg1, arg2);
-class A native "*A" {
- foo0(Callback0 closure) native;
- foo1(Callback1 closure, arg1) native;
- foo2(Callback2 closure, arg1, arg2) native;
+@native("*A")
+class A {
+ @native foo0(Callback0 closure);
+ @native foo1(Callback1 closure, arg1);
+ @native foo2(Callback2 closure, arg1, arg2);
}
-makeA() native;
+@native makeA();
-void setup() native """
+@native("""
function A() {}
A.prototype.foo0 = function(closure) { return closure(); };
A.prototype.foo1 = function(closure, arg1) { return closure(arg1); };
@@ -22,7 +23,8 @@ A.prototype.foo2 = function(closure, arg1, arg2) {
return closure(arg1, arg2);
};
makeA = function(){return new A;};
-""";
+""")
+void setup();
main() {

Powered by Google App Engine
This is Rietveld 408576698