Skip to content

Commit ae06f5a

Browse files
committed
Color space is two words.
1 parent a7204d0 commit ae06f5a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/system/src/test/java/test/robot/javafx/scene/SRGBTest.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public class SRGBTest extends VisualTestBase {
6363
static final float MID = 0.50f;
6464
static final float HIGH = 0.75f;
6565

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.
6868
static final double COMPONENT_TOLERANCE = 2.0 / 255.0;
6969

7070
private enum TestColor {
@@ -95,8 +95,8 @@ private Point2D getJFXScreenCenter() {
9595
return new Point2D(centerX, centerY);
9696
}
9797

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.
100100
private Color getSRGBColorAtScreenCenter() throws Exception {
101101
float[] sRGB = {1.0f, 1,0f, 1.0f};
102102
SwingUtilities.invokeAndWait(() -> {
@@ -169,7 +169,7 @@ private Point2D findCenter(Rectangle swatch) {
169169

170170
// Tests that a color can be written out and then retrieved using a JavaFX
171171
// 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.
173173
@Test
174174
public void singlePixelTest() {
175175
Rectangle swatch = prepareStage();
@@ -188,7 +188,7 @@ public void singlePixelTest() {
188188

189189
// Tests that a color can be written out and then retrieved using a JavaFX
190190
// 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
192192
// conversions.
193193
@Test
194194
public void screenCaptureTest() {
@@ -209,7 +209,7 @@ public void screenCaptureTest() {
209209
}
210210

211211
// 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
213213
// verify that colors can be round-tripped, not that they are actually
214214
// producing sRGB onscreen.
215215
@Test

0 commit comments

Comments
 (0)