Got some XHR tests to run, still some hanging threads (need to investigate). Started...
[jquery.git] / build / runtest / testrunner.js
index 27822f9..363cd9b 100644 (file)
@@ -181,4 +181,17 @@ function triggerEvent( elem, type, event ) {
                elem.fireEvent("on"+type);
        }
 */
+}
+
+/**
+ * Add random number to url to stop IE from caching
+ *
+ * @example url("data/test.html")
+ * @result "data/test.html?10538358428943"
+ *
+ * @example url("data/test.php?foo=bar")
+ * @result "data/test.php?foo=bar&10538358345554"
+ */
+function url(value) {
+       return value + (/\?/.test(value) ? "&" : "?") + new Date().getTime() + "" + parseInt(Math.random()*100000);
 }
\ No newline at end of file