Skip to content

Commit 9581bb5

Browse files
committed
JS: Update test output
1 parent 430bf2d commit 9581bb5

File tree

19 files changed

+316
-14
lines changed

19 files changed

+316
-14
lines changed

javascript/ql/test/library-tests/AMD/AmdModuleDefinition.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
| tst3.js:1:1:3:2 | define( ... 42;\\n}) | tst3.js:1:8:3:1 | functio ... = 42;\\n} |
88
| tst4.js:1:1:11:2 | define( ... };\\n}) | tst4.js:6:11:11:1 | functio ... };\\n} |
99
| tst.js:1:1:6:2 | define( ... };\\n}) | tst.js:1:28:6:1 | functio ... };\\n} |
10+
| umd.js:4:9:4:43 | define( ... actory) | umd.js:1:18:1:24 | factory |
1011
| umd.js:4:9:4:43 | define( ... actory) | umd.js:9:9:14:1 | functio ... };\\n} |

javascript/ql/test/library-tests/AMD/AmdModuleExpr.expected

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@
55
| lib/nested/a.js:1:1:3:2 | define( ... 2 };\\n}) | lib/nested/a.js:2:12:2:22 | { foo: 42 } | lib/nested/a.js:2:12:2:22 | { foo: 42 } |
66
| tst4.js:1:1:11:2 | define( ... };\\n}) | tst4.js:7:12:10:5 | {\\n ... r\\n } | tst4.js:7:12:10:5 | {\\n ... r\\n } |
77
| tst.js:1:1:6:2 | define( ... };\\n}) | tst.js:2:12:5:5 | {\\n ... r\\n } | tst.js:2:12:5:5 | {\\n ... r\\n } |
8+
| umd.js:4:9:4:43 | define( ... actory) | umd.js:1:18:1:24 | factory | umd.js:1:18:1:24 | factory |
9+
| umd.js:4:9:4:43 | define( ... actory) | umd.js:1:18:1:24 | factory | umd.js:9:9:14:1 | functio ... };\\n} |
10+
| umd.js:4:9:4:43 | define( ... actory) | umd.js:1:18:1:24 | factory | umd.js:10:12:13:5 | {\\n ... r\\n } |
11+
| umd.js:4:9:4:43 | define( ... actory) | umd.js:10:12:13:5 | {\\n ... r\\n } | umd.js:1:18:1:24 | factory |
12+
| umd.js:4:9:4:43 | define( ... actory) | umd.js:10:12:13:5 | {\\n ... r\\n } | umd.js:9:9:14:1 | functio ... };\\n} |
813
| umd.js:4:9:4:43 | define( ... actory) | umd.js:10:12:13:5 | {\\n ... r\\n } | umd.js:10:12:13:5 | {\\n ... r\\n } |

