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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_class_is_check1_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_class_is_check1_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart b/dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart
index 535dcec43ccce9c3cfb58c0c54f715fe7a70b977..c31cd8f88283b2a4205e6d033ebfd1ed9a8e8b71 100644
--- a/dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart
@@ -11,21 +11,23 @@ interface I {
// Native implementation.
-class A implements I native "*A" {
+@native("*A")
+class A implements I {
// The native class accepts only other native instances.
- A read() native;
- write(A x) native;
+ @native A read();
+ @native write(A x);
}
-makeA() native;
+@native makeA();
-void setup() native """
+@native("""
// This code is all inside 'setup' and so not accesible from the global scope.
function A(){}
A.prototype.read = function() { return this._x; };
A.prototype.write = function(x) { this._x = x; };
makeA = function(){return new A};
-""";
+""")
+void setup();
class B {}

Powered by Google App Engine
This is Rietveld 408576698