aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax
diff options
context:
space:
mode:
authorMike Alsup <malsup@gmail.com>2006-12-31 02:00:33 +0000
committerMike Alsup <malsup@gmail.com>2006-12-31 02:00:33 +0000
commit1267e796990b500730142fba16679859a6144550 (patch)
treebb39db3e1af97f82fabe625df40494a7740becec /src/ajax
parent443e41b74066782c06f799903708fb448a555294 (diff)
downloadjquery-1267e796990b500730142fba16679859a6144550.tar.gz
jquery-1267e796990b500730142fba16679859a6144550.zip
add time to test.html request url using new Date().getTime()
Diffstat (limited to 'src/ajax')
-rw-r--r--src/ajax/ajaxTest.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ajax/ajaxTest.js b/src/ajax/ajaxTest.js
index f530c1ce6..2c798a0bd 100644
--- a/src/ajax/ajaxTest.js
+++ b/src/ajax/ajaxTest.js
@@ -75,7 +75,7 @@ test("load(String, Object, Function) - check scripts", function() {
ok( $('#ap').html() == 'bar', 'Check if script evaluation has modified DOM');
start();
};
- $('#first').load('data/test.html', function() {
+ $('#first').load('data/test.html?'+new Date().getTime(), function() {
ok( $('#first').html().match(/^html text/), 'Check content after loading html' );
ok( testFoo == "foo", 'Check if script was evaluated after load' );
setTimeout(verifyEvaluation, 600);
@@ -296,7 +296,7 @@ test("$.ajax - dataType html", function() {
};
$.ajax({
dataType: "html",
- url: "data/test.html",
+ url: "data/test.html?"+new Date().getTime(),
success: function(data) {
ok( data.match(/^html text/), 'Check content for datatype html' );
ok( testFoo == "foo", 'Check if script was evaluated for datatype html' );