aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/button/ButtonsWaiAria.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/button/ButtonsWaiAria.java')
-rw-r--r--uitest/src/com/vaadin/tests/components/button/ButtonsWaiAria.java51
1 files changed, 51 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/button/ButtonsWaiAria.java b/uitest/src/com/vaadin/tests/components/button/ButtonsWaiAria.java
new file mode 100644
index 0000000000..1208b8be3b
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/button/ButtonsWaiAria.java
@@ -0,0 +1,51 @@
+package com.vaadin.tests.components.button;
+
+import com.vaadin.tests.components.ComponentTestCase;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.NativeButton;
+
+public class ButtonsWaiAria extends ComponentTestCase<Button> {
+
+ @Override
+ protected Class<Button> getTestClass() {
+ return Button.class;
+ }
+
+ @Override
+ protected void initializeComponents() {
+
+ Button l;
+ boolean nat = false;
+
+ l = createButton("Default Button", nat);
+ addTestComponent(l);
+
+ l = createButton("Icon Button, empty alt", nat);
+ l.setIcon(ICON_16_USER_PNG_CACHEABLE);
+ addTestComponent(l);
+
+ l = createButton("Icon Button with alt", nat);
+ l.setIcon(ICON_16_USER_PNG_CACHEABLE, "user icon");
+ addTestComponent(l);
+
+ l = createButton("Tooltip Button", nat);
+ l.setDescription("Tooltip");
+ addTestComponent(l);
+ }
+
+ private Button createButton(String text, boolean nativeButton) {
+ Button b;
+ if (nativeButton) {
+ b = new NativeButton(text);
+ } else {
+ b = new Button(text);
+ }
+
+ return b;
+ }
+
+ @Override
+ protected String getDescription() {
+ return "A generic test for Buttons in different configurations";
+ }
+}