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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_field_rename_1_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_field_rename_1_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_field_rename_1_test.dart b/dart/tests/compiler/dart2js_foreign/native_field_rename_1_test.dart
index a6766fa5f4bf5a05774c6d1f1af186c4e7d44e0f..e8ae45ccd351294edfd76c5656a84481b9b9d69b 100644
--- a/dart/tests/compiler/dart2js_foreign/native_field_rename_1_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_field_rename_1_test.dart
@@ -6,7 +6,9 @@
// fields. However, native fields keep their name. The implication: a getter
// for the field must be based on the field's name, not the field's jsname.
-@native("*A")
+import 'native_metadata.dart';
+
+@Native("*A")
class A {
int key; // jsname is 'key'
int getKey() => key;
@@ -18,9 +20,9 @@ class B {
int getKey() => key;
}
-@native("*X")
+@Native("*X")
class X {
- @native('key') int native_key_method();
+ @Native('key') int native_key_method();
// This should cause B.key to be renamed, but not A.key.
@natve('key') int key();
@@ -30,7 +32,7 @@ class X {
@native X makeX();
-@native("""
+@Native("""
// This code is all inside 'setup' and so not accesible from the global scope.
function A(){ this.key = 111; }
A.prototype.getKey = function(){return this.key;};

Powered by Google App Engine
This is Rietveld 408576698