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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart

Issue 11293272: Update dart2js_foreign suite as we now validate annotations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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: dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart b/dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart
index c31cd8f88283b2a4205e6d033ebfd1ed9a8e8b71..ee73eaed7ca0cc8c041ea72bd44f2afc8f1f03eb 100644
--- a/dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_class_is_check1_test.dart
@@ -4,6 +4,8 @@
// Test for correct simple is-checks on hidden native classes.
+import 'native_metadata.dart';
+
interface I {
I read();
write(I x);
@@ -11,7 +13,7 @@ interface I {
// Native implementation.
-@native("*A")
+@Native("*A")
class A implements I {
// The native class accepts only other native instances.
@native A read();
@@ -20,7 +22,7 @@ class A implements I {
@native makeA();
-@native("""
+@Native("""
// This code is all inside 'setup' and so not accesible from the global scope.
function A(){}
A.prototype.read = function() { return this._x; };

Powered by Google App Engine
This is Rietveld 408576698