add time to test.html request url using new Date().getTime()
This commit is contained in:
parent
443e41b740
commit
1267e79699
|
@ -75,7 +75,7 @@ test("load(String, Object, Function) - check scripts", function() {
|
||||||
ok( $('#ap').html() == 'bar', 'Check if script evaluation has modified DOM');
|
ok( $('#ap').html() == 'bar', 'Check if script evaluation has modified DOM');
|
||||||
start();
|
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( $('#first').html().match(/^html text/), 'Check content after loading html' );
|
||||||
ok( testFoo == "foo", 'Check if script was evaluated after load' );
|
ok( testFoo == "foo", 'Check if script was evaluated after load' );
|
||||||
setTimeout(verifyEvaluation, 600);
|
setTimeout(verifyEvaluation, 600);
|
||||||
|
@ -296,7 +296,7 @@ test("$.ajax - dataType html", function() {
|
||||||
};
|
};
|
||||||
$.ajax({
|
$.ajax({
|
||||||
dataType: "html",
|
dataType: "html",
|
||||||
url: "data/test.html",
|
url: "data/test.html?"+new Date().getTime(),
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
ok( data.match(/^html text/), 'Check content for datatype html' );
|
ok( data.match(/^html text/), 'Check content for datatype html' );
|
||||||
ok( testFoo == "foo", 'Check if script was evaluated for datatype html' );
|
ok( testFoo == "foo", 'Check if script was evaluated for datatype html' );
|
||||||
|
|
Loading…
Reference in a new issue