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

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

Issue 100553004: Fix for extra space preceding the 'on' keyword in a catch clause (dartbug.com/15454). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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/lib/src/services/formatter_impl.dart ('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 30876)
+++ pkg/analyzer/test/services/formatter_test.dart (working copy)
@@ -836,6 +836,18 @@
' print(e);\n'
'}'
);
+ expectStmtFormatsTo(
+ 'try{\n'
+ 'doSomething();\n'
+ '}on Exception catch (e){\n'
+ 'print(e);\n'
+ '}',
+ 'try {\n'
+ ' doSomething();\n'
+ '} on Exception catch (e) {\n'
+ ' print(e);\n'
+ '}'
+ );
});
test('stmt (binary/ternary ops)', () {
« no previous file with comments | « pkg/analyzer/lib/src/services/formatter_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698