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.

GridManyColumnsTest.java 1.0KB

12345678910111213141516171819202122232425262728293031323334
  1. package com.vaadin.tests.components.grid;
  2. import org.junit.Test;
  3. import org.openqa.selenium.By;
  4. import com.vaadin.testbench.parallel.TestCategory;
  5. import com.vaadin.tests.tb3.MultiBrowserTest;
  6. /**
  7. * Tests that Grid gets correct height based on height mode, and resizes
  8. * properly with details row if height is undefined.
  9. *
  10. * @author Vaadin Ltd
  11. */
  12. @TestCategory("grid")
  13. public class GridManyColumnsTest extends MultiBrowserTest {
  14. @Override
  15. public void setup() throws Exception {
  16. super.setup();
  17. openTestURL();
  18. waitForElementPresent(By.className("v-grid"));
  19. }
  20. @Test
  21. public void testGridPerformance() throws InterruptedException {
  22. long renderingTime = testBench().totalTimeSpentRendering();
  23. long requestTime = testBench().totalTimeSpentServicingRequests();
  24. System.out.println("Grid with many columns spent " + renderingTime
  25. + "ms rendering and " + requestTime + "ms servicing requests ("
  26. + getDesiredCapabilities().getBrowserName() + ")");
  27. }
  28. }