ScrollEventTest.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:openjfx-8u-dev-tests 作者:
/**
 * This test checks that context menu appears
 * but there are no other popup windows
 *
 * Input: each control gets right mouse click
 * Expected output: only one new window appears on the stage
 *
 */
@Smoke
@Test(timeout=300000)
public void contextMenuPopupTest() {
    enableContextMenuTest();

    for (Object nf : nodeChooser.as(Selectable.class).getStates()) {
        nodeChooser.as(Selectable.class).selector().select(nf);

        targetControl = parent.lookup(Node.class, new ByID<Node>(ID_TARGET_NODE)).wrap();
        targetControl.mouse().click(1, targetControl.getClickPoint(), Mouse.MouseButtons.BUTTON3);

        Lookup<Scene> popUpLookup = Root.ROOT.lookup(new ByWindowType(PopupWindow.class)).lookup(Scene.class);
        assertEquals("There must be only one popup window for control <" + nf + ">", 1, popUpLookup.size());
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号