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.

MultiBrowserThemeTestWithProxy.java 1020B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package com.vaadin.tests.tb3;
  2. import java.util.Arrays;
  3. import java.util.Collection;
  4. import java.util.HashSet;
  5. import java.util.Set;
  6. import org.junit.runner.RunWith;
  7. import org.junit.runners.Parameterized.Parameters;
  8. @RunWith(ParameterizedTB3Runner.class)
  9. public abstract class MultiBrowserThemeTestWithProxy
  10. extends MultiBrowserTestWithProxy {
  11. private String theme;
  12. public void setTheme(String theme) {
  13. this.theme = theme;
  14. }
  15. @Parameters
  16. public static Collection<String> getThemes() {
  17. return Arrays.asList(new String[] { "valo", "reindeer", "runo",
  18. "chameleon", "base" });
  19. }
  20. @Override
  21. protected boolean requireWindowFocusForIE() {
  22. return true;
  23. }
  24. @Override
  25. protected void openTestURL(Class<?> uiClass, String... parameters) {
  26. Set<String> params = new HashSet<>(Arrays.asList(parameters));
  27. params.add("theme=" + theme);
  28. super.openTestURL(uiClass, params.toArray(new String[params.size()]));
  29. }
  30. }