< prev index next >
functional/ControlsTests/test/javafx/scene/control/test/treeview/TestBase.java
Print this page
*** 319,329 ****
}
protected void checkScrollingState(final double scrollValue, boolean beginVisible, boolean endVisible, int size) {
testedControl.waitState(new State() {
public Object reached() {
! Wrap<? extends ScrollBar> sb = findScrollBar(testedControl.as(Parent.class, Node.class), Orientation.VERTICAL, true);
if (Math.abs(sb.getControl().getValue() - scrollValue) < 0.01) {
return true;
} else {
return null;
}
--- 319,329 ----
}
protected void checkScrollingState(final double scrollValue, boolean beginVisible, boolean endVisible, int size) {
testedControl.waitState(new State() {
public Object reached() {
! Wrap<? extends ScrollBar> sb = findScrollBar((Parent<Node>)testedControl.as(Parent.class, Node.class), Orientation.VERTICAL, true);
if (Math.abs(sb.getControl().getValue() - scrollValue) < 0.01) {
return true;
} else {
return null;
}
< prev index next >