" menu.setItems(menuItem, new MenuItemSeparator());",
" canvas.setContextMenu(menu);",
" canvas.draw();",
" }",
"}"});
canvas.refresh();
MenuInfo menu = canvas.getChildren(MenuInfo.class).get(0);
//
List<MenuItemInfo> items = menu.getItems();
assertThat(items.size()).isEqualTo(2);
MenuItemInfo item = items.get(0);