Commit ff6bf58
Adding readAndDispatch() in drawImage test to make the test not flaky
The reasoning to add readAndDispatch() is to consider the case when e.gc.drawImage()'s draw request to the OS, might not have completed by the time gcCopy.copyArea() was called. Using readAndDispatch() is to ensure all OS events are processed, so there’s no pending work left.1 parent 60de8f9 commit ff6bf58
File tree
1 file changed
+2
-0
lines changed- tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
| 283 | + | |
282 | 284 | | |
283 | 285 | | |
284 | 286 | | |
| |||
0 commit comments