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

Unified Diff: dart/tests/compiler/dart2js_foreign/native_property_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_property_test.dart
diff --git a/dart/tests/compiler/dart2js_foreign/native_property_test.dart b/dart/tests/compiler/dart2js_foreign/native_property_test.dart
index 34341883d75d8f743c1bcf50ed9cb6f3b7178283..4aa85ea2a46dde4a33626aa8a08902bdb41c81cd 100644
--- a/dart/tests/compiler/dart2js_foreign/native_property_test.dart
+++ b/dart/tests/compiler/dart2js_foreign/native_property_test.dart
@@ -4,14 +4,16 @@
// Properties on hidden native classes.
-@native("*A")
+import 'native_metadata.dart';
+
+@Native("*A")
class A {
// Setters and getters should be similar to these methods:
- @native('return this._x;')
+ @Native('return this._x;')
int getX();
- @native('this._x = value;')
+ @Native('this._x = value;')
void setX(int value);
@native
@@ -26,17 +28,17 @@ class A {
@native
set Y(int value);
- @native('return this._z;')
+ @Native('return this._z;')
int get Z;
- @native('this._z = value;')
+ @Native('this._z = value;')
set Z(int value);
}
@native
A makeA() { return new A(); }
-@native("""
+@Native("""
function A() {}
Object.defineProperty(A.prototype, "X", {

Powered by Google App Engine
This is Rietveld 408576698