summaryrefslogtreecommitdiffstats
path: root/tools/gn/command_format_unittest.cc
diff options
context:
space:
mode:
authorscottmg <scottmg@chromium.org>2014-11-07 14:54:54 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-07 22:55:15 +0000
commit89e03bdc047954200ee3a80dff220dcb674042f3 (patch)
tree0a28ba22a609781adf11ff0592df4d40ddf6501f /tools/gn/command_format_unittest.cc
parentf944c32ded13185e4d45468623920d7e51a35aba (diff)
downloadchromium_src-89e03bdc047954200ee3a80dff220dcb674042f3.zip
chromium_src-89e03bdc047954200ee3a80dff220dcb674042f3.tar.gz
chromium_src-89e03bdc047954200ee3a80dff220dcb674042f3.tar.bz2
gn format: use input line breaks rather than attempting rule-based line breaks
I couldn't come up with anything that worked in 100% of cases, so switch to mostly maintaining line breaks from input file instead. R=brettw@chromium.org BUG=348474 Review URL: https://codereview.chromium.org/713463003 Cr-Commit-Position: refs/heads/master@{#303313}
Diffstat (limited to 'tools/gn/command_format_unittest.cc')
-rw-r--r--tools/gn/command_format_unittest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gn/command_format_unittest.cc b/tools/gn/command_format_unittest.cc
index 31bc4be..6458179 100644
--- a/tools/gn/command_format_unittest.cc
+++ b/tools/gn/command_format_unittest.cc
@@ -70,8 +70,9 @@ FORMAT_TEST(031)
FORMAT_TEST(033)
// TODO(scottmg): args+rebase_path unnecessarily split: FORMAT_TEST(034)
FORMAT_TEST(035)
-// TODO(scottmg): Line breaks between early statements: FORMAT_TEST(036)
+FORMAT_TEST(036)
// TODO(scottmg): Ugly line breaking: FORMAT_TEST(037)
FORMAT_TEST(038)
// TODO(scottmg): Bad break, exceeding 80 col: FORMAT_TEST(039)
// TODO(scottmg): Bad break, exceeding 80 col: FORMAT_TEST(040)
+FORMAT_TEST(041)