Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / editor / text-editor-formatter-expected.txt
1 This test checks text editor javascript formatting.
2
3 /**
4 * Multi-line comment
5 *
6 */
7 function foo(n) {
8 // one-line comment
9 function bar() {
10 return 42;D
11
12 var sum = 0;
13 for (var i = 0; i < n; ++i) {
14 for (var j = 0; j < n; ++j) {
15 sum += i + j;DD
16
17
18 if (sum > 1000) {
19 while (sum > 0) {
20 --sum;DDD
21 ============ editor contents start ============
22 /**
23 *.Multi-line.comment
24 *
25 */
26 function.foo(n).{
27 ....//.one-line.comment
28 ....function.bar().{
29 ........return.42;
30 ....}
31
32 ....var.sum.=.0;
33 ....for.(var.i.=.0;.i.<.n;.++i).{
34 ........for.(var.j.=.0;.j.<.n;.++j).{
35 ............sum.+=.i.+.j;
36 ........}
37 ....}
38
39
40 ....if.(sum.>.1000).{
41 ........while.(sum.>.0).{
42 ............--sum;
43 ........}
44 ....}
45 }
46
47 ============ editor contents end ============
48