summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tb3
diff options
context:
space:
mode:
authorDenis Anisimov <denis@vaadin.com>2015-05-17 12:34:32 +0300
committerVaadin Code Review <review@vaadin.com>2015-05-29 14:02:44 +0000
commit5b92ec790e3d3949992275d54ee8ac61ad94c157 (patch)
treebe337a1878d4afd3573b8e99ce0cda68f07f3e5d /uitest/src/com/vaadin/tests/tb3
parented5ad86b114ccb4d6ab08e19a734bdb8b3342399 (diff)
downloadvaadin-framework-5b92ec790e3d3949992275d54ee8ac61ad94c157.tar.gz
vaadin-framework-5b92ec790e3d3949992275d54ee8ac61ad94c157.zip
Fix for Valo notification mixins (#14872).
Change-Id: I6477557c605443419ee3fc9f3398ae5af4956aa7
Diffstat (limited to 'uitest/src/com/vaadin/tests/tb3')
-rw-r--r--uitest/src/com/vaadin/tests/tb3/MultiBrowserThemeTest.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tb3/MultiBrowserThemeTest.java b/uitest/src/com/vaadin/tests/tb3/MultiBrowserThemeTest.java
new file mode 100644
index 0000000000..546588947c
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/tb3/MultiBrowserThemeTest.java
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2000-2014 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.tests.tb3;
+
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * Test which uses theme returned by {@link #getTheme()} for running the test
+ */
+public abstract class MultiBrowserThemeTest extends MultiBrowserTest {
+
+ protected abstract String getTheme();
+
+ @Override
+ protected void openTestURL(Class<?> uiClass, String... parameters) {
+ Set<String> params = new HashSet<String>(Arrays.asList(parameters));
+ params.add("theme=" + getTheme());
+ super.openTestURL(uiClass, params.toArray(new String[params.size()]));
+ }
+}