javascript/ql/test/library-tests/DataFlow/enclosingExpr.expected

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,19 @@
99
| sources.js:1:1:1:12 | new (x => x) | sources.js:1:1:1:12 | new (x => x) |
1010
| sources.js:1:5:1:12 | (x => x) | sources.js:1:5:1:12 | (x => x) |
1111
| sources.js:1:6:1:6 | x | sources.js:1:6:1:6 | x |
12-
| sources.js:1:6:1:6 | x | sources.js:1:6:1:6 | x |
1312
| sources.js:1:6:1:11 | x => x | sources.js:1:6:1:11 | x => x |
1413
| sources.js:1:11:1:11 | x | sources.js:1:11:1:11 | x |
1514
| sources.js:3:1:5:2 | (functi ... +19;\\n}) | sources.js:3:1:5:2 | (functi ... +19;\\n}) |
1615
| sources.js:3:1:5:6 | (functi ... \\n})(23) | sources.js:3:1:5:6 | (functi ... \\n})(23) |
1716
| sources.js:3:2:5:1 | functio ... x+19;\\n} | sources.js:3:2:5:1 | functio ... x+19;\\n} |
1817
| sources.js:3:11:3:11 | x | sources.js:3:11:3:11 | x |
19-
| sources.js:3:11:3:11 | x | sources.js:3:11:3:11 | x |
2018
| sources.js:4:10:4:10 | x | sources.js:4:10:4:10 | x |
2119
| sources.js:4:10:4:13 | x+19 | sources.js:4:10:4:13 | x+19 |
2220
| sources.js:4:12:4:13 | 19 | sources.js:4:12:4:13 | 19 |
2321
| sources.js:5:4:5:5 | 23 | sources.js:5:4:5:5 | 23 |
2422
| sources.js:7:1:7:3 | /x/ | sources.js:7:1:7:3 | /x/ |
2523
| sources.js:9:10:9:12 | foo | sources.js:9:10:9:12 | foo |
2624
| sources.js:9:14:9:18 | array | sources.js:9:14:9:18 | array |
27-
| sources.js:9:14:9:18 | array | sources.js:9:14:9:18 | array |
2825
| sources.js:10:12:10:14 | key | sources.js:10:12:10:14 | key |
2926
| sources.js:10:12:10:14 | key | sources.js:10:12:10:14 | key |
3027
| sources.js:10:19:10:23 | array | sources.js:10:19:10:23 | array |
@@ -61,7 +58,6 @@
6158
| tst2.ts:13:39:13:38 | ...args | tst2.ts:13:39:13:38 | ...args |
6259
| tst2.ts:13:39:13:38 | args | tst2.ts:13:39:13:38 | args |
6360
| tst2.ts:13:39:13:38 | args | tst2.ts:13:39:13:38 | args |
64-
| tst2.ts:13:39:13:38 | args | tst2.ts:13:39:13:38 | args |
6561
| tst2.ts:13:39:13:38 | constructor | tst2.ts:13:39:13:38 | constructor |
6662
| tst2.ts:13:39:13:38 | super | tst2.ts:13:39:13:38 | super |
6763
| tst2.ts:13:39:13:38 | super(...args) | tst2.ts:13:39:13:38 | super(...args) |
@@ -102,7 +98,6 @@
10298
| tst.js:16:2:20:1 | functio ... n "";\\n} | tst.js:16:2:20:1 | functio ... n "";\\n} |
10399
| tst.js:16:11:16:11 | f | tst.js:16:11:16:11 | f |
104100
| tst.js:16:13:16:13 | a | tst.js:16:13:16:13 | a |
105-
| tst.js:16:13:16:13 | a | tst.js:16:13:16:13 | a |
106101
| tst.js:17:7:17:10 | Math | tst.js:17:7:17:10 | Math |
107102
| tst.js:17:7:17:17 | Math.random | tst.js:17:7:17:17 | Math.random |
108103
| tst.js:17:7:17:19 | Math.random() | tst.js:17:7:17:19 | Math.random() |
@@ -127,7 +122,6 @@
127122
| tst.js:29:3:29:3 | x | tst.js:29:3:29:3 | x |
128123
| tst.js:32:10:32:10 | g | tst.js:32:10:32:10 | g |
129124
| tst.js:32:12:32:12 | b | tst.js:32:12:32:12 | b |
130-
| tst.js:32:12:32:12 | b | tst.js:32:12:32:12 | b |
131125
| tst.js:33:10:33:10 | x | tst.js:33:10:33:10 | x |
132126
| tst.js:35:1:35:1 | g | tst.js:35:1:35:1 | g |
133127
| tst.js:35:1:35:7 | g(true) | tst.js:35:1:35:7 | g(true) |
@@ -225,7 +219,6 @@
225219
| tst.js:87:1:96:2 | (functi ... r: 0\\n}) | tst.js:87:1:96:2 | (functi ... r: 0\\n}) |
226220
| tst.js:87:2:92:1 | functio ... + z;\\n} | tst.js:87:2:92:1 | functio ... + z;\\n} |
227221
| tst.js:87:11:87:24 | { p: x, ...o } | tst.js:87:11:87:24 | { p: x, ...o } |
228-
| tst.js:87:11:87:24 | { p: x, ...o } | tst.js:87:11:87:24 | { p: x, ...o } |
229222
| tst.js:87:13:87:13 | p | tst.js:87:13:87:13 | p |
230223
| tst.js:87:16:87:16 | x | tst.js:87:16:87:16 | x |
231224
| tst.js:87:22:87:22 | o | tst.js:87:22:87:22 | o |
@@ -258,7 +251,6 @@
258251
| tst.js:98:1:103:17 | (functi ... 3, 0 ]) | tst.js:98:1:103:17 | (functi ... 3, 0 ]) |
259252
| tst.js:98:2:103:1 | functio ... + z;\\n} | tst.js:98:2:103:1 | functio ... + z;\\n} |
260253
| tst.js:98:11:98:24 | [ x, ...rest ] | tst.js:98:11:98:24 | [ x, ...rest ] |
261-
| tst.js:98:11:98:24 | [ x, ...rest ] | tst.js:98:11:98:24 | [ x, ...rest ] |
262254
| tst.js:98:13:98:13 | x | tst.js:98:13:98:13 | x |
263255
| tst.js:98:19:98:22 | rest | tst.js:98:19:98:22 | rest |
264256
| tst.js:99:7:99:11 | [ y ] | tst.js:99:7:99:11 | [ y ] |

