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
08fcde6a
Commit
08fcde6a
authored
Feb 04, 2011
by
Anton M
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove an invalid ajax test and some code that is no longer used by any test.
parent
8f8961de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
22 deletions
+1
-22
name.php
test/data/name.php
+1
-6
notmodified.php
test/data/notmodified.php
+0
-1
ajax.js
test/unit/ajax.js
+0
-15
No files found.
test/data/name.php
View file @
08fcde6a
...
...
@@ -19,11 +19,6 @@ if($name == 'foo') {
echo
"pan"
;
die
();
}
$request
=
apache_request_headers
();
$request
=
$request
[
'X-Custom-Header'
];
if
(
strlen
(
$request
)
>
0
)
{
echo
$request
;
die
();
}
echo
'ERROR <script type="text/javascript">ok( true, "name.php executed" );</script>'
;
?>
\ No newline at end of file
test/data/notmodified.php
deleted
100644 → 0
View file @
8f8961de
<?php
header
(
'HTTP/1.0 304 Not Modified'
);
exit
;
?>
test/unit/ajax.js
View file @
08fcde6a
...
...
@@ -524,21 +524,6 @@ test("jQuery ajax - cross-domain detection", function() {
});
test
(
".ajax() - 304"
,
function
()
{
expect
(
1
);
stop
();
jQuery
.
ajax
({
url
:
url
(
"data/notmodified.php"
),
success
:
function
(){
ok
(
true
,
"304 ok"
);
},
// Do this because opera simply refuses to implement 304 handling :(
// A feature-driven way of detecting this would be appreciated
// See: http://gist.github.com/599419
error
:
function
(){
ok
(
jQuery
.
browser
.
opera
,
"304 not ok "
);
},
complete
:
function
(
xhr
){
start
();
}
});
});
test
(
".load()) - 404 error callbacks"
,
function
()
{
expect
(
6
);
stop
();
...
...
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