You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GridMultiSelectionScrollBarTest.java 815B

1234567891011121314151617181920212223242526272829
  1. package com.vaadin.tests.components.grid;
  2. import static org.junit.Assert.assertTrue;
  3. import java.io.IOException;
  4. import java.util.Locale;
  5. import org.junit.Test;
  6. import com.vaadin.testbench.elements.GridElement;
  7. import com.vaadin.tests.tb3.MultiBrowserTest;
  8. public class GridMultiSelectionScrollBarTest extends MultiBrowserTest {
  9. @Test
  10. public void testNoVisibleScrollBar() throws IOException {
  11. setDebug(true);
  12. openTestURL();
  13. assertTrue("Horizontal scrollbar should not be visible.",
  14. $(GridElement.class).first().getHorizontalScroller()
  15. .getAttribute("style").toLowerCase(Locale.ROOT)
  16. .contains("display: none;"));
  17. // Just to make sure nothing odd happened.
  18. assertNoErrorNotifications();
  19. }
  20. }