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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_class_with_dart_methods_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_with_dart_methods_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_class_with_dart_methods_test.dart b/dart/tests/compiler/dart2js_foreign/native_class_with_dart_methods_test.dart
index 17dc60e92a01342489427ee9116ea5c7d2ab2206..5cedb88ed9b13975078bfdd085acd10414cee98d 100644
--- a/dart/tests/compiler/dart2js_foreign/native_class_with_dart_methods_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_class_with_dart_methods_test.dart
@@ -4,7 +4,8 @@
// Additional Dart code may be 'placed on' hidden native classes.
-class A native "*A" {
+@native("*A")
+class A {
var _field;
@@ -14,12 +15,13 @@ class A native "*A" {
int method(int z) => _field + z;
}
-A makeA() native { return new A(); }
+@native A makeA() { return new A(); }
-void setup() native """
+@native("""
function A() {}
makeA = function(){return new A;};
-""";
+""")
+void setup();
main() {

Powered by Google App Engine
This is Rietveld 408576698