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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_call_arity3_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_arity3_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_call_arity3_test.dart b/dart/tests/compiler/dart2js_foreign/native_call_arity3_test.dart
index 2fa0b4e73af24318c0fd3b1125eb74f6c5379f75..fb2e00b0486fe0b4a517100025bfd09b77f44052 100644
--- a/dart/tests/compiler/dart2js_foreign/native_call_arity3_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_call_arity3_test.dart
@@ -6,12 +6,14 @@
// parameters set to null. These parameters should be treated as if they
// do not have a default value for the native methods.
-@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 = null, y, z = null]);
}
@@ -22,7 +24,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