Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (43 sloc) 946 Bytes
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="x-js-quote.xsl"?>
<tests url="test.xml" name="x:js-quote">
<test>
<source>"</source>
<result>'"'</result>
</test>
<test>
<source>'</source>
<result>'\''</result>
</test>
<test>
<source>--</source>
<result>'-\-'</result>
</test>
<test>
<source>abc----def</source>
<result>'abc-\-\-\-def'</result>
</test>
<test>
<source>\\</source>
<result>'\\\\'</result>
</test>
<test>
<source>
</source>
<result>'\n'</result>
</test>
<test>
<source>&#13;&#10;&#13;&#10;</source>
<result>'\n\n'</result>
</test>
<test>
<source>&#13;&#13;</source>
<result>'\n\n'</result>
</test>
<test>
<source>Blah "blah"
blah
</source>
<result>'Blah "blah"\nblah\n'</result>
</test>
</tests>