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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_no_such_method_exception2_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_no_such_method_exception2_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_no_such_method_exception2_test.dart b/dart/tests/compiler/dart2js_foreign/native_no_such_method_exception2_test.dart
index bd454511137f2fbb27637cedd813f7cb621b4b79..6b86641524e50df1cc715706c3eb7f1991f763f4 100644
--- a/dart/tests/compiler/dart2js_foreign/native_no_such_method_exception2_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_no_such_method_exception2_test.dart
@@ -2,17 +2,19 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-class A native "*A" {
+@native("*A")
+class A {
}
-class B extends A native "*B" {
- foo() native;
+@native("*B")
+class B extends A {
+ @native foo();
}
-makeA() native;
-makeB() native;
+@native makeA();
+@native makeB();
-setup() native """
+@native("""
function inherits(child, parent) {
if (child.prototype.__proto__) {
child.prototype.__proto__ = parent.prototype;
@@ -29,7 +31,8 @@ function inherits(child, parent) {
makeA = function() { return new A; }
makeB = function() { return new B; }
B.prototype.foo = function() { return 42; }
-""";
+""")
+setup();
main() {
setup();

Powered by Google App Engine
This is Rietveld 408576698