summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Probst <martin@probst.io>2017-01-09 09:00:58 +0000
committerMartin Probst <martin@probst.io>2017-01-09 09:00:58 +0000
commitfd18ec5885d309f213814d3488c1c365bdef3c5e (patch)
tree4d3dee4e6e26773b52383dfa26899c4dd5449125
parentd40bca431dfab7deae906fae9eea72dbdd81de2c (diff)
downloadbcm5719-llvm-fd18ec5885d309f213814d3488c1c365bdef3c5e.tar.gz
bcm5719-llvm-fd18ec5885d309f213814d3488c1c365bdef3c5e.zip
clang-format: [JS] fix broken test.
llvm-svn: 291429
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index 12554a1dc23..230717fe47c 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -859,7 +859,9 @@ TEST_F(FormatTestJS, AutomaticSemicolonInsertionHeuristic) {
"a = null\n"
" return 1");
verifyFormat(
- "x = {a: 1}\n"
+ "x = {\n"
+ " a: 1\n"
+ "}\n"
"class Y {}",
" x = {a : 1}\n"
" class Y { }");
OpenPOWER on IntegriCloud