| OLD | NEW |
| 1 This test checks text editor javascript formatting. | 1 This test checks text editor javascript formatting. |
| 2 | 2 |
| 3 /** | 3 /** |
| 4 * Multi-line comment | 4 * Multi-line comment |
| 5 * | 5 * |
| 6 */ | 6 */ |
| 7 function foo(n) { | 7 function foo(n) { |
| 8 // one-line comment | 8 // one-line comment |
| 9 function bar() { | 9 function bar() { |
| 10 return 42;D | 10 return 42;D |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 ============ editor contents start ============ | 21 ============ editor contents start ============ |
| 22 /** | 22 /** |
| 23 *.Multi-line.comment | 23 *.Multi-line.comment |
| 24 * | 24 * |
| 25 */ | 25 */ |
| 26 function.foo(n).{ | 26 function.foo(n).{ |
| 27 ....//.one-line.comment | 27 ....//.one-line.comment |
| 28 ....function.bar().{ | 28 ....function.bar().{ |
| 29 ........return.42; | 29 ........return.42; |
| 30 ....} | 30 ....} |
| 31 .... | 31 |
| 32 ....var.sum.=.0; | 32 ....var.sum.=.0; |
| 33 ....for.(var.i.=.0;.i.<.n;.++i).{ | 33 ....for.(var.i.=.0;.i.<.n;.++i).{ |
| 34 ........for.(var.j.=.0;.j.<.n;.++j).{ | 34 ........for.(var.j.=.0;.j.<.n;.++j).{ |
| 35 ............sum.+=.i.+.j; | 35 ............sum.+=.i.+.j; |
| 36 ........} | 36 ........} |
| 37 ....} | 37 ....} |
| 38 .... | 38 |
| 39 .... | 39 |
| 40 ....if.(sum.>.1000).{ | 40 ....if.(sum.>.1000).{ |
| 41 ........while.(sum.>.0).{ | 41 ........while.(sum.>.0).{ |
| 42 ............--sum; | 42 ............--sum; |
| 43 ........} | 43 ........} |
| 44 ....} | 44 ....} |
| 45 } | 45 } |
| 46 | 46 |
| 47 ============ editor contents end ============ | 47 ============ editor contents end ============ |
| 48 | 48 |
| OLD | NEW |