556557558559560561562563564565566
" Button button_5 = new Button();", " add(button_5);", " }", " }", "}"); panel.refresh(); { WidgetInfo button_1 = getJavaInfoByName("button_1"); assertEquals(1.0, getSize(button_1), 0.001); } {
596597598599600601602603604605606
" Button button = new Button();", " addWest(button, 20);", " }", " }", "}"); panel.refresh(); // WidgetInfo button = getJavaInfoByName("button"); assertEquals(20.0, getSize(button), 0.001); }
617618619620621622623624625626627
" Button button = new Button();", " addWest(button, 1.0);", " }", " }", "}"); panel.refresh(); WidgetInfo button = getJavaInfoByName("button"); // setSize(button, 2.52); assertEditor( "public class Test extends DockLayoutPanel {",
664665666667668669670671672673674
"public class Test extends DockLayoutPanel {", " public Test() {", " super(Unit.PX);", " }", "}"); panel.refresh(); // double units = panel.getSizeInUnits(100, false); assertThat(units).isEqualTo(100.0, Delta.delta(0.001)); }
681682683684685686687688689690691
"public class Test extends DockLayoutPanel {", " public Test() {", " super(Unit.CM);", " }", "}"); panel.refresh(); // double units = panel.getSizeInUnits(100, false); assertThat(units).isGreaterThan(2.0).isLessThan(3.0); }
703704705706707708709710711712713
"public class Test extends DockLayoutPanel {", " public Test() {", " super(Unit.PX);", " }", "}"); panel.refresh(); // assertEquals("100.0px", panel.getUnitSizeTooltip(100.0)); } /**
719720721722723724725726727728729
"public class Test extends DockLayoutPanel {", " public Test() {", " super(Unit.CM);", " }", "}"); panel.refresh(); // assertEquals("3.5cm", panel.getUnitSizeTooltip(3.512)); } ////////////////////////////////////////////////////////////////////////////
744745746747748749750751752753754
" Button button = new Button();", " addWest(button, 0.0);", " }", " }", "}"); panel.refresh(); WidgetInfo button = getJavaInfoByName("button"); // panel.setReasonableSize(button); assertEditor( "public class Test extends DockLayoutPanel {",
775776777778779780781782783784785
806807808809810811812813814815816