OLD | NEW |
1 PASS | 1 PASS |
2 | 2 |
3 Tests the gutter decorations in target source code after ScriptFormatterEditorAc
tion | 3 Tests the gutter decorations in target source code after ScriptFormatterEditorAc
tion |
4 | 4 |
5 0: + function outer(index) { | 5 0: + function outer(index) { |
6 1: + | 6 1: - |
7 2: * function inner1(a) { | 7 2: - function inner1(a) { |
8 3: - return a + 1; | 8 3: - return a + 1; |
9 4: * } | 9 4: - } |
10 5: + | 10 5: - |
11 6: + function inner2(a) { | 11 6: + function inner2(a) { |
12 7: + return a + 2; | 12 7: + return a + 2; |
13 8: + } | 13 8: + } |
14 9: + | 14 9: - |
15 10: * function inner3(a) { | 15 10: - function inner3(a) { |
16 11: - return a + 3; | 16 11: - return a + 3; |
17 12: * } | 17 12: - } |
18 13: + function inner4(a) { | 18 13: + function inner4(a) { |
19 14: + return a + 4; | 19 14: + return a + 4; |
20 15: + } | 20 15: + } |
21 16: * function inner5(a) { | 21 16: - function inner5(a) { |
22 17: - return a + 5; | 22 17: - return a + 5; |
23 18: * } | 23 18: - } |
24 19: + | 24 19: - |
25 20: + return [inner1, inner2, inner3, inner4, inner5][index]; | 25 20: + return [inner1, inner2, inner3, inner4, inner5][index]; |
26 21: * } | 26 21: + } |
27 22: - | 27 22: - |
28 23: * function performActions() { | 28 23: + function performActions() { |
29 24: + return outer(1)(0) + outer(3)(0); | 29 24: + return outer(1)(0) + outer(3)(0); |
30 25: * } | 30 25: + } |
31 26: - function outer2() { | 31 26: - function outer2() { |
32 27: - return outer(0)(0); | 32 27: - return outer(0)(0); |
33 28: - } | 33 28: - } |
34 29: - | 34 29: - |
35 | 35 |
OLD | NEW |