Szczepan Faber
unread,Jul 27, 2009, 7:34:04 AM7/27/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Dr Nic's JavaScript projects
Hi,
I've got a long String (big, fat multiline String) and I was not able
to use assertEqual for it because of this error:
TypeError: String.specialChar is undefined
Not sure why, maybe because I'm using jQuery to get the string to
assertEqual: $('#myTextArea').text()
There are 2 workaround for this. Either I do:
assertEqual(new String(expected), new String(actual));
or I change the jsunittest.js file:
//var character = String.specialChar[match[0]];
var character = match[0];
So far I chose the latter because this way my tests are more readable.
I figured out you wanted to know about my issue :)
jsunitest is cool!
Cheers,
Szczepan