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
a2c2d68d
Commit
a2c2d68d
authored
Nov 24, 2010
by
Anton M
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add unit test for fix to #7578.
parent
8259efe7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
ajax.js
test/unit/ajax.js
+13
-2
No files found.
test/unit/ajax.js
View file @
a2c2d68d
...
@@ -710,10 +710,10 @@ test("jQuery.getScript(String, Function) - no callback", function() {
...
@@ -710,10 +710,10 @@ test("jQuery.getScript(String, Function) - no callback", function() {
});
});
test
(
"jQuery.ajax() - JSONP, Local"
,
function
()
{
test
(
"jQuery.ajax() - JSONP, Local"
,
function
()
{
expect
(
8
);
expect
(
9
);
var
count
=
0
;
var
count
=
0
;
function
plus
(){
if
(
++
count
==
8
)
start
();
}
function
plus
(){
if
(
++
count
==
9
)
start
();
}
stop
();
stop
();
...
@@ -828,6 +828,17 @@ test("jQuery.ajax() - JSONP, Local", function() {
...
@@ -828,6 +828,17 @@ test("jQuery.ajax() - JSONP, Local", function() {
plus
();
plus
();
}
}
});
});
//#7578
jQuery
.
ajax
({
url
:
"data/jsonp.php"
,
dataType
:
"jsonp"
,
beforeSend
:
function
(){
strictEqual
(
this
.
cache
,
false
,
"cache must be false on JSON request"
);
plus
();
return
false
;
}
});
});
});
test
(
"JSONP - Custom JSONP Callback"
,
function
()
{
test
(
"JSONP - Custom JSONP Callback"
,
function
()
{
...
...
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