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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_class_inheritance1_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_inheritance1_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_class_inheritance1_test.dart b/dart/tests/compiler/dart2js_foreign/native_class_inheritance1_test.dart
index 6cb990365b40aeba63507d3944bd6e969137d566..0aae881a2dbb1d45e3984bb4d1511133307e135b 100644
--- a/dart/tests/compiler/dart2js_foreign/native_class_inheritance1_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_class_inheritance1_test.dart
@@ -7,13 +7,15 @@
// superclass caches the method in the prototype, so shadowing the dispatcher
// stored on Object.prototype.
+import 'native_metadata.dart';
+
// Version 1: It might be possible to call foo directly.
-@native("*A1")
+@Native("*A1")
class A1 {
@native foo();
}
-@native("*B1")
+@Native("*B1")
class B1 extends A1 {
@native foo();
}
@@ -23,12 +25,12 @@ class B1 extends A1 {
// Version 2: foo needs some kind of trampoline.
-@native("*A2")
+@Native("*A2")
class A2 {
@native foo([a=99]);
}
-@native("*B2")
+@Native("*B2")
class B2 extends A2 {
@native foo([z=1000]);
}
@@ -36,7 +38,7 @@ class B2 extends A2 {
@native makeA2();
@native makeB2();
-@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