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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_class_inheritance4_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_class_inheritance4_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_class_inheritance4_test.dart b/dart/tests/compiler/dart2js_foreign/native_class_inheritance4_test.dart
index 0307d8c1974c4adbe76f8c05af9ed0a1f69c58c3..b7a8c67b6826f31b8fb923e908f4e6055868f387 100644
--- a/dart/tests/compiler/dart2js_foreign/native_class_inheritance4_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_class_inheritance4_test.dart
@@ -6,7 +6,9 @@
// inheritance, the superclass method must not be reached by a call on the
// subclass.
-@native("*A")
+import 'native_metadata.dart';
+
+@Native("*A")
class A {
var _field;
@@ -16,7 +18,7 @@ class A {
int method(int z) => _field + z;
}
-@native("*B")
+@Native("*B")
class B extends A {
var _field2;
@@ -29,7 +31,7 @@ class B extends A {
@native A makeA() { return new A(); }
@native B makeB() { return new B(); }
-@native(r"""
+@Native(r"""
function inherits(child, parent) {
if (child.prototype.__proto__) {
child.prototype.__proto__ = parent.prototype;

Powered by Google App Engine
This is Rietveld 408576698