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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_class_inheritance2_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_inheritance2_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_class_inheritance2_test.dart b/dart/tests/compiler/dart2js_foreign/native_class_inheritance2_test.dart
index 9dec57b5c81cf057dc130fd3f082e75cb1314b24..00f3a3636cb38b40cc933744c1b2b3be70b4dfe5 100644
--- a/dart/tests/compiler/dart2js_foreign/native_class_inheritance2_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_class_inheritance2_test.dart
@@ -7,26 +7,30 @@
// superclass caches the method in the prototype, so shadowing the dispatcher
// stored on Object.prototype.
-class A native "*A" {
- foo([a=100]) native;
+@native("*A")
+class A {
+ @native foo([a=100]);
}
-class B extends A native "*B" {
+@native("*B")
+class B extends A {
}
-class C extends B native "*C" {
- foo([z=300]) native;
+@native("*C")
+class C extends B {
+ @native foo([z=300]);
}
-class D extends C native "*D" {
+@native("*D")
+class D extends C {
}
-makeA() native;
-makeB() native;
-makeC() native;
-makeD() native;
+@native makeA();
+@native makeB();
+@native makeC();
+@native makeD();
-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__) {
@@ -54,7 +58,8 @@ makeA = function(){return new A};
makeB = function(){return new B};
makeC = function(){return new C};
makeD = function(){return new D};
-""";
+""")
+void setup();
main() {

Powered by Google App Engine
This is Rietveld 408576698