4950515253545556575859
"// filler filler filler filler filler", "public class Test extends HorizontalPanel {", " public Test() {", " }", "}"); panel.refresh(); // initial size { Rectangle bounds = panel.getBounds(); assertEquals(450, bounds.width); assertEquals(300, bounds.height);
6768697071727374757677
"public class Test extends HorizontalPanel {", " public Test() {", " }", "}"); // check that size applied panel.refresh(); { Rectangle bounds = panel.getBounds(); assertEquals(newWidth, bounds.width); assertEquals(newHeight, bounds.height); }
8485868788899091929394
"public class Test extends HorizontalPanel {", " public Test() {", " setSize('300px', '200px');", " }", "}"); panel.refresh(); // initial size { Rectangle bounds = panel.getBounds(); assertEquals(300, bounds.width); assertEquals(200, bounds.height);
103104105106107108109110111112113
" public Test() {", " setSize('500px', '350px');", " }", "}"); // check that size applied panel.refresh(); { Rectangle bounds = panel.getBounds(); assertEquals(newWidth, bounds.width); assertEquals(newHeight, bounds.height); }
121122123124125126127128129130131
" public Test() {", " setWidth('300px');", " setHeight('200px');", " }", "}"); panel.refresh(); // initial size { Rectangle bounds = panel.getBounds(); assertEquals(300, bounds.width); assertEquals(200, bounds.height);
141142143144145146147148149150151
" setWidth('500px');", " setHeight('350px');", " }", "}"); // check that size applied panel.refresh(); { Rectangle bounds = panel.getBounds(); assertEquals(newWidth, bounds.width); assertEquals(newHeight, bounds.height); }
106107108109110111112113114115116
assertHierarchy( "{this: test.client.MyPanel} {this} {}", " {implicit-layout: default} {implicit-layout} {}", " {field: com.extjs.gxt.ui.client.widget.grid.Grid} {grid} {}"); // panel.refresh(); assertNoErrors(panel); } /** * If <code>Grid</code> was replaced with placeholder, we should not call its methods.