blob: ea2cdf9797631c303cee0102cb536ff97fbaa21e [file] [log] [blame]
==== braces-object-initializer
var a = { b /**/ : 100, c: '567'};
==
var a = { b/**/ : 100, c: '567' };
==== braces-object-initializer-2
var _size = {width : 10, height: 20};
==
var _size = { width: 10, height: 20 };
==== braces-object-initializer-3
var size3 =
{
width : 10,
height : 20
};
==
var size3 = {
width: 10,
height: 20
};
==== braces-object-initializer-with-comment
// aaaaaaa
var a = { b : 100 , c : '567' };
==
// aaaaaaa
var a = { b: 100, c: '567' };
==== braces-if
if(x){
print("hello");
}
==
if (x) {
print("hello");
}
==== braces-if-next-line
==> formatter.braces.blocks = next.line
if(x){
print("hello");
}
==
if (x)
{
print("hello");
}
==== return-hash-always-same-line
function x() {
return {
a:1,b:2}
}
==
function x () {
return {
a: 1, b: 2
}
}
==== braces-if-same-line
==> formatter.braces.blocks = same.line
if(x)
{
print("hello");
}
==
if (x) {
print("hello");
}
====
==== braces-if-same-line with comments
==> formatter.braces.blocks = same.line
if(x) { // test
print("hello");
}
==
if (x) { // test
print("hello");
}
====
==== braces-if-next-line with comments
==> formatter.braces.blocks = next.line
if(x) { // test
print("hello");
}
==
if (x)
{ // test
print("hello");
}
====