Index: openacs-4/packages/acs-automated-testing/www/doc/xml/selenium.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-automated-testing/www/doc/xml/selenium.xml,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/acs-automated-testing/www/doc/xml/selenium.xml	17 Sep 2009 15:57:02 -0000	1.1
+++ openacs-4/packages/acs-automated-testing/www/doc/xml/selenium.xml	17 Sep 2009 16:20:40 -0000	1.2
@@ -8,44 +8,46 @@
   <authorblurb>
     <para>by <ulink url="mailto:dave@solutiongrove.com">Dave
     Bauer</ulink></para>
-    <para>
-      To use Selenium Remote Control to run browser-based tested from
-      acs-automated-testing first install Selenium Remote
-      Control. <ulink url="http://seleniumhq.org/download/">Download
+  </authorblurb>
+  <para>
+    To use Selenium Remote Control to run browser-based tested from
+    acs-automated-testing first install Selenium Remote
+    Control. <ulink url="http://seleniumhq.org/download/">Download
       Selenium RC</ulink>. This requires a working Java
-      configuration. See <ulink url="http://seleniumhq.org/docs/05_selenium_rc.html">Selenium
+    configuration. See <ulink url="http://seleniumhq.org/docs/05_selenium_rc.html">Selenium
       RC Documentation</ulink> and specifically <ulink url="
-      http://seleniumhq.org/docs/05_selenium_rc.html#installation">Selenium
+                                                            http://seleniumhq.org/docs/05_selenium_rc.html#installation">Selenium
       RC Installation</ulink>.
-    </para>
-    You can record tests to Tcl code that will run in
-    acs-automated-testing by adding the a Tcl-RC mode in Selenium-IDE.
-    </para>
+  </para>
   <para>
-    Open up Firefox, click on Tools, select Selenium IDE, select
-    Options, then Options again. Click on the formats tab. Click add.
-    Name the format "Tcl-Rc". Paste the following code in the large
-    box.
-    <programlisting>
+  You can record tests to Tcl code that will run in
+  acs-automated-testing by adding the a Tcl-RC mode in Selenium-IDE.
+</para>
+<para>
+  Open up Firefox, click on Tools, select Selenium IDE, select
+  Options, then Options again. Click on the formats tab. Click add.
+  Name the format "Tcl-Rc". Paste the following code in the large
+  box.
+  <programlisting>
 /*
  * Format for Selenium Remote Control Python client.
  */
 
 load('remoteControl.js');
 
