From ee868b1048bc57ed013c5dd78d4f62a647471bf6 Mon Sep 17 00:00:00 2001 From: Fabien Morin <fabien@nexedi.com> Date: Wed, 1 Oct 2008 12:33:29 +0000 Subject: [PATCH] 2008-10-01 fabien * redefine Selenium.prototype.doType function in user-extensions.js. This is made to be able to test file upload. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23932 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_ui_test/user-extensions.js.xml | 23 ++++++++----------- bt5/erp5_ui_test/bt/change_log | 3 +++ bt5/erp5_ui_test/bt/revision | 2 +- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/user-extensions.js.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/user-extensions.js.xml index 51d20246d0..503c54408a 100644 --- a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/user-extensions.js.xml +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/user-extensions.js.xml @@ -11,24 +11,12 @@ <dictionary> <item> <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts73479596.95</string> </value> - </item> - <item> - <key> <string>__ac_local_roles__</string> </key> - <value> - <none/> - </value> + <value> <string>ts22862605.97</string> </value> </item> <item> <key> <string>__name__</string> </key> <value> <string>user-extensions.js</string> </value> </item> - <item> - <key> <string>_owner</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>content_type</string> </key> <value> <string>application/x-javascript</string> </value> @@ -86,6 +74,13 @@ Selenium.prototype.assertPortalStatusMessage = function(text) {\n Assert.matches(text, actualValue);\n };\n \n +\n +Selenium.prototype.doType = function(locator, newText) {\n + netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");\n + var element = this.page().findElement(locator);\n + this.page().replaceText(element, newText);\n +};\n +\n ]]></string> </value> @@ -96,7 +91,7 @@ Selenium.prototype.assertPortalStatusMessage = function(text) {\n </item> <item> <key> <string>size</string> </key> - <value> <int>1679</int> </value> + <value> <int>1917</int> </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_ui_test/bt/change_log b/bt5/erp5_ui_test/bt/change_log index 75b23de899..916373c45a 100644 --- a/bt5/erp5_ui_test/bt/change_log +++ b/bt5/erp5_ui_test/bt/change_log @@ -1,3 +1,6 @@ +2008-10-01 fabien +* redefine Selenium.prototype.doType function in user-extensions.js. This is made to be able to test file upload. + 2008-08-29 yusei * Replace N_ with translateString. diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision index c954f9c644..43f9cb6413 100644 --- a/bt5/erp5_ui_test/bt/revision +++ b/bt5/erp5_ui_test/bt/revision @@ -1 +1 @@ -394 \ No newline at end of file +396 \ No newline at end of file -- 2.30.9