diff options
author | Daniel Jasper <djasper@google.com> | 2014-10-31 17:50:40 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-10-31 17:50:40 +0000 |
commit | f739b0dbfa14492f0fec76bc46bc651529a0eae8 (patch) | |
tree | 8f9b51bc3668ccab9746fd5dbedee4cadf8cfa9d /clang/unittests/Format/FormatTest.cpp | |
parent | 8a020310b8b2a9d33b327ca9ae2483da8df59876 (diff) | |
download | bcm5719-llvm-f739b0dbfa14492f0fec76bc46bc651529a0eae8.tar.gz bcm5719-llvm-f739b0dbfa14492f0fec76bc46bc651529a0eae8.zip |
clang-format: [js] Updates to Google's JavaScript style.
The style guide is changing..
llvm-svn: 220977
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 83b74216fb2..c91d378dd4a 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -8709,7 +8709,7 @@ TEST_F(FormatTest, UsesLanguageForBasedOnStyle) { Style.Language = FormatStyle::LK_JavaScript; Style.BreakBeforeTernaryOperators = true; EXPECT_EQ(0, parseConfiguration("BasedOnStyle: Google", &Style).value()); - EXPECT_FALSE(Style.BreakBeforeTernaryOperators); + EXPECT_FALSE(Style.SpacesInContainerLiterals); Style.BreakBeforeTernaryOperators = true; EXPECT_EQ(0, parseConfiguration("---\n" @@ -8718,7 +8718,7 @@ TEST_F(FormatTest, UsesLanguageForBasedOnStyle) { "Language: JavaScript\n" "IndentWidth: 76\n" "...\n", &Style).value()); - EXPECT_FALSE(Style.BreakBeforeTernaryOperators); + EXPECT_FALSE(Style.SpacesInContainerLiterals); EXPECT_EQ(76u, Style.IndentWidth); EXPECT_EQ(FormatStyle::LK_JavaScript, Style.Language); } |