-this.name = "tcl-rc";
+this.name = &quot;tcl-rc&quot;;
 
 function testMethodName(testName) {
-	return "test_" + underscore(testName);
+	return &quot;test_&quot; + underscore(testName);
 }
 
 notOperator = function() {
-	return "! ";
+	return &quot;! &quot;;
 }
 
 tclString = function(value) {
 	value = value.replace(/\\/g, '\\\\');
-	value = value.replace(/\"/g, '\\"');
+	value = value.replace(/\&quot;/g, '\\&quot;');
 	value = value.replace(/\r/g, '\\r');
         value = value.replace(/\n/g, '\\n');
         value = value.replace(/\{/g, '\\{');
@@ -60,15 +62,15 @@
 			unicode = true;
 		}
 	}
-	return (unicode ? 'u' : '') + '"' + value + '"';
+	return (unicode ? 'u' : '') + '&quot;' + value + '&quot;';
 }
 
 function assertTrue(expression) {
-	return "aa_true " + tclString(expression.toString()) + " [expr {![catch {" + expression.toString() + "} errmsg]}]";
+	return &quot;aa_true &quot; + tclString(expression.toString()) + &quot; [expr {![catch {&quot; + expression.toString() + &quot;} errmsg]}]&quot;;
 }
 
 function assertFalse(expression) {
-	return "aa_false " + tclString(expression.toString()) + " [expr {![catch {" + expression.toString() + "} errmsg]}]";
+	return &quot;aa_false &quot; + tclString(expression.toString()) + &quot; [expr {![catch {&quot; + expression.toString() + &quot;} errmsg]}]&quot;;
 }
 
 function verify(statement) {
@@ -84,27 +86,27 @@
 }
 
 function joinExpression(expression) {
-    return "join " + expression.toString();
+    return &quot;join &quot; + expression.toString();
 }
 
 function assignToVariable(type, variable, expression) {
-	return "set " + underscore(variable) + " [" + expression.toString() + "]";
+	return &quot;set &quot; + underscore(variable) + &quot; [&quot; + expression.toString() + &quot;]&quot;;
 }
 
 function waitFor(expression) {
-    return "for {set i 0} {i &lt; " + expression.toString() + "} {incr i} {\n"
-        + "if {" + expression.toString() + "} {break}\n"
-        + "after 1000\n"
-        + "}\n"
-        + "if {$i == 60} {error \"time out\"}";
+    return &quot;for {set i 0} {i &lt; &quot; + expression.toString() + &quot;} {incr i} {\n&quot;
+        + &quot;if {&quot; + expression.toString() + &quot;} {break}\n&quot;
+        + &quot;after 1000\n&quot;
+        + &quot;}\n&quot;
+        + &quot;if {$i == 60} {error \&quot;time out\&quot;}&quot;;
 }
 
 function assertOrVerifyFailure(line, isAssert) {
-    return "" + line + "} errmsg]} {error \"expected failure\"}";
+    return &quot;&quot; + line + &quot;} errmsg]} {error \&quot;expected failure\&quot;}&quot;;
 }
 
 Equals.prototype.toString = function() {
-	return this.e1.toString() + " eq " + this.e2.toString();
+	return this.e1.toString() + &quot; eq &quot; + this.e2.toString();
 }
 
 Equals.prototype.assert = function() {
@@ -116,11 +118,11 @@
 }
 
 NotEquals.prototype.toString = function() {
-	return this.e1.toString() + " ne " + this.e2.toString();
+	return this.e1.toString() + &quot; ne &quot; + this.e2.toString();
 }
 
 NotEquals.prototype.assert = function() {
-	return "aa_true " + tclString(this.e1.toString() + " ne " + this.e2.toString()) + " [expr {" + this.e1.toString() + " ne " + this.e2.toString() + "}]";
+	return &quot;aa_true &quot; + tclString(this.e1.toString() + &quot; ne &quot; + this.e2.toString()) + &quot; [expr {&quot; + this.e1.toString() + &quot; ne &quot; + this.e2.toString() + &quot;}]&quot;;
 }
 
 NotEquals.prototype.verify = function() {
@@ -129,23 +131,23 @@
 
 RegexpMatch.prototype.toString = function() {
 	var str = this.pattern;
-	if (str.match(/\"/) || str.match(/\n/)) {
-		str = str.replace(/\\/g, "\\\\");
-		str = str.replace(/\"/g, '\\"');
+	if (str.match(/\&quot;/) || str.match(/\n/)) {
+		str = str.replace(/\\/g, &quot;\\\\&quot;);
+		str = str.replace(/\&quot;/g, '\\&quot;');
 		str = str.replace(/\n/g, '\\n');
-		return '"' + str + '"';
+		return '&quot;' + str + '&quot;';
 	} else {
-		str = 'r"' + str + '"';
+		str = 'r&quot;' + str + '&quot;';
 	}
-	return "re.search(" + str + ", " + this.expression + ")";
+	return &quot;re.search(&quot; + str + &quot;, &quot; + this.expression + &quot;)&quot;;
 }
 
 function pause(milliseconds) {
-	return "after " + milliseconds;
+	return &quot;after &quot; + milliseconds;
 }
 
 function echo(message) {
-        return "aa_log " + xlateArgument(message);
+        return &quot;aa_log &quot; + xlateArgument(message);
 }
 
 function statement(expression) {
@@ -156,14 +158,14 @@
 	var str = '[lst ';
 	for (var i = 0; i &lt; value.length; i++) {
 		str += string(value[i]);
-		if (i &lt; value.length - 1) str += " ";
+		if (i &lt; value.length - 1) str += &quot; &quot;;
 	}
 	str += ']';
 	return str;
 }
 
 function nonBreakingSpace() {
-    return "u\"\\u00a0\"";
+    return &quot;u\&quot;\\u00a0\&quot;&quot;;
 }
 
 CallSelenium.prototype.toString = function() {
@@ -186,7 +188,7 @@
 
 function formatComment(comment) {
 	return comment.comment.replace(/.+/mg, function(str) {
-			return "# " + str;
+			return &quot;# &quot; + str;
 		});
 }
 
@@ -199,16 +201,15 @@
 this.configForm =
 	'&lt;description&gt;Variable for Selenium instance&lt;/description&gt;' +
 	'&lt;description&gt;Header&lt;/description&gt;' +
-	'&lt;textbox id="options_header" multiline="true" flex="1" rows="4"/&gt;' +
+	'&lt;textbox id=&quot;options_header&quot; multiline=&quot;true&quot; flex=&quot;1&quot; rows=&quot;4&quot;/&gt;' +
 	'&lt;description&gt;Footer&lt;/description&gt;' +
-	'&lt;textbox id="options_footer" multiline="true" flex="1" rows="4"/&gt;';
-      &lt;/programlisting&gt;
+	'&lt;textbox id=&quot;options_footer&quot; multiline=&quot;true&quot; flex=&quot;1&quot; rows=&quot;4&quot;/&gt;';
+      </programlisting>
     </para>
     <para>
       You may also refer to
       the <ulink url="http://seleniumhq.org/docs/04_selenese_commands.html">Selenese
       Commands Documentation</ulink> which may give some hints to
       writing tests.
-      </para>
-  </authorblurb>
-
+    </para>
+</sect1>