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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_missing_method1_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_missing_method1_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_missing_method1_test.dart b/dart/tests/compiler/dart2js_foreign/native_missing_method1_test.dart
index 0b3167924accb76f13eeff9d15a79d1877e3c427..e750e5a9c17442bc6a68678781a86fee2221bc50 100644
--- a/dart/tests/compiler/dart2js_foreign/native_missing_method1_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_missing_method1_test.dart
@@ -2,16 +2,18 @@
// 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 {
}
-makeA() native;
+@native makeA();
-void setup() native """
+@native("""
function A() {};
A.prototype.foo = function() { return 42; }
makeA = function() { return new A; }
-""";
+""")
+void setup();
class B {
// We need to define a foo method so that Frog sees it. Because it's

Powered by Google App Engine
This is Rietveld 408576698