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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_checked_arguments1_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_arguments1_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_checked_arguments1_test.dart b/dart/tests/compiler/dart2js_foreign/native_checked_arguments1_test.dart
index a293d0519b8e43aa866be51ee33d9af456d882a9..f6e169bc6a14d702c0389d334bddf6c84ad845cb 100644
--- a/dart/tests/compiler/dart2js_foreign/native_checked_arguments1_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_checked_arguments1_test.dart
@@ -4,13 +4,15 @@
// Test that type checks occur on native methods.
-@native("*A")
+import 'native_metadata.dart';
+
+@Native("*A")
class A {
@native int foo(int x);
@native int cmp(A other);
}
-@native("*B")
+@Native("*B")
class B {
@native String foo(String x);
@native int cmp(B other);
@@ -19,7 +21,7 @@ class B {
@native A makeA() { return new A(); }
@native B makeB() { return new B(); }
-@native("""
+@Native("""
function A() {}
A.prototype.foo = function (x) { return x + 1; };
A.prototype.cmp = function (x) { return 0; };

Powered by Google App Engine
This is Rietveld 408576698