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

Unified Diff: tests/compiler/dart2js_native/native_no_such_method_exception4_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_no_such_method_exception4_frog_test.dart
diff --git a/tests/compiler/dart2js_native/native_no_such_method_exception4_frog_test.dart b/tests/compiler/dart2js_native/native_no_such_method_exception4_frog_test.dart
index fed9ce8e943d41c4c54329faff432c82edbd6170..ee0af943d5dc7148c5e9a0dce6bab95add0e981a 100644
--- a/tests/compiler/dart2js_native/native_no_such_method_exception4_frog_test.dart
+++ b/tests/compiler/dart2js_native/native_no_such_method_exception4_frog_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import "dart:mirrors" show reflect;
+import "dart:_js_helper";
import "package:expect/expect.dart";
class GetName {
@@ -12,12 +13,14 @@ class GetName {
String getName(im) => reflect(new GetName()).delegate(im);;
-class A native "A" {
+@Native("A")
+class A {
bar() => 42;
noSuchMethod(x) => "native(${getName(x)}:${x.positionalArguments})";
}
-class B native "B" {
+@Native("B")
+class B {
baz() => 42;
}

Powered by Google App Engine
This is Rietveld 408576698