Community
Participate
Working Groups
Raising bug to track JUnit Test failure on MAC: "Test_org_eclipse_swt_custom_StyledText.test_setStyleRanges_render" Link to the JUnit test result for MAC: https://download.eclipse.org/eclipse/downloads/drops4/I20191024-1800/testresults/html/org.eclipse.swt.tests_ep414I-unit-mac64-java8_macosx.cocoa.x86_64_8.0.html
Created attachment 280637 [details] Screenshot of failing case The test was always disabled on Mac due to Bug 536588. It was enabled recently by https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=1ef69a696e82963c1b935ca9bcea9931ee143448. Bug 536588 is fixed but the test fails now due to a different reason. The Image is being captured correctly, but there is some white background still visible (see screenshot) causing the last assertFalse(hasPixel(text, text.getBackground())) to fail. I can either disable the test or just not run the failing assert on Mac.
(In reply to Lakshmi Shanmugam from comment #1) > I can either disable the test or just not run the failing assert on Mac. Either would be ok for me. Please just make sure you reference to that bug in the comment so we know what to do if we want to re-enable it later (ie better compute screenshot area).
New Gerrit change created: https://git.eclipse.org/r/152716
(In reply to Mickael Istria from comment #2) > (In reply to Lakshmi Shanmugam from comment #1) > > I can either disable the test or just not run the failing assert on Mac. > > Either would be ok for me. Please just make sure you reference to that bug > in the comment so we know what to do if we want to re-enable it later (ie > better compute screenshot area). Opened Bug 553090 to track the problem.
Gerrit change https://git.eclipse.org/r/152716 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=a47070ff8fedd627a73791f283dc0a85e0392ee1
Verified I20191119-2200