Skip to content

Commit 7546aa1

Browse files
committed
JS: Benign test output changes
1 parent a96806b commit 7546aa1

File tree

19 files changed

+48
-173
lines changed

19 files changed

+48
-173
lines changed

javascript/ql/test/library-tests/Arrays/printAst.expected

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
nodes
2-
| arrays.js:1:1:148:2 | [ParExpr] (functi ... } }) | semmle.label | [ParExpr] (functi ... } }) |
32
| arrays.js:1:1:148:3 | [ExprStmt] (functi ... } }); | semmle.label | [ExprStmt] (functi ... } }); |
43
| arrays.js:1:1:148:3 | [ExprStmt] (functi ... } }); | semmle.order | 1 |
54
| arrays.js:1:2:148:1 | [FunctionExpr] functio ... K } } | semmle.label | [FunctionExpr] functio ... K } } |
@@ -730,10 +729,8 @@ nodes
730729
| file://:0:0:0:0 | (Parameters) | semmle.label | (Parameters) |
731730
| file://:0:0:0:0 | (Parameters) | semmle.label | (Parameters) |
732731
edges
733-
| arrays.js:1:1:148:2 | [ParExpr] (functi ... } }) | arrays.js:1:2:148:1 | [FunctionExpr] functio ... K } } | semmle.label | 1 |
734-
| arrays.js:1:1:148:2 | [ParExpr] (functi ... } }) | arrays.js:1:2:148:1 | [FunctionExpr] functio ... K } } | semmle.order | 1 |
735-
| arrays.js:1:1:148:3 | [ExprStmt] (functi ... } }); | arrays.js:1:1:148:2 | [ParExpr] (functi ... } }) | semmle.label | 1 |
736-
| arrays.js:1:1:148:3 | [ExprStmt] (functi ... } }); | arrays.js:1:1:148:2 | [ParExpr] (functi ... } }) | semmle.order | 1 |
732+
| arrays.js:1:1:148:3 | [ExprStmt] (functi ... } }); | arrays.js:1:2:148:1 | [FunctionExpr] functio ... K } } | semmle.label | 1 |
733+
| arrays.js:1:1:148:3 | [ExprStmt] (functi ... } }); | arrays.js:1:2:148:1 | [FunctionExpr] functio ... K } } | semmle.order | 1 |
737734
| arrays.js:1:2:148:1 | [FunctionExpr] functio ... K } } | arrays.js:1:14:148:1 | [BlockStmt] { let ... K } } | semmle.label | 5 |
738735
| arrays.js:1:2:148:1 | [FunctionExpr] functio ... K } } | arrays.js:1:14:148:1 | [BlockStmt] { let ... K } } | semmle.order | 5 |
739736
| arrays.js:1:14:148:1 | [BlockStmt] { let ... K } } | arrays.js:2:3:2:24 | [DeclStmt] let source = ... | semmle.label | 1 |

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,7 @@
722722
| short-circuit | 9 | y | 9 | guard: y is false |
723723
| short-circuit | 9 | y | 9 | guard: y is true |
724724
| short-circuit | 11 | z | 13 | (d\\n\|\|\\ne)\\n&&\\nf; |
725-
| short-circuit | 13 | (d\\n\|\|\\ne) | 13 | d\\n\|\|\\ne |
726-
| short-circuit | 13 | (d\\n\|\|\\ne)\\n&&\\nf | 13 | (d\\n\|\|\\ne) |
725+
| short-circuit | 13 | (d\\n\|\|\\ne)\\n&&\\nf | 13 | d\\n\|\|\\ne |
727726
| short-circuit | 13 | (d\\n\|\|\\ne)\\n&&\\nf; | 13 | (d\\n\|\|\\ne)\\n&&\\nf |
728727
| short-circuit | 13 | d | 13 | guard: d is false |
729728
| short-circuit | 13 | d | 13 | guard: d is true |

