|
|
|
|
|
|
|
|
@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 |