Skip to content

Commit d557c76

Browse files
committed
JS: Update a test that now has more precise output
1 parent 1efef2c commit d557c76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

javascript/ql/test/library-tests/TaintTracking/BasicTaintTracking.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ legacyDataFlowDifference
3636
| sanitizer-guards.js:57:11:57:18 | source() | sanitizer-guards.js:64:8:64:8 | x | only flow with NEW data flow library |
3737
| spread.js:4:15:4:22 | source() | spread.js:18:8:18:8 | y | only flow with NEW data flow library |
3838
| spread.js:4:15:4:22 | source() | spread.js:24:8:24:8 | y | only flow with NEW data flow library |
39+
| tst.js:2:13:2:20 | source() | tst.js:17:10:17:10 | a | only flow with OLD data flow library |
3940
| use-use-after-implicit-read.js:7:17:7:24 | source() | use-use-after-implicit-read.js:15:10:15:10 | x | only flow with NEW data flow library |
4041
consistencyIssue
4142
| nested-props.js:20 | expected an alert, but found none | NOT OK - but not found | Consistency |
@@ -280,7 +281,6 @@ flow
280281
| tst.js:2:13:2:20 | source() | tst.js:4:10:4:10 | x |
281282
| tst.js:2:13:2:20 | source() | tst.js:5:10:5:22 | "/" + x + "!" |
282283
| tst.js:2:13:2:20 | source() | tst.js:14:10:14:17 | x.sort() |
283-
| tst.js:2:13:2:20 | source() | tst.js:17:10:17:10 | a |
284284
| tst.js:2:13:2:20 | source() | tst.js:19:10:19:10 | a |
285285
| tst.js:2:13:2:20 | source() | tst.js:23:10:23:10 | b |
286286
| tst.js:2:13:2:20 | source() | tst.js:25:10:25:16 | x.pop() |

javascript/ql/test/library-tests/TaintTracking/tst.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function test() {
1414
sink(x.sort()); // NOT OK
1515

1616
var a = [];
17-
sink(a); // NOT OK (flow-insensitive treatment of `a`)
17+
sink(a); // OK
1818
a.push(x);
1919
sink(a); // NOT OK
2020

0 commit comments

Comments
 (0)