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

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

Issue 10826234: Support some usages of empty classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « lib/compiler/implementation/dart_backend/backend.dart ('k') | tests/language/language.status » ('j') | 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 0082b53564fd947b102a8aae9c72da1fa211ff4c..3eca07c298c76a925ae508b6dee34fe71ebd8300 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -187,16 +187,9 @@ testVariableDefinitions() {
// Class member of typedef-ed function type.
// Maybe typedef should be included in the result too, but it
// works fine without it.
- testDart2Dart('typedef void foofunc(arg);'
- 'class A {'
- 'final foofunc handler;'
- 'A(foofunc this.handler);'
- '}'
- 'main() {new A((arg) {});}', (result) {
- Expect.equals(
- 'main(){new A((arg){});}'
- 'class A{A(foofunc this.handler);final foofunc handler;}', result);
- });
+ testDart2Dart(
+ 'main(){new A((arg){});}typedef void foofunc(arg);'
+ 'class A{A(foofunc this.handler);final foofunc handler;}');
}
testGetSet() {
« no previous file with comments | « lib/compiler/implementation/dart_backend/backend.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698