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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_call_arity1_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_call_arity1_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_call_arity1_test.dart b/dart/tests/compiler/dart2js_foreign/native_call_arity1_test.dart
index 61cd7a874323d5a1bdf89fd1f7ad14f0dc775680..2ae3917b057db1f8d12410e14f5a12cd830ac653 100644
--- a/dart/tests/compiler/dart2js_foreign/native_call_arity1_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_call_arity1_test.dart
@@ -10,12 +10,14 @@
// * Named arguments are passed in the correct position, so require preceding
// arguments to be passed.
-@native("*A")
+import 'native_metadata.dart';
+
+@Native("*A")
class A {
@native int foo(int x);
}
-@native("*B")
+@Native("*B")
class B {
@native int foo([x, y, z]);
}
@@ -26,7 +28,7 @@ class B {
@native A makeA() { return new A(); }
@native B makeB() { return new B(); }
-@native("""
+@Native("""
function A() {}
A.prototype.foo = function () { return arguments.length; };

Powered by Google App Engine
This is Rietveld 408576698