" RootPanel rootPanel = RootPanel.get();",
" MyPanel myPanel = new MyPanel();",
" rootPanel.add(myPanel);",
" }",
"}");
frame.refresh();
assertHierarchy(
"{RootPanel.get()} {local-unique: rootPanel} {/RootPanel.get()/ /rootPanel.add(myPanel)/}",
" {new: test.client.MyPanel} {local-unique: myPanel} {/new MyPanel()/ /rootPanel.add(myPanel)/}",
" {method: public com.google.gwt.user.client.ui.FlowPanel test.client.MyPanel.getContainer()} {property} {}",
" {method: public com.google.gwt.user.client.ui.Button test.client.MyPanel.getButton()} {property} {}");