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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_method_with_keyword_name_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_method_with_keyword_name_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_method_with_keyword_name_test.dart b/dart/tests/compiler/dart2js_foreign/native_method_with_keyword_name_test.dart
index 3e9ac55340336d7281762b21609abadf9d060d4d..f0d2ba132694a76c4202d5be7d0f4db53fc65c66 100644
--- a/dart/tests/compiler/dart2js_foreign/native_method_with_keyword_name_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_method_with_keyword_name_test.dart
@@ -4,18 +4,20 @@
// Make sure we can have a native with a name that is a JavaScript keyword.
-class A native "*A" {
- int delete() native;
+@native("*A")
+class A {
+ @native int delete();
}
-A makeA() native { return new A(); }
+@native A makeA() { return new A(); }
-void setup() native """
+@native("""
function A() {}
A.prototype.delete = function() { return 87; };
makeA = function(){return new A;};
-""";
+""")
+void setup();
main() {

Powered by Google App Engine
This is Rietveld 408576698