]> source.dussan.org Git - vaadin-framework.git/blob
de510535350f71e8cd942f6bab23b18b2c3715d0
[vaadin-framework.git] /
1 package com.vaadin.v7.tests.components.grid.basicfeatures;
2
3 import org.junit.Test;
4
5 import com.vaadin.testbench.parallel.TestCategory;
6 import com.vaadin.tests.tb3.MultiBrowserTest;
7 import com.vaadin.v7.testbench.customelements.GridElement;
8
9 @SuppressWarnings("all")
10 @TestCategory("grid")
11 public class GridHeightByRowOnInitTest extends MultiBrowserTest {
12
13     @Test
14     public void gridHeightIsMoreThanACoupleOfRows() {
15         openTestURL();
16         int height = $(GridElement.class).first().getSize().getHeight();
17         assertGreater(
18                 "Grid should be much taller than 150px (was " + height + "px)",
19                 height, 150);
20     }
21 }