Adding in test case to support #9211.

This commit is contained in:
John Resig 2011-05-11 11:43:37 -04:00
parent 391398cf23
commit f794f48f02
3 changed files with 12 additions and 5 deletions

View file

@ -1398,7 +1398,7 @@ test("jQuery.buildFragment - no plain-text caching (Bug #6779)", function() {
});
test( "jQuery.html - execute scripts escaped with html comment or CDATA (#9221)", function() {
expect( 2 );
expect( 3 );
jQuery( [
'<script type="text/javascript">',
'<!--',
@ -1413,4 +1413,11 @@ test( "jQuery.html - execute scripts escaped with html comment or CDATA (#9221)"
'//]]>',
'</script>'
].join ( "\n" ) ).appendTo( "#qunit-fixture" );
jQuery( [
'<script type="text/javascript">',
'<!--//--><![CDATA[//><!--',
'ok( true, "<!--//--><![CDATA[//><!-- (Drupal case) handled" );',
'//--><!]]>',
'</script>'
].join ( "\n" ) ).appendTo( "#qunit-fixture" );
});