-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed extra line before function declaration
Fixes #1085
- Loading branch information
1 parent
ef30d29
commit 3e52b98
Showing
5 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -513,6 +513,22 @@ function run_javascript_tests(test_obj, Urlencoded, js_beautify, html_beautify, | |
' name: "Jonathan" // New line inserted after this line on every save\n' + | ||
' ,\n age: 25\n' + | ||
'});'); | ||
bt( | ||
'changeCollection.add(\n' + | ||
' function() {\n' + | ||
' return true;\n' + | ||
' },\n' + | ||
' function() {\n' + | ||
' return true;\n' + | ||
' }\n' + | ||
');', | ||
'changeCollection.add(\n' + | ||
' function() {\n' + | ||
' return true;\n' + | ||
' },\n function() {\n' + | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bitwiseman
Author
Member
|
||
' return true;\n' + | ||
' }\n' + | ||
');'); | ||
|
||
// Comma-first option - (c0 = "\n, ", c1 = "\n , ", c2 = "\n , ", c3 = "\n , ", f1 = ", ") | ||
reset_options(); | ||
|
@@ -537,6 +553,22 @@ function run_javascript_tests(test_obj, Urlencoded, js_beautify, html_beautify, | |
' name: "Jonathan" // New line inserted after this line on every save\n' + | ||
' , age: 25\n' + | ||
'});'); | ||
bt( | ||
'changeCollection.add(\n' + | ||
' function() {\n' + | ||
' return true;\n' + | ||
' },\n' + | ||
' function() {\n' + | ||
' return true;\n' + | ||
' }\n' + | ||
');', | ||
'changeCollection.add(\n' + | ||
' function() {\n' + | ||
' return true;\n' + | ||
' }\n , function() {\n' + | ||
' return true;\n' + | ||
' }\n' + | ||
');'); | ||
|
||
|
||
//============================================================ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Do you really want a
\n
in the middle of a line of this string literal? Looks confusing.