Browse Source

Docs fixes and enlarge tolerance

tags/8.9.0.beta3
ZheSun88 4 years ago
parent
commit
ed218e9086

+ 1
- 1
documentation/components/components-overview.asciidoc View File

((("[classname]#AbstractListing#"))) ((("[classname]#AbstractListing#")))
There are three more specific types of components. There are three more specific types of components.


<<components-fields#components.fields,"Field Components">>.
Field Components:: allow user to edit a value in the UI. All extend [classname]#AbstractField#. Field components are described in detail in <<components-fields#components.fields,"Field Components">>.


Selection Component:: show a list of data that the user can select from. All extend [classname]#AbstractListing#. Selection components are described in detail in Selection Component:: show a list of data that the user can select from. All extend [classname]#AbstractListing#. Selection components are described in detail in
<<components-selection#components.selection,"Selection Components">>. <<components-selection#components.selection,"Selection Components">>.

+ 4
- 4
uitest/src/test/java/com/vaadin/tests/components/grid/AbstractGridColumnAutoWidthTest.java View File

@TestCategory("grid") @TestCategory("grid")
public abstract class AbstractGridColumnAutoWidthTest extends MultiBrowserTest { public abstract class AbstractGridColumnAutoWidthTest extends MultiBrowserTest {


public static final int TOTAL_MARGIN_PX = 21;
public static final int TOTAL_MARGIN_PX = 26;
private static final int tolerance = 10;


@Before @Before
public void before() { public void before() {
assertLessThan("header should've been narrower than body", headerWidth, assertLessThan("header should've been narrower than body", headerWidth,
bodyWidth); bodyWidth);
assertEquals("column should've been roughly as wide as the body", assertEquals("column should've been roughly as wide as the body",
bodyWidth, colWidth, 5);
bodyWidth, colWidth, tolerance);
} }


@Test @Test
assertGreater("header should've been wider than body", headerWidth, assertGreater("header should've been wider than body", headerWidth,
bodyWidth); bodyWidth);
assertEquals("column should've been roughly as wide as the header", assertEquals("column should've been roughly as wide as the header",
headerWidth, colWidth, 5);

headerWidth, colWidth, tolerance);
} }


@Test @Test

Loading…
Cancel
Save