functional/ControlsTests/test/javafx/scene/control/test/pagination/TestBase.java

Print this page

        

*** 22,32 **** * or visit www.oracle.com if you need additional information or have any * questions. */ package javafx.scene.control.test.pagination; ! import com.sun.javafx.scene.control.skin.LabeledText; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import javafx.geometry.Orientation; import javafx.scene.Node; --- 22,32 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package javafx.scene.control.test.pagination; ! import com.sun.javafx.scene.control.LabeledText; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import javafx.geometry.Orientation; import javafx.scene.Node;
*** 145,155 **** } }, 1); } protected void checkScrollingOfFormComponentScrollBar() { ! Wrap<? extends ScrollBar> scrollBar = findScrollBar(testedControl.as(Parent.class, Node.class), Orientation.HORIZONTAL, true); scrollBar.mouse().turnWheel(-1); testedControl.waitState(new State<Integer>() { public Integer reached() { return Integer.parseInt(findTextField(FORM_SCROLL_TEXT_FIELD_ID).getControl().getText()); } --- 145,155 ---- } }, 1); } protected void checkScrollingOfFormComponentScrollBar() { ! Wrap<? extends ScrollBar> scrollBar = findScrollBar((Parent<Node>)testedControl.as(Parent.class, Node.class), Orientation.HORIZONTAL, true); scrollBar.mouse().turnWheel(-1); testedControl.waitState(new State<Integer>() { public Integer reached() { return Integer.parseInt(findTextField(FORM_SCROLL_TEXT_FIELD_ID).getControl().getText()); }
*** 271,281 **** assertTrue(sb.getMin() == sb.getValue()); } } protected Wrap<? extends ScrollBar> getScrollbarWrap(boolean visible) { ! return findScrollBar(testedControl.as(Parent.class, Node.class), Orientation.VERTICAL, visible); } protected void checkNumberOfVisiblePageIndeces(int expectedIndeces) { checkRightPageIndecesOrderAndContinuousOrder(); Wrap<? extends LabeledText>[] array = getSortedPageIndeces(); --- 271,281 ---- assertTrue(sb.getMin() == sb.getValue()); } } protected Wrap<? extends ScrollBar> getScrollbarWrap(boolean visible) { ! return findScrollBar((Parent<Node>)testedControl.as(Parent.class, Node.class), Orientation.VERTICAL, visible); } protected void checkNumberOfVisiblePageIndeces(int expectedIndeces) { checkRightPageIndecesOrderAndContinuousOrder(); Wrap<? extends LabeledText>[] array = getSortedPageIndeces();