|
@@ -558,8 +558,6 @@ 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));
|
|
|
verifyFormat("goog.forwardDeclare('this.is.really.absurdly.long');",
|
|
|
getGoogleJSStyleWithColumns(40));
|
|
|
|
|
@@ -567,6 +565,12 @@ TEST_F(FormatTestJS, GoogModules) {
|
|
|
verifyFormat(
|
|
|
"var MyLongClassName =\n"
|
|
|
" goog.module.get('my.long.module.name.followedBy.MyLongClassName');");
|
|
|
+ verifyFormat("function a() {\n"
|
|
|
+ " goog.setTestOnly();\n"
|
|
|
+ "}\n",
|
|
|
+ "function a() {\n"
|
|
|
+ "goog.setTestOnly();\n"
|
|
|
+ "}\n");
|
|
|
}
|
|
|
|
|
|
TEST_F(FormatTestJS, FormatsNamespaces) {
|