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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_class_is_check3_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_check3_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_class_is_check3_test.dart b/dart/tests/compiler/dart2js_foreign/native_class_is_check3_test.dart
index cae73e798bc8d1695dd326aa7d5dc147edd0ab28..464e59319c11d56a467a98c197563a61b3e727d2 100644
--- a/dart/tests/compiler/dart2js_foreign/native_class_is_check3_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_class_is_check3_test.dart
@@ -4,6 +4,8 @@
// Test for correct simple is-checks on hidden native classes.
+import 'native_metadata.dart';
+
interface J {
}
@@ -14,21 +16,21 @@ interface I extends J {
// Native implementation.
-@native("*A")
+@Native("*A")
class A implements I {
// The native class accepts only other native instances.
@native A read();
@native write(A x);
}
-@native("*B")
+@Native("*B")
class B extends A {
}
@native makeA();
@native makeB();
-@native("""
+@Native("""
// This code is all inside 'setup' and so not accesible from the global scope.
function inherits(child, parent) {
if (child.prototype.__proto__) {

Powered by Google App Engine
This is Rietveld 408576698