( htmlString )
| 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. |
no test coverage detected