Added a fix for bug #1580, where the query string was appended to the POST data, instead of being left alone.
This commit is contained in:
parent
d9a3b133f1
commit
62d84e44ac
2 changed files with 20 additions and 13 deletions
|
@ -516,13 +516,20 @@ test("$.getJSON(String, Function) - JSON object", function() {
|
|||
});
|
||||
|
||||
test("$.post(String, Hash, Function) - simple with xml", function() {
|
||||
expect(2);
|
||||
expect(4);
|
||||
stop();
|
||||
$.post(url("data/name.php"), {xml: "5-2"}, function(xml){
|
||||
$('math', xml).each(function() {
|
||||
ok( $('calculation', this).text() == '5-2', 'Check for XML' );
|
||||
ok( $('result', this).text() == '3', 'Check for XML' );
|
||||
});
|
||||
});
|
||||
|
||||
$.post(url("data/name.php?xml=5-2"), {}, function(xml){
|
||||
$('math', xml).each(function() {
|
||||
ok( $('calculation', this).text() == '5-2', 'Check for XML' );
|
||||
ok( $('result', this).text() == '3', 'Check for XML' );
|
||||
});
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue