Repository navigation
Commit e4b3151
committed
test(webview): pin the tab panel's listener tracking as well
The case added for the sidebar leaves the tab branch's onDidChangeViewState subscription
unobserved, so dropping the push that records it in the provider's disposable list changes nothing
any test can see: the subscription then leaks on panel close, and no assertion notices. Same shape
as the sidebar registrations that the mutation run already caught.
The panel-shaped case resolves a WebviewPanel stand-in, asserts its view-state subscription lands in
the same list every other registration uses and is not disposed while the panel is live, and asserts
the provider's disposal releases it exactly once and empties the list.
Measured control: replacing the push with a bare reference leaves the subscription untracked and the
case fails with "expected [ { dispose: [Function Mock] }, ...(2) ] to include { dispose: [Function
Mock] }"; restored byte-identically -> green. Unit-shaped mutation run over the three commits on this
branch (base 2860e2b, 7 changed executable lines, test paths excluded): 5 mutants, 5 killed, 0
surviving, 0 uncovered.1 parent 5e44ab0 commit e4b3151
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2952 | 2952 | | |
2953 | 2953 | | |
2954 | 2954 | | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
2955 | 2979 | | |
2956 | 2980 | | |
2957 | 2981 | | |
| |||
0 commit comments