git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
443e41b
)
add time to test.html request url using new Date().getTime()
author
Mike Alsup
<malsup@gmail.com>
Sun, 31 Dec 2006 02:00:33 +0000
(
02:00
+0000)
committer
Mike Alsup
<malsup@gmail.com>
Sun, 31 Dec 2006 02:00:33 +0000
(
02:00
+0000)
src/ajax/ajaxTest.js
patch
|
blob
|
history
diff --git
a/src/ajax/ajaxTest.js
b/src/ajax/ajaxTest.js
index
f530c1c
..
2c798a0
100644
(file)
--- 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();
};
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);
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",
};
$.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' );
success: function(data) {
ok( data.match(/^html text/), 'Check content for datatype html' );
ok( testFoo == "foo", 'Check if script was evaluated for datatype html' );