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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_method_with_keyword_name_test.dart

Issue 11293272: Update dart2js_foreign suite as we now validate annotations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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 2a7e491b5eaa3ac92e4e087b0bd87fa9217dc919..6a1551244c559259256adbc46b9ea19a1485c316 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,14 +4,16 @@
// Make sure we can have a native with a name that is a JavaScript keyword.
-@native("*A")
+import 'native_metadata.dart';
+
+@Native("*A")
class A {
@native int delete();
}
@native A makeA() { return new A(); }
-@native("""
+@Native("""
function A() {}
A.prototype.delete = function() { return 87; };

Powered by Google App Engine
This is Rietveld 408576698