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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_method_rename3_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_method_rename3_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_method_rename3_test.dart b/dart/tests/compiler/dart2js_foreign/native_method_rename3_test.dart
index c4ef72a38b34c9d08e0ce83257483625203442d7..bceaf9f16605b2071159935d4941f869f7c20afd 100644
--- a/dart/tests/compiler/dart2js_foreign/native_method_rename3_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_method_rename3_test.dart
@@ -5,15 +5,17 @@
// Test the feature where the native string declares the native method's name.
// #3. The name does not get
-@native("*A")
+import 'native_metadata.dart';
+
+@Native("*A")
class A {
- @native('fooA')
+ @Native('fooA')
int foo();
}
-@native("*B")
+@Native("*B")
class B extends A {
- @native('fooB')
+ @Native('fooB')
int foo();
int fooA() => 333;
}
@@ -27,7 +29,7 @@ class Decoy {
@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