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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_named_constructors3_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_named_constructors3_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart b/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
index b14d31f2a4dc31c6320cb9074a5e9a69fa2e0f5b..c9f148c7ed52f606401e66669deeaf6c10d06479 100644
--- a/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_named_constructors3_test.dart
@@ -6,7 +6,8 @@
// Regression test.
-class A native "*A" {
+@native("*A")
+class A {
// No static methods in this class.
@@ -14,18 +15,21 @@ class A native "*A" {
factory A.fromString(String s) => makeA(s.length);
- factory A.nativeConstructor(int a, int b) native @'return makeA(a+b);';
+ @native(@'return makeA(a+b);')
+ factory A.nativeConstructor(int a, int b);
- foo() native 'return this._x;';
+ @native('return this._x;')
+ foo();
}
-makeA(v) native;
+@native makeA(v);
-void setup() native """
+@native("""
// This code is all inside 'setup' and so not accesible from the global scope.
function A(arg) { this._x = arg; }
makeA = function(arg) { return new A(arg); }
-""";
+""")
+void setup();
main() {
setup();

Powered by Google App Engine
This is Rietveld 408576698