]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added Testbench test for #5992
authorJohn Alhroos <john.ahlroos@itmill.com>
Wed, 27 Apr 2011 07:40:03 +0000 (07:40 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Wed, 27 Apr 2011 07:40:03 +0000 (07:40 +0000)
svn changeset:18483/svn branch:6.6

tests/src/com/vaadin/tests/components/table/ActionsOnTableBackground.html [new file with mode: 0644]

diff --git a/tests/src/com/vaadin/tests/components/table/ActionsOnTableBackground.html b/tests/src/com/vaadin/tests/components/table/ActionsOnTableBackground.html
new file mode 100644 (file)
index 0000000..5e5b768
--- /dev/null
@@ -0,0 +1,125 @@
+<?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="" />
+<title>actions-on-table-background</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">actions-on-table-background</td></tr>
+</thead><tbody>
+<tr>
+       <td>open</td>
+       <td>/run/com.vaadin.tests.components.table.Tables?debug&amp;restartApplication</td>
+       <td></td>
+</tr>
+<!--make table higher than number of rows-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::PID_Smenu#item0</td>
+       <td>47,10</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[0]/VMenuBar[0]#item2</td>
+       <td>51,7</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[1]/VMenuBar[0]#item1</td>
+       <td>32,12</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[2]/VMenuBar[0]#item8</td>
+       <td>25,1</td>
+</tr>
+<!--add context menu-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::PID_Smenu#item0</td>
+       <td>36,12</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[0]/VMenuBar[0]#item8</td>
+       <td>60,2</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[1]/VMenuBar[0]#item2</td>
+       <td>71,9</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[2]/VMenuBar[0]#item5</td>
+       <td>57,8</td>
+</tr>
+<!--Context menu for item 1-->
+<tr>
+       <td>contextmenu</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::PID_StestComponent/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]/domChild[2]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertVisible</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VContextMenu[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertText</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VContextMenu[0]#option0</td>
+       <td>Edit Item 1</td>
+</tr>
+<tr>
+       <td>assertText</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VContextMenu[0]#option1</td>
+       <td>Common action</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VContextMenu[0]#option0</td>
+       <td>47,6</td>
+</tr>
+<tr>
+       <td>assertText</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::PID_SLog_row_0</td>
+       <td>2. Action Edit Item 1 performed on Item 1</td>
+</tr>
+<!--Context menu for no item-->
+<tr>
+       <td>contextmenu</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::PID_StestComponent/domChild[1]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertVisible</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VContextMenu[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertText</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VContextMenu[0]#option0</td>
+       <td>New...</td>
+</tr>
+<tr>
+       <td>assertText</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VContextMenu[0]#option1</td>
+       <td>Common action</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VContextMenu[0]#option0</td>
+       <td>47,6</td>
+</tr>
+<tr>
+       <td>assertText</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::PID_SLog_row_0</td>
+       <td>3. Action New... performed on null</td>
+</tr>
+</tbody></table>
+</body>
+</html>