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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_class_with_dart_methods_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_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 21c84fb2b703435622f793b007e25ca7e3ae3c2a..963263ef91cd8311c68b0f7b4c08f63f0296f9a0 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,9 @@
// Additional Dart code may be 'placed on' hidden native classes.
-@native("*A")
+import 'native_metadata.dart';
+
+@Native("*A")
class A {
var _field;
@@ -17,7 +19,7 @@ class A {
@native A makeA() { return new A(); }
-@native("""
+@Native("""
function A() {}
makeA = function(){return new A;};
""")

Powered by Google App Engine
This is Rietveld 408576698