Repository navigation
Commit a2ec1dd
committed
test: check the own window's size, not its content, in window capture
ownWindowFramesFollowWindow failed once in a full run: after the window
turned white, its frames stayed black. Its capture was running, but the
window had not been redrawn. A window of a test process that is not in
front may not be redrawn in time, and it cannot be put on top, since
WindowCapturer lists only windows of the normal level. The test now
checks that the window is captured at its size, and that the capture
ends when the window closes. Content is checked on another process's
window, which is now ordered to the front.1 parent 275f452 commit a2ec1dd
2 files changed
Lines changed: 12 additions & 11 deletions
File tree
- webrtc/src/test/java/dev/onvoid/webrtc/media/video
- desktop
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
287 | 291 | | |
288 | 292 | | |
289 | 293 | | |
| |||
299 | 303 | | |
300 | 304 | | |
301 | 305 | | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
| 306 | + | |
308 | 307 | | |
309 | | - | |
| 308 | + | |
310 | 309 | | |
311 | | - | |
| 310 | + | |
312 | 311 | | |
313 | 312 | | |
314 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
0 commit comments