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

Unified Diff: test/regression/45.stmt

Issue 791113002: Regression test for #45 which is doing pretty much what we want the formatter to do already. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 6 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 | « test/regression/33.stmt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/regression/45.stmt
diff --git a/test/regression/45.stmt b/test/regression/45.stmt
new file mode 100644
index 0000000000000000000000000000000000000000..4f94eac4e75fdf0c78a549859f21caf24d92ed0b
--- /dev/null
+++ b/test/regression/45.stmt
@@ -0,0 +1,10 @@
+>>> doesn't wrap after condition on single-line ifs
+foo() {
+ if (xxxxxxxxxxxxxxxx || xxxxxxxxxxxxxxxxxxxxx)
+ return xxxxxxxxxxxxxx ? xxxxxxxxxxxxxxxxxxxx : xxxxxxxxxxxxxxxxxxxxxxxxxx;
+}
+<<<
+foo() {
+ if (xxxxxxxxxxxxxxxx || xxxxxxxxxxxxxxxxxxxxx) return xxxxxxxxxxxxxx ?
+ xxxxxxxxxxxxxxxxxxxx : xxxxxxxxxxxxxxxxxxxxxxxxxx;
+}
« no previous file with comments | « test/regression/33.stmt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698