Commit 42bab7cc authored by Jérome Perrin's avatar Jérome Perrin

don't leave the page without saving, because of new onbefore unload handler

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28363 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 44d83270
......@@ -138,6 +138,45 @@
<td></td>\n
</tr>\n
\n
\n
\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_year</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_month</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_day</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_hour</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_minute</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@title=\'Save\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Data updated.</td>\n
<td></td>\n
</tr>\n
\n
\n
</tbody></table>\n
</body>\n
</html>\n
......
......@@ -149,6 +149,45 @@
<td></td>\n
</tr>\n
\n
\n
\n
\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_year</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_month</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_day</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_hour</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_minute</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@title=\'Save\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Data updated.</td>\n
<td></td>\n
</tr>\n
\n
</tbody></table>\n
</body>\n
</html>\n
......
......@@ -435,9 +435,41 @@
<td>*You did not enter a valid date and time.*</td>\n
</tr>\n
\n
\n
<!-- More tests are required, such as sorting, searching, domain tree, etc. -->\n
\n
\n
<!-- cleanup and save not to trigger unbefore unload -->\n
<tr>\n
<td>type</td>\n
<td>//tr[@id="listbox_data_line_0"]/td[3]//input[@type="text"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]/input[1]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]/input[2]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]/input[3]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Data updated.</td>\n
<td></td>\n
</tr>\n
\n
</tbody></table>\n
</body>\n
</html>\n
......
......@@ -71,6 +71,20 @@
<td>//div[contains(@class, \'error\')][.//@name=\'field_my_quantity\']</td>\n
<td></td>\n
</tr>\n
\n
<!-- cleanup -->\n
<tr>\n
<td>type</td>\n
<td>field_my_quantity</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@name=\'Base_edit:method\']</td>\n
<td></td>\n
</tr>\n
\n
\n
</body>\n
</html>\n
......
......@@ -138,11 +138,47 @@
<td></td>\n
</tr>\n
\n
\n
\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_year</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_month</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_day</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_hour</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_minute</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@title=\'Save\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Data updated.</td>\n
<td></td>\n
</tr>\n
\n
</tbody></table>\n
</body>\n
</html>\n
\n
</html>
]]></string> </value>
</item>
......
......@@ -149,11 +149,47 @@
<td></td>\n
</tr>\n
\n
\n
\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_year</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_month</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_day</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_hour</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_start_date_minute</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@title=\'Save\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Data updated.</td>\n
<td></td>\n
</tr>\n
\n
</tbody></table>\n
</body>\n
</html>\n
\n
</html>
]]></string> </value>
</item>
......
444
\ No newline at end of file
446
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment