" }",
"}");
canvas.refresh();
List<CanvasInfo> children = canvas.getChildren(CanvasInfo.class);
//
TabSetInfo tabSet = (TabSetInfo) children.get(0);
assertThat(tabSet.getTabs().size()).isEqualTo(1);
CanvasInfo label = children.get(1);
// add label to TabSet
tabSet.command_MOVE(label, null);
assertEditor(
"public class Test implements EntryPoint {",
" public void onModuleLoad() {",
" Canvas canvas = new Canvas();",
" TabSet tabSet = new TabSet();",
" {",
" Tab tab = new Tab('newTab');",
" Button button = new Button('New Button');",
" tab.setPane(button);",
" tabSet.addTab(tab);",
" }",
" {",
" Tab tab = new Tab('newTab');",
" com.smartgwt.client.widgets.Label label = new com.smartgwt.client.widgets.Label();",
" tab.setPane(label);",
" tabSet.addTab(tab);",
" }",
" canvas.addChild(tabSet);",
" canvas.draw();",
" }",
"}");
// move label to first position
tabSet.command_MOVE(label, tabSet.getTabs().get(0));
assertEditor(
"public class Test implements EntryPoint {",
" public void onModuleLoad() {",
" Canvas canvas = new Canvas();",
" TabSet tabSet = new TabSet();",