Commit 47bc499
committed
Stabilize QuickAccessDialogTest UI-responsiveness check
testLongRunningComputerDoesntFreezeUI measured UI blocking via the
DisplayHelper.waitForCondition tick, whose loop parks in Display.sleep()
when idle. While the second dialog restored a previous pick on the worker
thread the UI thread was idle, not frozen, but the idle interval was
counted as a block and intermittently exceeded the 3s threshold on macOS.
Probe responsiveness with a self-rescheduling Display.timerExec instead:
the timer keeps firing while the UI thread can dispatch events, so idle
waiting registers as short gaps while a genuine freeze still produces a
large one.1 parent 55ec079 commit 47bc499
1 file changed
Lines changed: 25 additions & 11 deletions
File tree
- tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/quickaccess
Lines changed: 25 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
220 | 224 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
231 | 245 | | |
232 | 246 | | |
233 | 247 | | |
| |||
0 commit comments