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

Unified Diff: tests/compiler/dart2js_native/core_type_check_native_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/core_type_check_native_test.dart
diff --git a/tests/compiler/dart2js_native/core_type_check_native_test.dart b/tests/compiler/dart2js_native/core_type_check_native_test.dart
index 11890a128bdcff984e0dd06074f6c10f0718364c..41a41094aeb83e3a9ec100f4c4485923a48e0ca8 100644
--- a/tests/compiler/dart2js_native/core_type_check_native_test.dart
+++ b/tests/compiler/dart2js_native/core_type_check_native_test.dart
@@ -2,20 +2,25 @@
// 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";
var inscrutable = (int x) => x == 0 ? 0 : x | inscrutable(x & (x - 1));
-class A native "A" {
+@Native("A")
+class A {
}
-class B implements Comparable native "B" {
+@Native("B")
+class B implements Comparable {
}
-class C implements Pattern native "C" {
+@Native("C")
+class C implements Pattern {
}
-class D implements Pattern, Comparable native "D" {
+@Native("D")
+class D implements Pattern, Comparable {
}
makeA() native;
« no previous file with comments | « tests/compiler/dart2js_native/call_on_native_class_test.dart ('k') | tests/compiler/dart2js_native/downcast_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698