Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
84eb2cff
Commit
84eb2cff
authored
Sep 05, 2007
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot to update the $.param() tests.
parent
ad5539ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ajaxTest.js
src/ajax/ajaxTest.js
+5
-5
No files found.
src/ajax/ajaxTest.js
View file @
84eb2cff
...
...
@@ -3,7 +3,7 @@ module("ajax");
// Safari 3 randomly crashes when running these tests,
// but only in the full suite - you can run just the Ajax
// tests and they'll pass
if
(
!
jQuery
.
browser
.
safari
)
{
//
if ( !jQuery.browser.safari ) {
test
(
"$.ajax() - success callbacks"
,
function
()
{
expect
(
8
);
...
...
@@ -193,16 +193,16 @@ test("serialize()", function() {
test
(
"$.param()"
,
function
()
{
expect
(
4
);
var
params
=
{
foo
:
"bar"
,
baz
:
42
,
quux
:
"All your base are belong to us"
};
equals
(
$
.
param
(
params
),
"foo=bar&baz=42&quux=All
%20your%20base%20are%20belong%20to%20
us"
,
"simple"
);
equals
(
$
.
param
(
params
),
"foo=bar&baz=42&quux=All
+your+base+are+belong+to+
us"
,
"simple"
);
params
=
{
someName
:
[
1
,
2
,
3
],
regularThing
:
"blah"
};
equals
(
$
.
param
(
params
),
"someName=1&someName=2&someName=3®ularThing=blah"
,
"with array"
);
params
=
{
"foo[]"
:[
"baz"
,
42
,
"All your base are belong to us"
]};
equals
(
$
.
param
(
params
),
"foo%5B%5D=baz&foo%5B%5D=42&foo%5B%5D=All
%20your%20base%20are%20belong%20to%20
us"
,
"more array"
);
equals
(
$
.
param
(
params
),
"foo%5B%5D=baz&foo%5B%5D=42&foo%5B%5D=All
+your+base+are+belong+to+
us"
,
"more array"
);
params
=
{
"foo[bar]"
:
"baz"
,
"foo[beep]"
:
42
,
"foo[quux]"
:
"All your base are belong to us"
};
equals
(
$
.
param
(
params
),
"foo%5Bbar%5D=baz&foo%5Bbeep%5D=42&foo%5Bquux%5D=All
%20your%20base%20are%20belong%20to%20
us"
,
"even more arrays"
);
equals
(
$
.
param
(
params
),
"foo%5Bbar%5D=baz&foo%5Bbeep%5D=42&foo%5Bquux%5D=All
+your+base+are+belong+to+
us"
,
"even more arrays"
);
});
test
(
"synchronous request"
,
function
()
{
...
...
@@ -638,4 +638,4 @@ test("custom timeout does not set error message when timeout occurs, see #970",
}
}
//
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment