summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-10-29 19:05:20 +0000
committerDaniel Jasper <djasper@google.com>2015-10-29 19:05:20 +0000
commitb488a74f994b874c2134dfd7c9c4a886fb7fe964 (patch)
treeffdf66b3690806a7b12f2304755584cc2d51810e /clang/unittests/Format/FormatTestJS.cpp
parent204aa1d9806425e4a6debdd75390acea1a655e77 (diff)
downloadbcm5719-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.cpp2
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(
OpenPOWER on IntegriCloud