protected void extraTestingForLongItem() {
list.as(Selectable.class).selector().select("string");
//check that right side of the long item is within the listview
final Wrap<? extends ListCell> longCell = list.as(Parent.class, Node.class).
lookup(ListCell.class, new LookupCriteria<ListCell>() {
public boolean check(ListCell cntrl) {
return cntrl.getItem() != null &&
cntrl.getItem().toString().contains(ListViewApp.createLongItem(0));
}
}).wrap();
longCell.waitState(new State() {
public Object reached() {
Rectangle bounds = longCell.getScreenBounds();
Rectangle listBounds = list.getScreenBounds();
return ((bounds.x + bounds.width) >= listBounds.x) &&
((bounds.x + bounds.width) <= (listBounds.x+ listBounds.width)) ?
true : null;
}
});
}
HListViewAddRemoveTest.java 文件源码
java
阅读 41
收藏 0
点赞 0
评论 0
项目:openjfx-8u-dev-tests
作者:
评论列表
文章目录