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
a3055f3d
Commit
a3055f3d
authored
Jan 26, 2013
by
Dave Methvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #13316. Use minified version in unit testing.
Also migrates the XHR check added to 2.0 in
62acda81
.
parent
ac93559e
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
53 additions
and
28 deletions
+53
-28
unreleasedXHR.html
test/data/ajax/unreleasedXHR.html
+25
-0
documentLarge.html
test/data/dimensions/documentLarge.html
+1
-1
documentSmall.html
test/data/dimensions/documentSmall.html
+1
-1
promiseReady.html
test/data/event/promiseReady.html
+1
-1
syncReady.html
test/data/event/syncReady.html
+1
-1
iframe-denied.html
test/data/manipulation/iframe-denied.html
+1
-1
absolute.html
test/data/offset/absolute.html
+1
-1
body.html
test/data/offset/body.html
+1
-1
fixed.html
test/data/offset/fixed.html
+1
-1
relative.html
test/data/offset/relative.html
+1
-1
scroll.html
test/data/offset/scroll.html
+1
-1
static.html
test/data/offset/static.html
+1
-1
table.html
test/data/offset/table.html
+1
-1
html5_selector.html
test/data/selector/html5_selector.html
+1
-1
sizzle_cache.html
test/data/selector/sizzle_cache.html
+1
-1
bodyBackground.html
test/data/support/bodyBackground.html
+1
-1
shrinkWrapBlocks.html
test/data/support/shrinkWrapBlocks.html
+1
-1
testElementCrash.html
test/data/support/testElementCrash.html
+1
-1
delegatetest.html
test/delegatetest.html
+1
-1
hovertest.html
test/hovertest.html
+1
-1
index.html
test/index.html
+6
-6
localfile.html
test/localfile.html
+1
-1
networkerror.html
test/networkerror.html
+1
-1
readywait.html
test/readywait.html
+1
-1
No files found.
test/data/ajax/unreleasedXHR.html
0 → 100644
View file @
a3055f3d
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=utf-8"
>
<title>
Attempt to block tests because of dangling XHR requests (IE)
</title>
<script
type=
"text/javascript"
src=
"../../../dist/jquery.min.js"
></script>
<script
type=
"text/javascript"
>
window
.
onunload
=
function
()
{};
jQuery
(
function
()
{
setTimeout
(
function
()
{
var
parent
=
window
.
parent
;
document
.
write
(
""
);
parent
.
iframeCallback
();
},
200
);
var
number
=
50
;
while
(
number
--
)
{
jQuery
.
ajax
(
"../name.php?wait=600"
);
}
});
</script>
</head>
<body>
<!-- empty body -->
</body>
</html>
test/data/dimensions/documentLarge.html
View file @
a3055f3d
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</head>
</head>
<body>
<body>
<div>
<div>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
</div>
</div>
</body>
</body>
</html>
</html>
test/data/dimensions/documentSmall.html
View file @
a3055f3d
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</head>
</head>
<body>
<body>
<div>
<div>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
</div>
</div>
</body>
</body>
</html>
</html>
test/data/event/promiseReady.html
View file @
a3055f3d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<head>
<head>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=utf-8"
>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=utf-8"
>
<title>
Test case for jQuery ticket #11470
</title>
<title>
Test case for jQuery ticket #11470
</title>
<script
type=
"text/javascript"
src=
"../../../dist/jquery.js"
></script>
<script
type=
"text/javascript"
src=
"../../../dist/jquery.
min.
js"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
jQuery
.
when
(
jQuery
.
ready
).
done
(
function
()
{
jQuery
.
when
(
jQuery
.
ready
).
done
(
function
()
{
jQuery
(
"body"
).
append
(
"<div>modifying DOM</div>"
);
jQuery
(
"body"
).
append
(
"<div>modifying DOM</div>"
);
...
...
test/data/event/syncReady.html
View file @
a3055f3d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<head>
<head>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=utf-8"
>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=utf-8"
>
<title>
Test case for jQuery ticket #10067
</title>
<title>
Test case for jQuery ticket #10067
</title>
<script
type=
"text/javascript"
src=
"../../../dist/jquery.js"
></script>
<script
type=
"text/javascript"
src=
"../../../dist/jquery.
min.
js"
></script>
</head>
</head>
<body>
<body>
...
...
test/data/manipulation/iframe-denied.html
View file @
a3055f3d
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
</head>
</head>
<body>
<body>
<div
id=
"qunit-fixture"
></div>
<div
id=
"qunit-fixture"
></div>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
<script>
<script>
var
script
=
document
.
getElementsByTagName
(
"script"
)[
0
],
var
script
=
document
.
getElementsByTagName
(
"script"
)[
0
],
div
=
document
.
createElement
(
"div"
),
div
=
document
.
createElement
(
"div"
),
...
...
test/data/offset/absolute.html
View file @
a3055f3d
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
p
.instructions
{
position
:
absolute
;
bottom
:
0
;
}
p
.instructions
{
position
:
absolute
;
bottom
:
0
;
}
#positionTest
{
position
:
absolute
;
}
#positionTest
{
position
:
absolute
;
}
</style>
</style>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
jQuery
(
function
(
$
)
{
jQuery
(
function
(
$
)
{
$
(
'.absolute'
).
click
(
function
()
{
$
(
'.absolute'
).
click
(
function
()
{
...
...
test/data/offset/body.html
View file @
a3055f3d
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#marker
{
position
:
absolute
;
border
:
2px
solid
#000
;
width
:
50px
;
height
:
50px
;
background
:
#ccc
;
}
#marker
{
position
:
absolute
;
border
:
2px
solid
#000
;
width
:
50px
;
height
:
50px
;
background
:
#ccc
;
}
#firstElement
{
width
:
50px
;
height
:
50px
;
background
:
green
;
}
#firstElement
{
width
:
50px
;
height
:
50px
;
background
:
green
;
}
</style>
</style>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
jQuery
(
function
(
$
)
{
jQuery
(
function
(
$
)
{
$
(
'body'
).
click
(
function
()
{
$
(
'body'
).
click
(
function
()
{
...
...
test/data/offset/fixed.html
View file @
a3055f3d
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
#forceScroll
{
width
:
5000px
;
height
:
5000px
;
}
#forceScroll
{
width
:
5000px
;
height
:
5000px
;
}
#marker
{
position
:
absolute
;
border
:
2px
solid
#000
;
width
:
50px
;
height
:
50px
;
background
:
#ccc
;
}
#marker
{
position
:
absolute
;
border
:
2px
solid
#000
;
width
:
50px
;
height
:
50px
;
background
:
#ccc
;
}
</style>
</style>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
jQuery
(
function
(
$
)
{
jQuery
(
function
(
$
)
{
window
.
scrollTo
(
1000
,
1000
);
window
.
scrollTo
(
1000
,
1000
);
...
...
test/data/offset/relative.html
View file @
a3055f3d
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
#relative-2
{
top
:
20px
;
left
:
20px
;
}
#relative-2
{
top
:
20px
;
left
:
20px
;
}
#marker
{
position
:
absolute
;
border
:
2px
solid
#000
;
width
:
50px
;
height
:
50px
;
background
:
#ccc
;
}
#marker
{
position
:
absolute
;
border
:
2px
solid
#000
;
width
:
50px
;
height
:
50px
;
background
:
#ccc
;
}
</style>
</style>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
jQuery
(
function
(
$
)
{
jQuery
(
function
(
$
)
{
$
(
'.relative'
).
click
(
function
()
{
$
(
'.relative'
).
click
(
function
()
{
...
...
test/data/offset/scroll.html
View file @
a3055f3d
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
#forceScroll
{
width
:
5000px
;
height
:
5000px
;
}
#forceScroll
{
width
:
5000px
;
height
:
5000px
;
}
#marker
{
position
:
absolute
;
border
:
2px
solid
#000
;
width
:
50px
;
height
:
50px
;
background
:
#ccc
;
}
#marker
{
position
:
absolute
;
border
:
2px
solid
#000
;
width
:
50px
;
height
:
50px
;
background
:
#ccc
;
}
</style>
</style>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
jQuery
(
function
(
$
)
{
jQuery
(
function
(
$
)
{
window
.
scrollTo
(
1000
,
1000
);
window
.
scrollTo
(
1000
,
1000
);
...
...
test/data/offset/static.html
View file @
a3055f3d
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
#static-2
{
top
:
20px
;
left
:
20px
;
}
#static-2
{
top
:
20px
;
left
:
20px
;
}
#marker
{
position
:
absolute
;
border
:
2px
solid
#000
;
width
:
50px
;
height
:
50px
;
background
:
#ccc
;
}
#marker
{
position
:
absolute
;
border
:
2px
solid
#000
;
width
:
50px
;
height
:
50px
;
background
:
#ccc
;
}
</style>
</style>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
jQuery
(
function
(
$
)
{
jQuery
(
function
(
$
)
{
$
(
'.static'
).
click
(
function
()
{
$
(
'.static'
).
click
(
function
()
{
...
...
test/data/offset/table.html
View file @
a3055f3d
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
th
,
td
{
border
:
1px
solid
#000
;
width
:
100px
;
height
:
100px
;
}
th
,
td
{
border
:
1px
solid
#000
;
width
:
100px
;
height
:
100px
;
}
#marker
{
position
:
absolute
;
border
:
2px
solid
#000
;
width
:
50px
;
height
:
50px
;
background
:
#ccc
;
}
#marker
{
position
:
absolute
;
border
:
2px
solid
#000
;
width
:
50px
;
height
:
50px
;
background
:
#ccc
;
}
</style>
</style>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
jQuery
(
function
(
$
)
{
jQuery
(
function
(
$
)
{
$
(
'table, th, td'
).
click
(
function
()
{
$
(
'table, th, td'
).
click
(
function
()
{
...
...
test/data/selector/html5_selector.html
View file @
a3055f3d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
>
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
>
<title>
jQuery selector - attributes
</title>
<title>
jQuery selector - attributes
</title>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
<script
id=
"script1"
<script
id=
"script1"
defer
defer
...
...
test/data/selector/sizzle_cache.html
View file @
a3055f3d
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<script>
<script>
var
$cached
=
jQuery
.
noConflict
(
true
);
var
$cached
=
jQuery
.
noConflict
(
true
);
</script>
</script>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
</head>
</head>
<body>
<body>
...
...
test/data/support/bodyBackground.html
View file @
a3055f3d
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</head>
</head>
<body>
<body>
<div>
<div>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
</div>
</div>
<script>
<script>
jQuery
(
function
()
{
jQuery
(
function
()
{
...
...
test/data/support/shrinkWrapBlocks.html
View file @
a3055f3d
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</head>
</head>
<body>
<body>
<div>
<div>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
</div>
</div>
<script>
<script>
jQuery
(
function
()
{
jQuery
(
function
()
{
...
...
test/data/support/testElementCrash.html
View file @
a3055f3d
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
background
:
url('../1x1.jpg')
;
background
:
url('../1x1.jpg')
;
}
}
</style>
</style>
<script
src=
"../../../dist/jquery.js"
></script>
<script
src=
"../../../dist/jquery.
min.
js"
></script>
</head>
</head>
<body>
<body>
<script>
<script>
...
...
test/delegatetest.html
View file @
a3055f3d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<html>
<html>
<head>
<head>
<title>
Event Delegation Tests
</title>
<title>
Event Delegation Tests
</title>
<script
src=
"../dist/jquery.js"
></script>
<script
src=
"../dist/jquery.
min.
js"
></script>
<style>
<style>
table
{
table
{
border-collapse
:
collapse
;
border-collapse
:
collapse
;
...
...
test/hovertest.html
View file @
a3055f3d
<html>
<html>
<head>
<head>
<title>
Hover tests
</title>
<title>
Hover tests
</title>
<script
src=
"../dist/jquery.js"
></script>
<script
src=
"../dist/jquery.
min.
js"
></script>
<style>
<style>
/* Remove body dimensions so we can test enter/leave to surrounding browser chrome */
/* Remove body dimensions so we can test enter/leave to surrounding browser chrome */
body
,
html
{
body
,
html
{
...
...
test/index.html
View file @
a3055f3d
...
@@ -16,16 +16,16 @@
...
@@ -16,16 +16,16 @@
<script
src=
"qunit/qunit/qunit.js"
></script>
<script
src=
"qunit/qunit/qunit.js"
></script>
<script>
<script>
(
function
()
{
(
function
()
{
var
src
=
"../dist/jquery.js"
;
var
src
=
"../dist/jquery.
min.
js"
;
// Config parameter to use minified jQuery
// Config parameter to use minified jQuery
QUnit
.
config
.
urlConfig
.
push
({
QUnit
.
config
.
urlConfig
.
push
({
id
:
"
min
"
,
id
:
"
dev
"
,
label
:
"Load minified"
,
label
:
"Load
un
minified"
,
tooltip
:
"Load the
minified version of the jQuery build
"
tooltip
:
"Load the
development (unminified) jQuery file
"
});
});
if
(
QUnit
.
urlParams
.
min
)
{
if
(
QUnit
.
urlParams
.
dev
)
{
src
=
"../dist/jquery.
min.
js"
;
src
=
"../dist/jquery.js"
;
}
}
// Config parameter to force basic code paths
// Config parameter to force basic code paths
...
...
test/localfile.html
View file @
a3055f3d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>
jQuery Local File Test
</title>
<title>
jQuery Local File Test
</title>
<!-- Includes -->
<!-- Includes -->
<script
src=
"../dist/jquery.js"
></script>
<script
src=
"../dist/jquery.
min.
js"
></script>
<style>
<style>
.error
{
color
:
red
;
}
.error
{
color
:
red
;
}
.success
{
color
:
green
;
}
.success
{
color
:
green
;
}
...
...
test/networkerror.html
View file @
a3055f3d
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<style>
<style>
div
{
margin-top
:
10px
;
}
div
{
margin-top
:
10px
;
}
</style>
</style>
<script
src=
"../dist/jquery.js"
></script>
<script
src=
"../dist/jquery.
min.
js"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
'button'
).
live
(
'click'
,
function
()
{
$
(
'button'
).
live
(
'click'
,
function
()
{
$
.
ajax
({
$
.
ajax
({
...
...
test/readywait.html
View file @
a3055f3d
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
#output
{
background-color
:
green
}
#output
{
background-color
:
green
}
#expectedOutput
{
background-color
:
green
}
#expectedOutput
{
background-color
:
green
}
</style>
</style>
<script
src=
"../dist/jquery.js"
></script>
<script
src=
"../dist/jquery.
min.
js"
></script>
<!-- Load the script loader that uses
<!-- Load the script loader that uses
jQuery.readyWait -->
jQuery.readyWait -->
...
...
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