MCPcopy Index your code
hub / github.com/jquery/jquery / test

Function test

test/unit/manipulation.js:3125–3139  ·  view source on GitHub ↗
( htmlString )

Source from the content-addressed store, hash-verified

3123 container.appendTo( "#qunit-fixture" );
3124
3125 function test( htmlString ) {
3126 var currCounter = counter,
3127 div = jQuery( "<div></div>" );
3128
3129 counter++;
3130
3131 div.appendTo( container );
3132 div.html( htmlString );
3133
3134 setTimeout( function() {
3135 assert.ok( window.xss.withArgs( currCounter ).notCalled,
3136 "Insecure code wasn't executed, input: " + htmlString );
3137 done();
3138 }, 1000 );
3139 }
3140
3141 // Note: below test cases need to invoke the xss function with consecutive
3142 // decimal parameters for the assertion messages to be correct.

Callers 1

manipulation.jsFile · 0.70

Calls 2

doneFunction · 0.70
jQueryFunction · 0.50

Tested by

no test coverage detected