diff options
author | Daniel Jasper <djasper@google.com> | 2015-06-02 15:04:29 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-06-02 15:04:29 +0000 |
commit | 40432cee93578aeee09328ed704dcba445cc4f1b (patch) | |
tree | ba4a5bc70260f2ee2692dd8016ab2cfaa36d33d6 /clang/unittests/Format/FormatTestJS.cpp | |
parent | 531063b274924d6db9d4058eb1163c051e3525a4 (diff) | |
download | bcm5719-llvm-40432cee93578aeee09328ed704dcba445cc4f1b.tar.gz bcm5719-llvm-40432cee93578aeee09328ed704dcba445cc4f1b.zip |
clang-format: [JS] Array literal detection fix #3.
llvm-svn: 238839
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index 583188d3ebc..25113ab7589 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -257,6 +257,9 @@ TEST_F(FormatTestJS, ArrayLiterals) { " bbbbbbbbbbbbbbbbbbbbbbbbbbb,\n" " ccccccccccccccccccccccccccc\n" "]);"); + verifyFormat("var someVariable = SomeFuntion([\n" + " [aaaaaaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbbbbbb],\n" + "]);"); verifyFormat("var someVariable = SomeFuntion(aaaa, [\n" " aaaaaaaaaaaaaaaaaaaaaaaaaaa,\n" " bbbbbbbbbbbbbbbbbbbbbbbbbbb,\n" |