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

Unified Diff: tests/compiler/dart2js_native/issue9182_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
« no previous file with comments | « tests/compiler/dart2js_native/is_check_test.dart ('k') | tests/compiler/dart2js_native/jsobject_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_native/issue9182_test.dart
diff --git a/tests/compiler/dart2js_native/issue9182_test.dart b/tests/compiler/dart2js_native/issue9182_test.dart
index 8d2734b01821e7cef73bdf6a55c184a5718bf497..8bbee654c923a6b6630d1e6b895dc60af63586f8 100644
--- a/tests/compiler/dart2js_native/issue9182_test.dart
+++ b/tests/compiler/dart2js_native/issue9182_test.dart
@@ -5,9 +5,11 @@
// Regression test for Issue 9182. The generative constructor body function
// should not have the interceptor calling convention.
+import "dart:_js_helper";
import "package:expect/expect.dart";
-class Foo native "A" {
+@Native("A")
+class Foo {
factory Foo() => makeA();
// Ensure the instance method 'Bar' uses interceptor convention.
Bar() => 123;
« no previous file with comments | « tests/compiler/dart2js_native/is_check_test.dart ('k') | tests/compiler/dart2js_native/jsobject_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698