Test CTabItem rendering#3295
Conversation
ce76b95 to
3ace3b9
Compare
| /* custom */ | ||
| protected CTabFolder ctabFolder; | ||
| private Color RED; | ||
| private Color BLUE; |
There was a problem hiding this comment.
It seems odd to use an all caps name for something that’s not a constant.
There was a problem hiding this comment.
Colors in SWT depend on Display, which I access via Shell, which is initialized after test starts. I could try to use Display.getCurrent() but this would be riskier (Display can be recreated). Therefore these are constants effectively but not in practice. Should I make them lowercase?
There was a problem hiding this comment.
Actually there are now Color constructors without a device and colors need not be disposed so they don’t really depend on a display/device.
When I see an all caps name, I expect it to static final, so yes, I’d prefer the name to match general expectations…
There was a problem hiding this comment.
I've made constants final using new constructors.
Test Results 175 files - 7 175 suites - 7 27m 59s ⏱️ + 1m 10s For more details on these failures, see this check. Results for commit 0a65341. ± Comparison against base commit a4a774c. This pull request removes 19 and adds 4 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
|
Windows CI is passing, Linux and MacOS are not. The test is passing on my MacOS. Configuration issue? The test seems trivial - it should work, as long as graphical context is available. How do I get screenshots? They are saved to |
A regression test for eclipse-platform#3260 where tabs fail to render if `NSView.setClipsToBounds()` is omited before scheduling redraw. This test fails to reproduce the problem, but is useful as rendering is not tested at all in this suite.
Pixel color verification for CTabItem's tabs.
A regression test for #3260 where tabs fail to render if
NSView.setClipsToBounds()is omited before scheduling redraw.This test fails to reproduce the problem, but is useful as rendering is
not tested in this suite yet.