Commit a726779
committed
Make Shell.setSize() test compatible with fractional scaling
The test case test_setSizeLorg_eclipse_swt_graphics_Point in
Test_org_eclipse_swt_widgets_Shell sporadically fails in I-Builds and
constantly fails when executed locally on a non-100% monitor. Due to
rounding of the point-based size when converting to pixels upon setting
the shell size, the value yielded by getSize() used for result
validation is not necessarily equal. This change adapts the test case to
apply an according tolerance value whenever the shell zoom is not 100%.1 parent aa1dbb8 commit a726779
1 file changed
Lines changed: 13 additions & 2 deletions
File tree
- tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
807 | 807 | | |
808 | 808 | | |
809 | 809 | | |
810 | | - | |
| 810 | + | |
811 | 811 | | |
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
817 | | - | |
| 817 | + | |
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
824 | 835 | | |
825 | 836 | | |
826 | 837 | | |
| |||
0 commit comments