]> source.dussan.org Git - vaadin-framework.git/commitdiff
Test for #7098
authorArtur Signell <artur.signell@itmill.com>
Fri, 3 Jun 2011 11:17:53 +0000 (11:17 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 3 Jun 2011 11:17:53 +0000 (11:17 +0000)
svn changeset:19214/svn branch:6.6

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

diff --git a/tests/src/com/vaadin/tests/components/table/TableRemoveActionHandlers.html b/tests/src/com/vaadin/tests/components/table/TableRemoveActionHandlers.html
new file mode 100644 (file)
index 0000000..a363f69
--- /dev/null
@@ -0,0 +1,161 @@
+<?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>New Test</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">New Test</td></tr>
+</thead><tbody>
+<tr>
+       <td>open</td>
+       <td>/run/com.vaadin.tests.components.table.Tables?restartApplication</td>
+       <td></td>
+</tr>
+<!--5 items-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::PID_Smenu#item0</td>
+       <td>25,7</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[0]/VMenuBar[0]#item5</td>
+       <td>50,2</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[1]/VMenuBar[0]#item1</td>
+       <td>86,10</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[2]/VMenuBar[0]#item5</td>
+       <td>53,6</td>
+</tr>
+<!--Item 1 context menu-->
+<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>
+<!--Body context menu-->
+<tr>
+       <td>contextmenu</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::PID_StestComponent/domChild[1]</td>
+       <td></td>
+</tr>
+<!--Add context menu-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::PID_Smenu#item0</td>
+       <td>21,8</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[0]/VMenuBar[0]#item8</td>
+       <td>61,1</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[1]/VMenuBar[0]#item2</td>
+       <td>68,7</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[2]/VMenuBar[0]#item5</td>
+       <td>69,12</td>
+</tr>
+<!--Item 1 context menu-->
+<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]#option0</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertText</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VContextMenu[0]#option0</td>
+       <td>Edit Item 1</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VContextMenu[0]#option0</td>
+       <td>52,12</td>
+</tr>
+<!--Body context menu-->
+<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]#option0</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertText</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VContextMenu[0]#option0</td>
+       <td>New...</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VContextMenu[0]#option0</td>
+       <td>35,12</td>
+</tr>
+<!--Remove context menu-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::PID_Smenu#item0</td>
+       <td>20,8</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[0]/VMenuBar[0]#item8</td>
+       <td>67,3</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[1]/VMenuBar[0]#item2</td>
+       <td>71,7</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::Root/VOverlay[2]/VMenuBar[0]#item0</td>
+       <td>16,3</td>
+</tr>
+<!--Item 1 context menu-->
+<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>assertElementNotPresent</td>
+       <td>//div[@id='PID_VAADIN_CM']</td>
+       <td></td>
+</tr>
+<!--Body context menu-->
+<tr>
+       <td>contextmenu</td>
+       <td>vaadin=runcomvaadintestscomponentstableTables::PID_StestComponent/domChild[1]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertElementNotPresent</td>
+       <td>//div[@id='PID_VAADIN_CM']</td>
+       <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>