[Erp5-report] r8587 - /erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jul 19 14:42:09 CEST 2006


Author: jerome
Date: Wed Jul 19 14:42:06 2006
New Revision: 8587

URL: http://svn.erp5.org?rev=8587&view=rev
Log:
fix actual / excpected confusion

Modified:
    erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/user-extensions.js.xml

Modified: erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/user-extensions.js.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/user-extensions.js.xml?rev=8587&r1=8586&r2=8587&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/user-extensions.js.xml (original)
+++ erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/user-extensions.js.xml Wed Jul 19 14:42:06 2006
@@ -14,7 +14,7 @@
       <dictionary>
         <item>
             <key> <string>_EtagSupport__etag</string> </key>
-            <value> <string>ts53257338.14</string> </value>
+            <value> <string>ts53312644.38</string> </value>
         </item>
         <item>
             <key> <string>__ac_local_roles__</string> </key>
@@ -54,11 +54,13 @@
  * Values are converted to float, to be format-independant (ie. 1 000 = 1000.0)\n
  */\n
 Selenium.prototype.assertFloat = function(locator, text) {\n
-    var expectedValue = parseFloat(getText(this.page().findElement(locator)));\n
-    var actualValue = parseFloat(text);\n
+    var actualValueText = getText(this.page().findElement(locator));\n
+    var actualValue = parseFloat(actualValueText);\n
+    var expectedValue = parseFloat(text);\n
     \n
-    if (isNaN(expectedValue)) {\n
-        Assert.fail("Expected value "+ locator + " cannot be parsed as float");\n
+    if (isNaN(actualValue)) {\n
+        Assert.fail("Actual value "+ actualValueText +\n
+                        " cannot be parsed as float");\n
     }\n
     Assert.matches(expectedValue.toString(), actualValue.toString());\n
 };\n
@@ -70,7 +72,7 @@
         </item>
         <item>
             <key> <string>size</string> </key>
-            <value> <int>593</int> </value>
+            <value> <long>664</long> </value>
         </item>
         <item>
             <key> <string>title</string> </key>




More information about the Erp5-report mailing list