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

Unified Diff: tests/compiler/dart2js_native/native_class_inheritance3_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_inheritance3_frog_test.dart
diff --git a/tests/compiler/dart2js_native/native_class_inheritance3_frog_test.dart b/tests/compiler/dart2js_native/native_class_inheritance3_frog_test.dart
index aff63454665c9045365e106ec32a76e1148d7bfc..320da8c3a4a1db54aa066f5d45b143e5a5c8fe96 100644
--- a/tests/compiler/dart2js_native/native_class_inheritance3_frog_test.dart
+++ b/tests/compiler/dart2js_native/native_class_inheritance3_frog_test.dart
@@ -2,27 +2,32 @@
// 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";
// Test to see if resolving a hidden native class's method to noSuchMethod
// interferes with subsequent resolving of the method. This might happen if the
// noSuchMethod is cached on Object.prototype.
-class A1 native "A1" {
+@Native("A1")
+class A1 {
}
-class B1 extends A1 native "B1" {
+@Native("B1")
+class B1 extends A1 {
}
makeA1() native;
makeB1() native;
-class A2 native "A2" {
+@Native("A2")
+class A2 {
foo([a=99]) native;
}
-class B2 extends A2 native "B2" {
+@Native("B2")
+class B2 extends A2 {
}
makeA2() native;

Powered by Google App Engine
This is Rietveld 408576698