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
b4532576
Commit
b4532576
authored
Sep 23, 2007
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disabled the Ajax tests from running locally.
parent
595d1253
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
55 deletions
+57
-55
ajax.js
test/unit/ajax.js
+31
-33
core.js
test/unit/core.js
+26
-22
No files found.
test/unit/ajax.js
View file @
b4532576
...
@@ -5,6 +5,8 @@ module("ajax");
...
@@ -5,6 +5,8 @@ module("ajax");
// tests and they'll pass
// tests and they'll pass
//if ( !jQuery.browser.safari ) {
//if ( !jQuery.browser.safari ) {
if
(
!
isLocal
)
{
test
(
"$.ajax() - success callbacks"
,
function
()
{
test
(
"$.ajax() - success callbacks"
,
function
()
{
expect
(
8
);
expect
(
8
);
...
@@ -38,8 +40,7 @@ test("$.ajax() - success callbacks", function() {
...
@@ -38,8 +40,7 @@ test("$.ajax() - success callbacks", function() {
},
13
);
},
13
);
});
});
if
(
!
isLocal
)
{
test
(
"$.ajax() - error callbacks"
,
function
()
{
test
(
"$.ajax() - error callbacks"
,
function
()
{
expect
(
8
);
expect
(
8
);
stop
();
stop
();
...
@@ -67,8 +68,7 @@ if ( !isLocal ) {
...
@@ -67,8 +68,7 @@ if ( !isLocal ) {
error
:
function
(){
ok
(
true
,
"error"
);
},
error
:
function
(){
ok
(
true
,
"error"
);
},
complete
:
function
(){
ok
(
true
,
"complete"
);
}
complete
:
function
(){
ok
(
true
,
"complete"
);
}
});
});
});
});
}
test
(
"$.ajax() - disabled globals"
,
function
()
{
test
(
"$.ajax() - disabled globals"
,
function
()
{
expect
(
3
);
expect
(
3
);
...
@@ -346,8 +346,6 @@ test("$.getScript(String, Function) - no callback", function() {
...
@@ -346,8 +346,6 @@ test("$.getScript(String, Function) - no callback", function() {
$
.
getScript
(
url
(
"data/test.js"
),
start
);
$
.
getScript
(
url
(
"data/test.js"
),
start
);
});
});
if
(
!
isLocal
)
{
test
(
"$.ajax() - JSONP, Local"
,
function
()
{
test
(
"$.ajax() - JSONP, Local"
,
function
()
{
expect
(
7
);
expect
(
7
);
...
...
test/unit/core.js
View file @
b4532576
...
@@ -213,7 +213,8 @@ test("attr(String)", function() {
...
@@ -213,7 +213,8 @@ test("attr(String)", function() {
ok
(
$
(
'#tAnchor5'
).
attr
(
'href'
)
==
"#5"
,
'Check for non-absolute href (an anchor)'
);
ok
(
$
(
'#tAnchor5'
).
attr
(
'href'
)
==
"#5"
,
'Check for non-absolute href (an anchor)'
);
});
});
test
(
"attr(String) in XML Files"
,
function
()
{
if
(
!
isLocal
)
{
test
(
"attr(String) in XML Files"
,
function
()
{
expect
(
2
);
expect
(
2
);
stop
();
stop
();
$
.
get
(
"data/dashboard.xml"
,
function
(
xml
)
{
$
.
get
(
"data/dashboard.xml"
,
function
(
xml
)
{
...
@@ -221,7 +222,8 @@ test("attr(String) in XML Files", function() {
...
@@ -221,7 +222,8 @@ test("attr(String) in XML Files", function() {
ok
(
$
(
"location"
,
xml
).
attr
(
"for"
)
==
"bar"
,
"Check for attribute in XML document"
);
ok
(
$
(
"location"
,
xml
).
attr
(
"for"
)
==
"bar"
,
"Check for attribute in XML document"
);
start
();
start
();
});
});
});
});
}
test
(
"attr(String, Function)"
,
function
()
{
test
(
"attr(String, Function)"
,
function
()
{
expect
(
2
);
expect
(
2
);
...
@@ -286,7 +288,8 @@ test("attr(String, Object)", function() {
...
@@ -286,7 +288,8 @@ test("attr(String, Object)", function() {
equals
(
"checkbox"
,
$
(
check
).
attr
(
'type'
),
"Verify that you can change the type of an input element that isn't in the DOM"
);
equals
(
"checkbox"
,
$
(
check
).
attr
(
'type'
),
"Verify that you can change the type of an input element that isn't in the DOM"
);
});
});
test
(
"attr(String, Object) - Loaded via XML document"
,
function
()
{
if
(
!
isLocal
)
{
test
(
"attr(String, Object) - Loaded via XML document"
,
function
()
{
expect
(
2
);
expect
(
2
);
stop
();
stop
();
$
.
get
(
'data/dashboard.xml'
,
function
(
xml
)
{
$
.
get
(
'data/dashboard.xml'
,
function
(
xml
)
{
...
@@ -298,7 +301,8 @@ test("attr(String, Object) - Loaded via XML document", function() {
...
@@ -298,7 +301,8 @@ test("attr(String, Object) - Loaded via XML document", function() {
ok
(
titles
[
1
]
==
'Users'
,
'attr() in XML context: Check second title'
);
ok
(
titles
[
1
]
==
'Users'
,
'attr() in XML context: Check second title'
);
start
();
start
();
});
});
});
});
}
test
(
"css(String|Hash)"
,
function
()
{
test
(
"css(String|Hash)"
,
function
()
{
expect
(
19
);
expect
(
19
);
...
...
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