Repository navigation
Commit fbbcd2c
authored
test(Switch): detach the touch controllers each test attaches (#13017)
* test(Switch): detach the touch controllers each test attaches
A test drives a tap's lift on a controller that it never detaches.
The lift starts the 300 ms wait for the browser's click. When the file
ends first, the wait outlives the test environment. Its timer then
calls removeEventListener on a window that the environment has torn
down, and Vitest reports an unhandled error for the file.
The file's afterEach now detaches every controller that its tests
attach. Detach ends the wait and clears its timer.
* Merge branch 'main' into switch-touch-test-detaches
* Merge branch 'main' into switch-touch-test-detaches1 parent 3920a07 commit fbbcd2c
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
149 | 159 | | |
150 | 160 | | |
151 | 161 | | |
| |||
450 | 460 | | |
451 | 461 | | |
452 | 462 | | |
453 | | - | |
| 463 | + | |
454 | 464 | | |
| 465 | + | |
455 | 466 | | |
456 | 467 | | |
457 | 468 | | |
| |||
531 | 542 | | |
532 | 543 | | |
533 | 544 | | |
| 545 | + | |
534 | 546 | | |
535 | 547 | | |
536 | 548 | | |
| |||
0 commit comments