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:
4a99fcf
)
error case for an ajax test
author
Brandon Aaron
<brandon.aaron@gmail.com>
Sat, 16 May 2009 20:22:47 +0000
(20:22 +0000)
committer
Brandon Aaron
<brandon.aaron@gmail.com>
Sat, 16 May 2009 20:22:47 +0000
(20:22 +0000)
test/unit/ajax.js
patch
|
blob
|
history
diff --git
a/test/unit/ajax.js
b/test/unit/ajax.js
index
a049fec
..
5a95921
100644
(file)
--- a/
test/unit/ajax.js
+++ b/
test/unit/ajax.js
@@
-642,8
+642,12
@@
test("jQuery.ajax() - script, Remote with POST", function() {
type: "POST",
dataType: "script",
success: function(data, status){
- ok( foobar, "Script results returned (GET, no callback)" );
- equals( status, "success", "Script results returned (GET, no callback)" );
+ ok( foobar, "Script results returned (POST, no callback)" );
+ equals( status, "success", "Script results returned (POST, no callback)" );
+ start();
+ },
+ error: function(xhr) {
+ ok( false, "ajax error, status code: " + xhr.status );
start();
}
});