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
b36d58d4
Commit
b36d58d4
authored
Oct 15, 2012
by
James Huston
Committed by
Rick Waldron
Oct 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enforce expects in ajax.js (
https://github.com/jquery/2012-dev-summit/issues/53
) Closes gh-964
parent
611d7660
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
ajax.js
test/unit/ajax.js
+11
-0
No files found.
test/unit/ajax.js
View file @
b36d58d4
...
@@ -1879,6 +1879,8 @@ test("jQuery.post(String, Hash, Function) - simple with xml", function() {
...
@@ -1879,6 +1879,8 @@ test("jQuery.post(String, Hash, Function) - simple with xml", function() {
});
});
test
(
"jQuery.ajaxSetup({timeout: Number}) - with global timeout"
,
function
()
{
test
(
"jQuery.ajaxSetup({timeout: Number}) - with global timeout"
,
function
()
{
expect
(
1
);
stop
();
stop
();
var
passed
=
0
;
var
passed
=
0
;
...
@@ -1913,6 +1915,8 @@ test("jQuery.ajaxSetup({timeout: Number}) - with global timeout", function() {
...
@@ -1913,6 +1915,8 @@ test("jQuery.ajaxSetup({timeout: Number}) - with global timeout", function() {
});
});
test
(
"jQuery.ajaxSetup({timeout: Number}) with localtimeout"
,
function
()
{
test
(
"jQuery.ajaxSetup({timeout: Number}) with localtimeout"
,
function
()
{
expect
(
1
);
stop
();
stop
();
jQuery
.
ajaxSetup
({
timeout
:
50
});
jQuery
.
ajaxSetup
({
timeout
:
50
});
...
@@ -1990,6 +1994,8 @@ test("custom timeout does not set error message when timeout occurs, see #970",
...
@@ -1990,6 +1994,8 @@ test("custom timeout does not set error message when timeout occurs, see #970",
*/
*/
test
(
"data option: evaluate function values (#2806)"
,
function
()
{
test
(
"data option: evaluate function values (#2806)"
,
function
()
{
expect
(
1
);
stop
();
stop
();
jQuery
.
ajax
({
jQuery
.
ajax
({
url
:
"data/echoQuery.php"
,
url
:
"data/echoQuery.php"
,
...
@@ -2006,6 +2012,8 @@ test("data option: evaluate function values (#2806)", function() {
...
@@ -2006,6 +2012,8 @@ test("data option: evaluate function values (#2806)", function() {
});
});
test
(
"data option: empty bodies for non-GET requests"
,
function
()
{
test
(
"data option: empty bodies for non-GET requests"
,
function
()
{
expect
(
1
);
stop
();
stop
();
jQuery
.
ajax
({
jQuery
.
ajax
({
url
:
"data/echoData.php"
,
url
:
"data/echoData.php"
,
...
@@ -2153,6 +2161,7 @@ test("jQuery ajax - failing cross-domain", function() {
...
@@ -2153,6 +2161,7 @@ test("jQuery ajax - failing cross-domain", function() {
});
});
test
(
"jQuery ajax - atom+xml"
,
function
()
{
test
(
"jQuery ajax - atom+xml"
,
function
()
{
expect
(
1
);
stop
();
stop
();
...
@@ -2442,6 +2451,8 @@ test( "jQuery.domManip - script in comments are properly evaluated (#11402)", fu
...
@@ -2442,6 +2451,8 @@ test( "jQuery.domManip - script in comments are properly evaluated (#11402)", fu
});
});
test
(
"jQuery.ajax - active counter"
,
function
()
{
test
(
"jQuery.ajax - active counter"
,
function
()
{
expect
(
1
);
ok
(
jQuery
.
active
===
0
,
"ajax active counter should be zero: "
+
jQuery
.
active
);
ok
(
jQuery
.
active
===
0
,
"ajax active counter should be zero: "
+
jQuery
.
active
);
});
});
...
...
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