/**
* Test dispose objects when it been not rendered.
*/
public void test_dispose() throws Exception {
TabSetInfo tabSet =
parseJavaInfo(new String[]{
"public class Test implements EntryPoint {",
" public void onModuleLoad() {",
" TabSet tabSet = new TabSet();",
" tabSet.addTab(new Tab('Tab_1'));",
" Tab tab = new Tab('Tab_2');",
" {",
" SectionStack stack = new SectionStack();",
" SectionStackSection sectionStackSection = new SectionStackSection('New Section');",
" sectionStackSection.setExpanded(false);",
" {",
" Canvas canvas = new Canvas();",
" sectionStackSection.addItem(canvas);",
" }",
" stack.addSection(sectionStackSection);",
" tab.setPane(stack);",
" }",
" tabSet.addTab(tab);",
" tabSet.draw();",
" }",
"}"});
tabSet.refresh();
}