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

@@ -63,7 +63,7 @@ abstract class.
((("[classname]#AbstractListing#")))
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
<<components-selection#components.selection,"Selection Components">>.

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

@@ -18,7 +18,8 @@ import com.vaadin.tests.tb3.MultiBrowserTest;
@TestCategory("grid")
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
public void before() {
@@ -35,7 +36,7 @@ public abstract class AbstractGridColumnAutoWidthTest extends MultiBrowserTest {
assertLessThan("header should've been narrower than body", headerWidth,
bodyWidth);
assertEquals("column should've been roughly as wide as the body",
bodyWidth, colWidth, 5);
bodyWidth, colWidth, tolerance);
}

@Test
@@ -48,8 +49,7 @@ public abstract class AbstractGridColumnAutoWidthTest extends MultiBrowserTest {
assertGreater("header should've been wider than body", headerWidth,
bodyWidth);
assertEquals("column should've been roughly as wide as the header",
headerWidth, colWidth, 5);

headerWidth, colWidth, tolerance);
}

@Test

Loading…
Cancel
Save