]> source.dussan.org Git - vaadin-framework.git/commitdiff
Test for #5100
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Mon, 19 Mar 2012 10:17:04 +0000 (10:17 +0000)
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Mon, 19 Mar 2012 10:17:04 +0000 (10:17 +0000)
svn changeset:23257/svn branch:6.8

tests/testbench/com/vaadin/tests/components/tabsheet/TabKeyboardNavigation.html [new file with mode: 0644]

diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/TabKeyboardNavigation.html b/tests/testbench/com/vaadin/tests/components/tabsheet/TabKeyboardNavigation.html
new file mode 100644 (file)
index 0000000..d7876ba
--- /dev/null
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="http://localhost:8068/" />
+<title>TabKeyboardNavigation</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">TabKeyboardNavigation</td></tr>
+</thead><tbody>
+<tr>
+       <td>open</td>
+       <td>/run/TabKeyboardNavigation?restartApplication</td>
+       <td></td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
+       <td>9,8</td>
+</tr>
+<tr>
+       <td>pressSpecialKey</td>
+       <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
+       <td>right</td>
+</tr>
+<tr>
+       <td>assertTextPresent</td>
+       <td>Tab 2</td>
+       <td></td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td>tab2</td>
+</tr>
+<tr>
+       <td>pressSpecialKey</td>
+       <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[1]</td>
+       <td>right</td>
+</tr>
+<tr>
+       <td>pressSpecialKey</td>
+       <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[2]</td>
+       <td>right</td>
+</tr>
+<tr>
+       <td>assertTextPresent</td>
+       <td>Tab 5</td>
+       <td></td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td>skip-disabled-to-tab5</td>
+</tr>
+<tr>
+       <td>pressSpecialKey</td>
+       <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[4]</td>
+       <td>right</td>
+</tr>
+<tr>
+       <td>assertTextPresent</td>
+       <td>Tab 1</td>
+       <td>wraparound-to-tab1</td>
+</tr>
+<tr>
+       <td>click</td>
+       <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VButton[0]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
+       <td>14,9</td>
+</tr>
+<tr>
+       <td>pressSpecialKey</td>
+       <td>vaadin=runTabKeyboardNavigation::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
+       <td>left</td>
+</tr>
+<tr>
+       <td>assertTextPresent</td>
+       <td>Tab 6</td>
+       <td></td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td>moved-left-to-tab6</td>
+</tr>
+
+</tbody></table>
+</body>
+</html>