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

Unified Diff: tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart

Issue 383413003: Add @Native(...) annotation for native class names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 5 months 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: tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart
diff --git a/tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart b/tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart
index b243c59e39b411ac8dcfc6453d9afab454ae835c..fcd1e3aa05aa08c62eac978d3317b3c13940b556 100644
--- a/tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart
+++ b/tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart
@@ -2,13 +2,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import "dart:_js_helper";
import "package:expect/expect.dart";
// Additional Dart code may be 'placed on' hidden native classes. With
// inheritance, the superclass method must not be reached by a call on the
// subclass.
-class A native "A" {
+@Native("A")
+class A {
var _field;
int get X => _field;
@@ -17,7 +19,8 @@ class A native "A" {
int method(int z) => _field + z;
}
-class B extends A native "B" {
+@Native("B")
+class B extends A {
var _field2;
int get X => _field2;

Powered by Google App Engine
This is Rietveld 408576698