Skip to content

Commit 5512846

Browse files
committed
JS: Update TypeTracking test
1 parent bd6768e commit 5512846

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

javascript/ql/test/library-tests/TypeTracking/ClassStyle.expected

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ test_ApiObject
44
| tst.js:16:10:16:30 | api.cha ... hain2() |
55
| tst.js:62:40:62:51 | api.chain1() |
66
| tst.js:62:40:62:60 | api.cha ... hain2() |
7+
| tst.js:63:38:63:49 | api.chain1() |
8+
| tst.js:63:38:63:58 | api.cha ... hain2() |
9+
| tst_conflict.js:3:11:3:21 | new myapi() |
10+
| tst_conflict.js:6:38:6:49 | api.chain1() |
11+
| tst_conflict.js:6:38:6:58 | api.cha ... hain2() |
712
test_Connection
813
| tst.js:7:15:7:18 | conn |
914
| tst.js:11:5:11:19 | this.connection |
@@ -15,7 +20,9 @@ test_Connection
1520
| tst.js:54:37:54:51 | getConnection() |
1621
| tst.js:57:14:57:48 | config. ... ction') |
1722
| tst.js:62:40:62:79 | api.cha ... ction() |
18-
| tst.js:66:14:66:47 | MyAppli ... nection |
23+
| tst.js:63:38:63:77 | api.cha ... ction() |
24+
| tst.js:67:14:67:47 | MyAppli ... nection |
25+
| tst_conflict.js:6:38:6:77 | api.cha ... ction() |
1926
test_DataCallback
2027
| tst.js:10:11:10:12 | cb |
2128
| tst.js:21:1:23:1 | functio ... ata);\\n} |
@@ -26,11 +33,11 @@ test_DataCallback
2633
| tst.js:45:19:45:20 | cb |
2734
| tst.js:48:32:48:60 | identit ... llback) |
2835
| tst.js:58:16:58:22 | x => {} |
29-
| tst.js:67:16:69:3 | data => ... a);\\n } |
36+
| tst.js:68:16:70:3 | data => ... a);\\n } |
3037
test_DataValue
3138
| tst.js:21:18:21:21 | data |
3239
| tst.js:25:19:25:22 | data |
3340
| tst.js:33:17:33:20 | data |
3441
| tst.js:38:10:38:13 | data |
3542
| tst.js:58:16:58:16 | x |
36-
| tst.js:67:16:67:19 | data |
43+
| tst.js:68:16:68:19 | data |

javascript/ql/test/library-tests/TypeTracking/PredicateStyle.expected

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ apiObject
44
| tst.js:16:10:16:30 | api.cha ... hain2() |
55
| tst.js:62:40:62:51 | api.chain1() |
66
| tst.js:62:40:62:60 | api.cha ... hain2() |
7+
| tst.js:63:38:63:49 | api.chain1() |
8+
| tst.js:63:38:63:58 | api.cha ... hain2() |
9+
| tst_conflict.js:3:11:3:21 | new myapi() |
10+
| tst_conflict.js:6:38:6:49 | api.chain1() |
11+
| tst_conflict.js:6:38:6:58 | api.cha ... hain2() |
712
connection
813
| type tracker with call steps | tst.js:7:15:7:18 | conn |
914
| type tracker with call steps | tst.js:11:5:11:19 | this.connection |
@@ -16,8 +21,12 @@ connection
1621
| type tracker without call steps | tst.js:54:37:54:51 | getConnection() |
1722
| type tracker without call steps | tst.js:57:14:57:48 | config. ... ction') |
1823
| type tracker without call steps | tst.js:62:40:62:79 | api.cha ... ction() |
19-
| type tracker without call steps | tst.js:66:14:66:47 | MyAppli ... nection |
24+
| type tracker without call steps | tst.js:63:38:63:77 | api.cha ... ction() |
25+
| type tracker without call steps | tst.js:67:14:67:47 | MyAppli ... nection |
26+
| type tracker without call steps | tst_conflict.js:6:38:6:77 | api.cha ... ction() |
2027
| type tracker without call steps with property MyApplication.namespace.connection | file://:0:0:0:0 | global access path |
28+
| type tracker without call steps with property conflict | tst.js:63:3:63:25 | MyAppli ... mespace |
29+
| type tracker without call steps with property conflict | tst_conflict.js:6:3:6:25 | MyAppli ... mespace |
2130
| type tracker without call steps with property connection | tst.js:62:3:62:25 | MyAppli ... mespace |
2231
dataCallback
2332
| tst.js:10:11:10:12 | cb |
@@ -29,11 +38,11 @@ dataCallback
2938
| tst.js:45:19:45:20 | cb |
3039
| tst.js:48:32:48:60 | identit ... llback) |
3140
| tst.js:58:16:58:22 | x => {} |
32-
| tst.js:67:16:69:3 | data => ... a);\\n } |
41+
| tst.js:68:16:70:3 | data => ... a);\\n } |
3342
dataValue
3443
| tst.js:21:18:21:21 | data |
3544
| tst.js:25:19:25:22 | data |
3645
| tst.js:33:17:33:20 | data |
3746
| tst.js:38:10:38:13 | data |
3847
| tst.js:58:16:58:16 | x |
39-
| tst.js:67:16:67:19 | data |
48+
| tst.js:68:16:68:19 | data |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function useConnection() {
7070
});
7171

7272
let conflict = MyApplication.namespace.conflict;
73-
conn.getData(data => {
73+
conflict.getData(data => {
7474
useData(data);
7575
});
7676
}

0 commit comments

Comments
 (0)