From 737b4c9643b14f39c70a5f3829bd62abd9797cd8 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Tue, 3 Feb 2009 20:38:05 +0000
Subject: [PATCH] 2009-02-03 Kazuhiko * define getAbsoluteLocation() in
 user-extensions.js for compatible with Zelenium based of Selenium 0.8 or
 later.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25437 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_ui_test_core/user-extensions.js.xml          | 11 +++++++++--
 bt5/erp5_ui_test_core/bt/change_log                   |  3 +++
 bt5/erp5_ui_test_core/bt/revision                     |  2 +-
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/user-extensions.js.xml b/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/user-extensions.js.xml
index 503c54408a..d08260601f 100644
--- a/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/user-extensions.js.xml
+++ b/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/user-extensions.js.xml
@@ -11,7 +11,7 @@
       <dictionary>
         <item>
             <key> <string>_EtagSupport__etag</string> </key>
-            <value> <string>ts22862605.97</string> </value>
+            <value> <string>ts33693326.63</string> </value>
         </item>
         <item>
             <key> <string>__name__</string> </key>
@@ -81,6 +81,13 @@ Selenium.prototype.doType = function(locator, newText) {\n
     this.page().replaceText(element, newText);\n
 };\n
 \n
+/*\n
+ * Get the location of the current page. This function is missing in\n
+ * Selenium 0.8 or later.\n
+ */\n
+Selenium.prototype.getAbsoluteLocation = function() {\n
+    return this.page().location || this.browserbot.getCurrentWindow().location;\n
+};\n
 
 
 ]]></string> </value>
@@ -91,7 +98,7 @@ Selenium.prototype.doType = function(locator, newText) {\n
         </item>
         <item>
             <key> <string>size</string> </key>
-            <value> <int>1917</int> </value>
+            <value> <int>2156</int> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
diff --git a/bt5/erp5_ui_test_core/bt/change_log b/bt5/erp5_ui_test_core/bt/change_log
index 61a5fa6957..4e0ef5ae74 100644
--- a/bt5/erp5_ui_test_core/bt/change_log
+++ b/bt5/erp5_ui_test_core/bt/change_log
@@ -1,2 +1,5 @@
+2009-02-03 Kazuhiko
+* define getAbsoluteLocation() in user-extensions.js for compatible with Zelenium based of Selenium 0.8 or later.
+
 2008-10-01 fabien
 * initial version
\ No newline at end of file
diff --git a/bt5/erp5_ui_test_core/bt/revision b/bt5/erp5_ui_test_core/bt/revision
index bf0d87ab1b..7813681f5b 100644
--- a/bt5/erp5_ui_test_core/bt/revision
+++ b/bt5/erp5_ui_test_core/bt/revision
@@ -1 +1 @@
-4
\ No newline at end of file
+5
\ No newline at end of file
-- 
2.30.9