aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/manipulation.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2011-05-11 11:43:37 -0400
committerJohn Resig <jeresig@gmail.com>2011-05-11 11:43:37 -0400
commitf794f48f02232811c55663fcb511fc9d8be26824 (patch)
tree3456be22c57ba590d6fc02f5310e119b6277709d /test/unit/manipulation.js
parent391398cf23603201f63c6e815a287e0cb107988c (diff)
downloadjquery-f794f48f02232811c55663fcb511fc9d8be26824.tar.gz
jquery-f794f48f02232811c55663fcb511fc9d8be26824.zip
Adding in test case to support #9211.
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r--test/unit/manipulation.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index 0f980463f..2f125b17e 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -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" );
});