[jboss-cvs] jboss-seam/src/test/jsUnit ...
Shane Bryzak
Shane_Bryzak at symantec.com
Sun Nov 12 17:45:14 EST 2006
User: sbryzak2
Date: 06/11/12 17:45:14
Modified: src/test/jsUnit jsUnitSeamRemoting.html
Log:
Fixed jsUnit tests
Revision Changes Path
1.3 +2 -2 jboss-seam/src/test/jsUnit/jsUnitSeamRemoting.html
(In the diff below, changes in quantity of whitespace are not shown.)
Index: jsUnitSeamRemoting.html
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/test/jsUnit/jsUnitSeamRemoting.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- jsUnitSeamRemoting.html 23 Apr 2006 06:21:20 -0000 1.2
+++ jsUnitSeamRemoting.html 12 Nov 2006 22:45:14 -0000 1.3
@@ -10,11 +10,11 @@
<script language="JavaScript" type="text/javascript" src="../../main/org/jboss/seam/remoting/remote.js"></script>
<script language="JavaScript" type="text/javascript">
-/** URL Encode/decode tests **/
+/** Confirm that the URL encoding/decoding function we are using works **/
function testURLEncodeDecode() {
var val = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890!@#$%^&*()_-;',./:\"<>?~`\|[]{}+= ";
- assertEquals(val, Seam.Remoting.URLDecode(Seam.Remoting.URLEncode(val)));
+ assertEquals(val, decodeURIComponent(encodeURIComponent(val)));
}
/** Seam.Remoting.Map tests **/
More information about the jboss-cvs-commits
mailing list