* Add random number to url to stop caching * * Also prefixes with baseURL automatically. * * @example url("index.html") * @result "data/index.html?10538358428943" * * @example url("mock.php?foo=bar") * @result "data/mock.php?foo=bar&10538358345554"
( value )
| 157 | * @result "data/mock.php?foo=bar&10538358345554" |
| 158 | */ |
| 159 | function url( value ) { |
| 160 | return baseURL + value + ( /\?/.test( value ) ? "&" : "?" ) + |
| 161 | new Date().getTime() + "" + parseInt( Math.random() * 100000, 10 ); |
| 162 | } |
| 163 | |
| 164 | // Ajax testing helper |
| 165 | this.ajaxTest = function( title, expect, options, wrapper ) { |
no outgoing calls
no test coverage detected