javascript/ql/test/library-tests/CallGraphs/FullTest/tests.expected

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ test_getAFunctionValue
4848
| b.js:2:8:2:24 | function bar() {} | b.js:2:8:2:24 | function bar() {} |
4949
| c.js:1:16:1:27 | function(){} | c.js:1:16:1:27 | function(){} |
5050
| c.js:2:8:2:24 | function bar() {} | c.js:2:8:2:24 | function bar() {} |
51-
| classes.js:1:1:19:2 | (functi ... o();\\n}) | classes.js:1:2:19:1 | functio ... lo();\\n} |
5251
| classes.js:1:2:19:1 | functio ... lo();\\n} | classes.js:1:2:19:1 | functio ... lo();\\n} |
5352
| classes.js:2:3:10:3 | class A ... }\\n } | classes.js:2:11:2:10 | () {} |
5453
| classes.js:2:9:2:9 | A | classes.js:2:11:2:10 | () {} |
@@ -73,7 +72,6 @@ test_getAFunctionValue
7372
| es2015.js:10:5:10:20 | arguments.callee | es2015.js:8:2:12:1 | functio ... \\n };\\n} |
7473
| es2015.js:10:5:10:22 | arguments.callee() | es2015.js:9:10:11:3 | () => { ... ();\\n } |
7574
| es2015.js:14:1:18:1 | class S ... ;\\n }\\n} | es2015.js:15:14:17:3 | () {\\n ... ();\\n } |
76-
| es2015.js:14:19:14:47 | ("Wait ... eClass) | es2015.js:2:14:4:3 | () {\\n ... ");\\n } |
7775
| es2015.js:14:20:14:46 | "Wait f ... leClass | es2015.js:2:14:4:3 | () {\\n ... ");\\n } |
7876
| es2015.js:14:35:14:46 | ExampleClass | es2015.js:2:14:4:3 | () {\\n ... ");\\n } |
7977
| es2015.js:15:14:17:3 | () {\\n ... ();\\n } | es2015.js:15:14:17:3 | () {\\n ... ();\\n } |
@@ -93,7 +91,6 @@ test_getAFunctionValue
9391
| m.js:3:1:3:16 | module.exports.f | m.js:1:13:1:25 | function() {} |
9492
| n.js:2:1:2:3 | m.f | m.js:1:13:1:25 | function() {} |
9593
| n.js:5:1:5:4 | m2.f | m2.js:2:6:2:18 | function() {} |
96-
| non-strict.js:1:1:8:2 | (functi ... ode.\\n}) | non-strict.js:1:2:8:1 | functio ... mode.\\n} |
9794
| non-strict.js:1:2:8:1 | functio ... mode.\\n} | non-strict.js:1:2:8:1 | functio ... mode.\\n} |
9895
| non-strict.js:3:5:5:5 | functio ... ;\\n } | non-strict.js:3:5:5:5 | functio ... ;\\n } |
9996
| non-strict.js:3:14:3:16 | foo | non-strict.js:3:5:5:5 | functio ... ;\\n } |
@@ -121,10 +118,8 @@ test_getAFunctionValue
121118
| reflection.js:7:1:7:3 | add | reflection.js:1:1:3:1 | functio ... x+y;\\n} |
122119
| reflection.js:8:1:8:3 | add | reflection.js:1:1:3:1 | functio ... x+y;\\n} |
123120
| reflection.js:8:1:8:9 | add.apply | reflection.js:5:15:5:39 | functio ... n 56; } |
124-
| strict2.js:2:1:10:2 | (functi ... ode.\\n}) | strict2.js:2:2:10:1 | functio ... mode.\\n} |
125121
| strict2.js:2:2:10:1 | functio ... mode.\\n} | strict2.js:2:2:10:1 | functio ... mode.\\n} |
126122
| strict2.js:5:5:7:5 | functio ... ;\\n } | strict2.js:5:5:7:5 | functio ... ;\\n } |
127-
| strict.js:1:1:8:2 | (functi ... ode.\\n}) | strict.js:1:2:8:1 | functio ... mode.\\n} |
128123
| strict.js:1:2:8:1 | functio ... mode.\\n} | strict.js:1:2:8:1 | functio ... mode.\\n} |
129124
| strict.js:3:5:5:5 | functio ... ;\\n } | strict.js:3:5:5:5 | functio ... ;\\n } |
130125
| taggedTemplate.js:1:1:3:1 | functio ... 2) {\\n\\n} | taggedTemplate.js:1:1:3:1 | functio ... 2) {\\n\\n} |
@@ -168,7 +163,6 @@ test_getAFunctionValue
168163
| tst.js:22:3:22:3 | k | tst.js:2:9:2:21 | function() {} |
169164
| tst.js:24:5:24:5 | f | tst.js:1:1:1:15 | function f() {} |
170165
| tst.js:25:5:25:5 | g | tst.js:2:9:2:21 | function() {} |
171-
| tst.js:27:1:27:14 | (function(){}) | tst.js:27:2:27:13 | function(){} |
172166
| tst.js:27:2:27:13 | function(){} | tst.js:27:2:27:13 | function(){} |
173167
| tst.js:28:2:28:13 | function(){} | tst.js:28:2:28:13 | function(){} |
174168
| tst.js:32:6:34:3 | functio ... ();\\n\\t\\t} | tst.js:32:6:34:3 | functio ... ();\\n\\t\\t} |
@@ -209,7 +203,6 @@ test_getAFunctionValue
209203
| tst.js:61:1:61:13 | C.prototype.g | tst.js:61:17:61:29 | function() {} |
210204
| tst.js:61:1:61:29 | C.proto ... on() {} | tst.js:61:17:61:29 | function() {} |
211205
| tst.js:61:17:61:29 | function() {} | tst.js:61:17:61:29 | function() {} |
212-
| tst.js:63:1:67:2 | (functi ... f();\\n}) | tst.js:63:2:67:1 | functio ... .f();\\n} |
213206
| tst.js:63:2:67:1 | functio ... .f();\\n} | tst.js:63:2:67:1 | functio ... .f();\\n} |
214207
| tst.js:64:17:64:17 | B | tst.js:50:1:50:15 | function B() {} |
215208
| tst.js:65:5:65:7 | b.f | tst.js:65:11:65:23 | function() {} |
@@ -364,7 +357,7 @@ test_getCalleeNode
364357
| n.js:2:1:2:5 | m.f() | n.js:2:1:2:3 | m.f |
365358
| n.js:4:10:4:24 | require('./m2') | n.js:4:10:4:16 | require |
366359
| n.js:5:1:5:6 | m2.f() | n.js:5:1:5:4 | m2.f |
367-
| non-strict.js:1:1:8:4 | (functi ... e.\\n})() | non-strict.js:1:1:8:2 | (functi ... ode.\\n}) |
360+
| non-strict.js:1:1:8:4 | (functi ... e.\\n})() | non-strict.js:1:2:8:1 | functio ... mode.\\n} |
368361
| non-strict.js:7:10:7:14 | foo() | non-strict.js:7:10:7:12 | foo |
369362
| protoclass.js:4:3:4:13 | this.init() | protoclass.js:4:3:4:11 | this.init |
370363
| protoclass.js:8:3:8:15 | this.method() | protoclass.js:8:3:8:13 | this.method |
@@ -375,9 +368,9 @@ test_getCalleeNode
375368
| reflection.js:7:1:7:22 | reflective call | reflection.js:7:1:7:3 | add |
376369
| reflection.js:8:1:8:25 | add.app ... 3, 19]) | reflection.js:8:1:8:9 | add.apply |
377370
| reflection.js:8:1:8:25 | reflective call | reflection.js:8:1:8:3 | add |
378-
| strict2.js:2:1:10:4 | (functi ... e.\\n})() | strict2.js:2:1:10:2 | (functi ... ode.\\n}) |
371+
| strict2.js:2:1:10:4 | (functi ... e.\\n})() | strict2.js:2:2:10:1 | functio ... mode.\\n} |
379372
| strict2.js:9:10:9:14 | foo() | strict2.js:9:10:9:12 | foo |
380-
| strict.js:1:1:8:4 | (functi ... e.\\n})() | strict.js:1:1:8:2 | (functi ... ode.\\n}) |
373+
| strict.js:1:1:8:4 | (functi ... e.\\n})() | strict.js:1:2:8:1 | functio ... mode.\\n} |
381374
| strict.js:7:10:7:14 | foo() | strict.js:7:10:7:12 | foo |
382375
| taggedTemplate.js:5:1:5:35 | fooTag` ... {arg2}` | taggedTemplate.js:5:1:5:6 | fooTag |
383376
| tst.js:6:1:6:3 | f() | tst.js:6:1:6:1 | f |
@@ -393,7 +386,7 @@ test_getCalleeNode
393386
| tst.js:22:1:22:4 | l(k) | tst.js:22:1:22:1 | l |
394387
| tst.js:24:1:24:7 | new f() | tst.js:24:5:24:5 | f |
395388
| tst.js:25:1:25:5 | new g | tst.js:25:5:25:5 | g |
396-
| tst.js:27:1:27:16 | (function(){})() | tst.js:27:1:27:14 | (function(){}) |
389+
| tst.js:27:1:27:16 | (function(){})() | tst.js:27:2:27:13 | function(){} |
397390
| tst.js:28:2:28:15 | function(){}() | tst.js:28:2:28:13 | function(){} |
398391
| tst.js:33:4:33:11 | this.g() | tst.js:33:4:33:9 | this.g |
399392
| tst.js:41:1:41:5 | o.f() | tst.js:41:1:41:3 | o.f |

0 commit comments

Comments
 (0)