We could move to a test system similar to the php parser tests.
Main advantage being no need to escape everything in addTest( '' );
<pre>
hash lines ignored
!! test
Title here
!! input
javascript = 'being';
evaluated.with = the.EvalFunction();
return evaluated.with;
!! output
hello world
!! type (typeof output)
string
!! end
</pre>
Or we could use an existing framework (jQuery QUnit[1]) or even an off-site environment (eg. TestSwarm)
[1] jQuery QUnit: http://docs.jquery.com/Qunit
Example: http://view.jquery.com/tags/1.3.2/test/
[2] TestSwarm: https://github.com/jeresig/testswarm/wiki
Version: 1.18.x
Severity: enhancement