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

Unified Diff: tests/compiler/dart2js/unparser_test.dart

Issue 10558023: New treatment of native methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tests added Created 8 years, 6 months 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
« no previous file with comments | « tests/compiler/dart2js/parser_helper.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/unparser_test.dart
diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart
index 3c37a8512fb7c83e5e4ec431ce90be7e705c0ca4..dab0bc1ded03ffab00caedd7df2ebe75a637ca72 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -39,10 +39,17 @@ testIndexedOperatorDecl() {
testUnparseMember('operator[](int i)=> null;');
}
+testNativeMethods() {
+ testUnparseMember('foo()native;');
+ testUnparseMember('foo()native "bar";');
+ testUnparseMember('foo()native "this.x = 41";');
+}
+
main() {
testGenericTypes();
testForLoop();
testEmptyList();
testClosure();
testIndexedOperatorDecl();
+ testNativeMethods();
}
« no previous file with comments | « tests/compiler/dart2js/parser_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698