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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_call_arity2_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_arity2_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_call_arity2_test.dart b/dart/tests/compiler/dart2js_foreign/native_call_arity2_test.dart
index 50a71c3f2e1332780dd1c8fd95765681370a5781..b28e99eede7efbca0089b664b657a098e8857e0b 100644
--- a/dart/tests/compiler/dart2js_foreign/native_call_arity2_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_call_arity2_test.dart
@@ -5,12 +5,14 @@
// This is a similar test to NativeCallArity1FrogTest, but makes sure
// that subclasses also get the right number of arguments.
-@native("*A")
+import 'native_metadata.dart';
+
+@Native("*A")
class A {
@native int foo([x, y]);
}
-@native("*B")
+@Native("*B")
class B extends A {
@native int foo([x, y]);
}
@@ -18,7 +20,7 @@ class B extends A {
@native A makeA() { return new A(); }
@native B makeB() { return new B(); }
-@native("""
+@Native("""
function inherits(child, parent) {
if (child.prototype.__proto__) {
child.prototype.__proto__ = parent.prototype;

Powered by Google App Engine
This is Rietveld 408576698