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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_checked_fields_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_checked_fields_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_checked_fields_test.dart b/dart/tests/compiler/dart2js_foreign/native_checked_fields_test.dart
index f1017605de039435c2ca2ee42c62cf801467538c..15851b837d13dcd24915fc08568542bd2d037256 100644
--- a/dart/tests/compiler/dart2js_foreign/native_checked_fields_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_checked_fields_test.dart
@@ -4,12 +4,14 @@
// Test that type checks occur on assignment to fields of native methods.
-@native("*A")
+import 'native_metadata.dart';
+
+@Native("*A")
class A {
int foo;
}
-@native("*B")
+@Native("*B")
class B {
String foo;
}
@@ -17,7 +19,7 @@ class B {
@native A makeA() { return new A(); }
@native B makeB() { return new B(); }
-@native("""
+@Native("""
function A() {}
function B() {}

Powered by Google App Engine
This is Rietveld 408576698