diff options
author | Daniel Jasper <djasper@google.com> | 2015-10-29 19:05:20 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-10-29 19:05:20 +0000 |
commit | b488a74f994b874c2134dfd7c9c4a886fb7fe964 (patch) | |
tree | ffdf66b3690806a7b12f2304755584cc2d51810e /clang/unittests/Format/FormatTestJS.cpp | |
parent | 204aa1d9806425e4a6debdd75390acea1a655e77 (diff) | |
download | bcm5719-llvm-b488a74f994b874c2134dfd7c9c4a886fb7fe964.tar.gz bcm5719-llvm-b488a74f994b874c2134dfd7c9c4a886fb7fe964.zip |
clang-format: [JS] Add goog.setTestOnly to the list of stuff that
is import-statement-like and shouldn't be wrapped.
llvm-svn: 251643
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index d26f96d6e4c..b491cd58659 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -252,6 +252,8 @@ TEST_F(FormatTestJS, GoogModules) { getGoogleJSStyleWithColumns(40)); verifyFormat("var long = goog.require('this.is.really.absurdly.long');", getGoogleJSStyleWithColumns(40)); + verifyFormat("goog.setTestOnly('this.is.really.absurdly.long');", + getGoogleJSStyleWithColumns(40)); // These should be wrapped normally. verifyFormat( |