javascript/ql/test/library-tests/DataFlow/flowStep.expected

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
| eval.js:2:7:2:12 | x | eval.js:4:3:4:3 | x |
22
| eval.js:2:11:2:12 | 42 | eval.js:2:7:2:12 | x |
3+
| sources.js:1:6:1:6 | x | sources.js:1:6:1:6 | x |
34
| sources.js:1:6:1:6 | x | sources.js:1:11:1:11 | x |
45
| sources.js:1:6:1:11 | x => x | sources.js:1:5:1:12 | (x => x) |
56
| sources.js:1:11:1:11 | x | sources.js:1:1:1:12 | new (x => x) |
67
| sources.js:3:2:5:1 | functio ... x+19;\\n} | sources.js:3:1:5:2 | (functi ... +19;\\n}) |
8+
| sources.js:3:11:3:11 | x | sources.js:3:11:3:11 | x |
79
| sources.js:3:11:3:11 | x | sources.js:4:10:4:10 | x |
810
| sources.js:4:10:4:13 | x+19 | sources.js:3:1:5:6 | (functi ... \\n})(23) |
911
| sources.js:5:4:5:5 | 23 | sources.js:3:11:3:11 | x |
12+
| sources.js:9:14:9:18 | array | sources.js:9:14:9:18 | array |
1013
| sources.js:9:14:9:18 | array | sources.js:10:19:10:23 | array |
1114
| sources.js:9:14:9:18 | array | sources.js:11:23:11:27 | array |
1215
| sources.js:10:12:10:14 | key | sources.js:10:28:10:30 | key |
@@ -27,6 +30,7 @@
2730
| tst2.ts:11:11:11:13 | A.x | tst2.ts:11:11:11:23 | A.x as number |
2831
| tst2.ts:13:26:13:29 | List | tst2.ts:13:26:13:37 | List<string> |
2932
| tst2.ts:13:39:13:38 | args | tst2.ts:13:39:13:38 | args |
33+
| tst2.ts:13:39:13:38 | args | tst2.ts:13:39:13:38 | args |
3034
| tst.js:1:1:1:1 | x | tst.js:3:5:3:5 | x |
3135
| tst.js:1:10:1:11 | fs | tst.js:1:10:1:11 | fs |
3236
| tst.js:1:10:1:11 | fs | tst.js:7:1:7:2 | fs |
@@ -69,6 +73,7 @@
6973
| tst.js:14:5:14:5 | x | tst.js:14:1:14:9 | z ? x : y |
7074
| tst.js:14:9:14:9 | y | tst.js:14:1:14:9 | z ? x : y |
7175
| tst.js:16:2:20:1 | functio ... n "";\\n} | tst.js:16:1:20:2 | (functi ... "";\\n}) |
76+
| tst.js:16:13:16:13 | a | tst.js:16:13:16:13 | a |
7277
| tst.js:16:13:16:13 | a | tst.js:18:12:18:12 | a |
7378
| tst.js:18:12:18:12 | a | tst.js:16:1:20:9 | (functi ... ("arg") |
7479
| tst.js:19:10:19:11 | "" | tst.js:16:1:20:9 | (functi ... ("arg") |

javascript/ql/test/library-tests/DefUse/VarDefSource.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@
3232
| tst.js:11:11:11:11 | g | tst.js:11:2:15:1 | functio ... rn x;\\n} |
3333
| tst.js:12:2:12:7 | x = 42 | tst.js:12:6:12:7 | 42 |
3434
| tst.js:19:11:19:11 | x | tst.js:19:2:19:16 | function x() {} |
35-
| tst.js:26:11:26:11 | a | tst.js:26:15:26:15 | b |

javascript/ql/test/library-tests/GlobalAccessPaths/GlobalAccessPaths.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
test_getAReferenceTo
22
| other_ns.js:2:11:2:12 | ns | NS |
3+
| other_ns.js:2:11:2:12 | ns | NS |
34
| other_ns.js:3:3:3:4 | ns | NS |
45
| other_ns.js:3:3:3:8 | ns.foo | NS.foo |
56
| other_ns.js:3:3:3:12 | ns.foo.bar | NS.foo.bar |
@@ -43,6 +44,7 @@ test_getAReferenceTo
4344
| test.js:14:17:14:19 | bar | bar |
4445
| test.js:14:17:14:23 | bar.baz | bar.baz |
4546
| test.js:22:11:22:12 | ns | NS |
47+
| test.js:22:11:22:12 | ns | NS |
4648
| test.js:23:3:23:4 | ns | NS |
4749
| test.js:23:3:23:8 | ns.foo | NS.foo |
4850
| test.js:23:3:23:12 | ns.foo.bar | NS.foo.bar |
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,55 @@
11
| missing | callback.js:17:15:17:23 | "source2" | callback.js:8:16:8:20 | xs[i] |
22
| missing | callback.js:17:15:17:23 | "source2" | callback.js:12:16:12:16 | x |
3+
| missing | callback.js:17:15:17:23 | "source2" | callback.js:12:16:12:16 | x |
34
| missing | callback.js:17:15:17:23 | "source2" | callback.js:13:14:13:14 | x |
45
| missing | promises.js:1:2:1:2 | source | promises.js:6:26:6:28 | val |
6+
| missing | promises.js:1:2:1:2 | source | promises.js:6:26:6:28 | val |
57
| missing | promises.js:1:2:1:2 | source | promises.js:7:16:7:18 | val |
68
| missing | promises.js:1:2:1:2 | source | promises.js:37:11:37:11 | v |
9+
| missing | promises.js:1:2:1:2 | source | promises.js:37:11:37:11 | v |
710
| missing | promises.js:1:2:1:2 | source | promises.js:38:32:38:32 | v |
811
| missing | promises.js:2:16:2:24 | "tainted" | promises.js:6:26:6:28 | val |
12+
| missing | promises.js:2:16:2:24 | "tainted" | promises.js:6:26:6:28 | val |
913
| missing | promises.js:2:16:2:24 | "tainted" | promises.js:7:16:7:18 | val |
1014
| missing | promises.js:2:16:2:24 | "tainted" | promises.js:37:11:37:11 | v |
15+
| missing | promises.js:2:16:2:24 | "tainted" | promises.js:37:11:37:11 | v |
1116
| missing | promises.js:2:16:2:24 | "tainted" | promises.js:38:32:38:32 | v |
1217
| missing | promises.js:10:30:17:3 | exceptional return of anonymous function | promises.js:20:7:20:7 | v |
18+
| missing | promises.js:10:30:17:3 | exceptional return of anonymous function | promises.js:20:7:20:7 | v |
1319
| missing | promises.js:10:30:17:3 | exceptional return of anonymous function | promises.js:21:20:21:20 | v |
1420
| missing | promises.js:10:30:17:3 | exceptional return of anonymous function | promises.js:23:19:23:19 | v |
21+
| missing | promises.js:10:30:17:3 | exceptional return of anonymous function | promises.js:23:19:23:19 | v |
1522
| missing | promises.js:10:30:17:3 | exceptional return of anonymous function | promises.js:24:20:24:20 | v |
1623
| missing | promises.js:11:22:11:31 | "resolved" | promises.js:18:18:18:18 | v |
24+
| missing | promises.js:11:22:11:31 | "resolved" | promises.js:18:18:18:18 | v |
1725
| missing | promises.js:11:22:11:31 | "resolved" | promises.js:19:20:19:20 | v |
1826
| missing | promises.js:12:22:12:31 | "rejected" | promises.js:20:7:20:7 | v |
27+
| missing | promises.js:12:22:12:31 | "rejected" | promises.js:20:7:20:7 | v |
1928
| missing | promises.js:12:22:12:31 | "rejected" | promises.js:21:20:21:20 | v |
2029
| missing | promises.js:12:22:12:31 | "rejected" | promises.js:23:19:23:19 | v |
30+
| missing | promises.js:12:22:12:31 | "rejected" | promises.js:23:19:23:19 | v |
2131
| missing | promises.js:12:22:12:31 | "rejected" | promises.js:24:20:24:20 | v |
2232
| missing | promises.js:13:9:13:21 | exceptional return of Math.random() | promises.js:20:7:20:7 | v |
33+
| missing | promises.js:13:9:13:21 | exceptional return of Math.random() | promises.js:20:7:20:7 | v |
2334
| missing | promises.js:13:9:13:21 | exceptional return of Math.random() | promises.js:21:20:21:20 | v |
2435
| missing | promises.js:13:9:13:21 | exceptional return of Math.random() | promises.js:23:19:23:19 | v |
36+
| missing | promises.js:13:9:13:21 | exceptional return of Math.random() | promises.js:23:19:23:19 | v |
2537
| missing | promises.js:13:9:13:21 | exceptional return of Math.random() | promises.js:24:20:24:20 | v |
2638
| missing | promises.js:14:7:14:21 | exceptional return of res(res_source) | promises.js:20:7:20:7 | v |
39+
| missing | promises.js:14:7:14:21 | exceptional return of res(res_source) | promises.js:20:7:20:7 | v |
2740
| missing | promises.js:14:7:14:21 | exceptional return of res(res_source) | promises.js:21:20:21:20 | v |
2841
| missing | promises.js:14:7:14:21 | exceptional return of res(res_source) | promises.js:23:19:23:19 | v |
42+
| missing | promises.js:14:7:14:21 | exceptional return of res(res_source) | promises.js:23:19:23:19 | v |
2943
| missing | promises.js:14:7:14:21 | exceptional return of res(res_source) | promises.js:24:20:24:20 | v |
3044
| missing | promises.js:16:7:16:21 | exceptional return of rej(rej_source) | promises.js:20:7:20:7 | v |
45+
| missing | promises.js:16:7:16:21 | exceptional return of rej(rej_source) | promises.js:20:7:20:7 | v |
3146
| missing | promises.js:16:7:16:21 | exceptional return of rej(rej_source) | promises.js:21:20:21:20 | v |
3247
| missing | promises.js:16:7:16:21 | exceptional return of rej(rej_source) | promises.js:23:19:23:19 | v |
48+
| missing | promises.js:16:7:16:21 | exceptional return of rej(rej_source) | promises.js:23:19:23:19 | v |
3349
| missing | promises.js:16:7:16:21 | exceptional return of rej(rej_source) | promises.js:24:20:24:20 | v |
3450
| missing | promises.js:32:24:32:37 | "also tainted" | promises.js:37:11:37:11 | v |
51+
| missing | promises.js:32:24:32:37 | "also tainted" | promises.js:37:11:37:11 | v |
3552
| missing | promises.js:32:24:32:37 | "also tainted" | promises.js:38:32:38:32 | v |
3653
| missing | tst.js:2:17:2:22 | "src1" | tst.js:27:22:27:24 | elt |
54+
| missing | tst.js:2:17:2:22 | "src1" | tst.js:27:22:27:24 | elt |
3755
| missing | tst.js:2:17:2:22 | "src1" | tst.js:28:20:28:22 | elt |

javascript/ql/test/library-tests/ModuleImportNodes/tests.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
test_ModuleImportNode
2+
| amd1.js:1:25:1:26 | fs | fs | amd1.js:1:25:1:26 | fs | fs |
23
| amd1.js:1:25:1:26 | fs | fs | amd1.js:2:3:2:4 | fs | fs |
34
| amd2.js:2:12:2:24 | require('fs') | fs | amd2.js:3:3:3:4 | fs | fs |
45
| client1.ts:4:28:4:29 | F1 | framework1 | client1.ts:4:28:4:29 | F1 | F1 |

javascript/ql/test/library-tests/PropWrite/tests.expected

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ test_hasPropertyWrite
133133
| classes.ts:8:3:8:2 | this | parameterField | classes.ts:8:22:8:35 | parameterField |
134134
| classes.ts:12:5:12:4 | this | parameterField | classes.ts:12:24:12:37 | parameterField |
135135
| classes.ts:16:5:16:4 | this | parameterField | classes.ts:16:24:16:37 | parameterField |
136-
| classes.ts:16:5:16:4 | this | parameterField | classes.ts:16:41:16:42 | {} |
137136
| tst.js:1:11:9:1 | {\\n x ... }\\n} | f | tst.js:6:6:8:5 | () {\\n ... ;\\n } |
138137
| tst.js:1:11:9:1 | {\\n x ... }\\n} | func | tst.js:3:11:5:5 | functio ... ;\\n } |
139138
| tst.js:1:11:9:1 | {\\n x ... }\\n} | x | tst.js:2:8:2:8 | 4 |
@@ -257,7 +256,6 @@ test_PropWriteRhs
257256
| classes.ts:12:17:12:37 | public ... erField | classes.ts:12:24:12:37 | parameterField |
258257
| classes.ts:16:5:16:46 | constru ... {}) {} | classes.ts:16:5:16:46 | constru ... {}) {} |
259258
| classes.ts:16:17:16:37 | public ... erField | classes.ts:16:24:16:37 | parameterField |
260-
| classes.ts:16:17:16:37 | public ... erField | classes.ts:16:41:16:42 | {} |
261259
| tst.js:2:5:2:8 | x: 4 | tst.js:2:8:2:8 | 4 |
262260
| tst.js:3:5:5:5 | func: f ... ;\\n } | tst.js:3:11:5:5 | functio ... ;\\n } |
263261
| tst.js:6:5:8:5 | f() {\\n ... ;\\n } | tst.js:6:6:8:5 | () {\\n ... ;\\n } |

0 commit comments

Comments
 (0)