@@ -63,8 +63,8 @@ public class SRGBTest extends VisualTestBase {
63
63
static final float MID = 0.50f ;
64
64
static final float HIGH = 0.75f ;
65
65
66
- // The component tolerance is chosen to allow one bit of rounding variance
67
- // when writing a color out and another bit when reading it back in.
66
+ // The component tolerance allows one bit of rounding when writing a color
67
+ // out and another bit when reading it back in.
68
68
static final double COMPONENT_TOLERANCE = 2.0 / 255.0 ;
69
69
70
70
private enum TestColor {
@@ -95,8 +95,8 @@ private Point2D getJFXScreenCenter() {
95
95
return new Point2D (centerX , centerY );
96
96
}
97
97
98
- // We use an AWT Robot since it is colorspace- aware and will correctly convert
99
- // from the screeen's colorspace to sRGB.
98
+ // We use an AWT Robot since it is color space aware and will correctly convert
99
+ // from the screeen's color space to sRGB.
100
100
private Color getSRGBColorAtScreenCenter () throws Exception {
101
101
float [] sRGB = {1.0f , 1 ,0f , 1.0f };
102
102
SwingUtilities .invokeAndWait (() -> {
@@ -169,7 +169,7 @@ private Point2D findCenter(Rectangle swatch) {
169
169
170
170
// Tests that a color can be written out and then retrieved using a JavaFX
171
171
// Robot's getPixelColor call. This can fail if the drawing code and the
172
- // Robot have mismatched policies for handling colorspace conversions.
172
+ // Robot have mismatched policies for handling color space conversions.
173
173
@ Test
174
174
public void singlePixelTest () {
175
175
Rectangle swatch = prepareStage ();
@@ -188,7 +188,7 @@ public void singlePixelTest() {
188
188
189
189
// Tests that a color can be written out and then retrieved using a JavaFX
190
190
// Robot's getScreenCapture call. This can fail if the drawing code and
191
- // the Robot have mismatched policies for handling colorspace
191
+ // the Robot have mismatched policies for handling color space
192
192
// conversions.
193
193
@ Test
194
194
public void screenCaptureTest () {
@@ -209,7 +209,7 @@ public void screenCaptureTest() {
209
209
}
210
210
211
211
// Tests that pixels are correctly written out as sRGB using an AWT Robot
212
- // that is colorspace- aware. The singlePixel and screenCapture tests only
212
+ // that is color space aware. The singlePixel and screenCapture tests only
213
213
// verify that colors can be round-tripped, not that they are actually
214
214
// producing sRGB onscreen.
215
215
@ Test
0 commit comments