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.

TooltipStylingTest.java 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright 2000-2016 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.tests.components.abstractcomponent;
  17. import java.io.IOException;
  18. import java.util.Collection;
  19. import org.junit.Test;
  20. import org.junit.runner.RunWith;
  21. import org.junit.runners.Parameterized.Parameters;
  22. import com.vaadin.testbench.elements.LabelElement;
  23. import com.vaadin.tests.tb3.MultiBrowserThemeTest;
  24. import com.vaadin.tests.tb3.ParameterizedTB3Runner;
  25. import com.vaadin.tests.tb3.SingleBrowserTest;
  26. @RunWith(ParameterizedTB3Runner.class)
  27. public class TooltipStylingTest extends SingleBrowserTest {
  28. private String theme;
  29. public void setTheme(String theme) {
  30. this.theme = theme;
  31. }
  32. @Parameters
  33. public static Collection<String> getThemes() {
  34. return MultiBrowserThemeTest.themesToTest;
  35. }
  36. @Test
  37. public void tooltipStyling() throws IOException {
  38. openTestURL("theme=" + theme);
  39. $(LabelElement.class).id("default").showTooltip();
  40. compareScreen("default");
  41. $(LabelElement.class).id("html").showTooltip();
  42. compareScreen("html");
  43. }
  44. }