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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_class_is_check3_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_check3_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_class_is_check3_test.dart b/dart/tests/compiler/dart2js_foreign/native_class_is_check3_test.dart
index afd6e32fed9dced203ff03c39ef8580c3c9c890b..cae73e798bc8d1695dd326aa7d5dc147edd0ab28 100644
--- a/dart/tests/compiler/dart2js_foreign/native_class_is_check3_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_class_is_check3_test.dart
@@ -14,19 +14,21 @@ interface I extends J {
// 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);
}
-class B extends A native "*B" {
+@native("*B")
+class B extends A {
}
-makeA() native;
-makeB() native;
+@native makeA();
+@native makeB();
-void setup() native """
+@native("""
// This code is all inside 'setup' and so not accesible from the global scope.
function inherits(child, parent) {
if (child.prototype.__proto__) {
@@ -45,7 +47,8 @@ A.prototype.read = function() { return this._x; };
A.prototype.write = function(x) { this._x = x; };
makeA = function(){return new A};
makeB = function(){return new B};
-""";
+""")
+void setup();
class C {}

Powered by Google App Engine
This is Rietveld 408576698