< prev index next >

tests/system/src/test/java/testharness/VisualTestBase.java

Print this page
rev 9453 : [mq]: 2.8144680-tests

*** 146,155 **** --- 146,160 ---- // This must be called on the FX app thread protected Color getColor(Scene scene, int x, int y) { x += scene.getX() + scene.getWindow().getX(); y += scene.getY() + scene.getWindow().getY(); + return getColor(x, y); + } + + // This must be called on the FX app thread + protected Color getColor(int x, int y) { int pixColor = robot.getPixelColor(x, y); int a = (pixColor >> 24) & 0xff; int r = (pixColor >> 16) & 0xff; int g = (pixColor >> 8) & 0xff; int b = pixColor & 0xff;
< prev index next >