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

Unified Diff: pkg/analyzer/test/services/formatter_test.dart

Issue 169283013: Support for removing empty statements (dartbug.com/16810). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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 | « pkg/analyzer/test/services/data/stmt_tests.data ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/services/formatter_test.dart
===================================================================
--- pkg/analyzer/test/services/formatter_test.dart (revision 32869)
+++ pkg/analyzer/test/services/formatter_test.dart (working copy)
@@ -18,8 +18,11 @@
/// Data-driven statement tests
group('stmt_tests.data', () {
+ // NOTE: statement tests are run with transforms enabled
runTests('stmt_tests.data', (input, expectedOutput) {
- expect(formatStatement(input) + '\n', equals(expectedOutput));
+ expect(formatStatement(input,
+ options: new FormatterOptions(codeTransforms: true)) + '\n',
+ equals(expectedOutput));
});
});
« no previous file with comments | « pkg/analyzer/test/services/data/stmt_tests.data ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698