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
805832af
Commit
805832af
authored
Sep 29, 2009
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the jQuery suite to use the updated QUnit CSS styling.
parent
3b5de9df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
index.html
test/index.html
+2
-2
offset.js
test/unit/offset.js
+1
-1
selector.js
test/unit/selector.js
+3
-3
No files found.
test/index.html
View file @
805832af
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xml:lang=
"en"
lang=
"en"
dir=
"ltr"
id=
"html"
class=
"qunit"
>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xml:lang=
"en"
lang=
"en"
dir=
"ltr"
id=
"html"
>
<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>
jQuery Test Suite
</title>
<title>
jQuery Test Suite
</title>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</head>
</head>
<body
id=
"body"
>
<body
id=
"body"
>
<h1
id=
"header"
>
jQuery Test Suite
</h1>
<h1
id=
"
qunit-
header"
>
jQuery Test Suite
</h1>
<h2
id=
"qunit-banner"
></h2>
<h2
id=
"qunit-banner"
></h2>
<div
id=
"qunit-testrunner-toolbar"
></div>
<div
id=
"qunit-testrunner-toolbar"
></div>
<h2
id=
"qunit-userAgent"
></h2>
<h2
id=
"qunit-userAgent"
></h2>
...
...
test/unit/offset.js
View file @
805832af
...
@@ -305,7 +305,7 @@ test("offsetParent", function(){
...
@@ -305,7 +305,7 @@ test("offsetParent", function(){
equals
(
body
.
length
,
1
,
"Only one offsetParent found."
);
equals
(
body
.
length
,
1
,
"Only one offsetParent found."
);
equals
(
body
[
0
],
document
.
body
,
"The body is its own offsetParent."
);
equals
(
body
[
0
],
document
.
body
,
"The body is its own offsetParent."
);
var
header
=
jQuery
(
"#header"
).
offsetParent
();
var
header
=
jQuery
(
"#
qunit-
header"
).
offsetParent
();
equals
(
header
.
length
,
1
,
"Only one offsetParent found."
);
equals
(
header
.
length
,
1
,
"Only one offsetParent found."
);
equals
(
header
[
0
],
document
.
body
,
"The body is the offsetParent."
);
equals
(
header
[
0
],
document
.
body
,
"The body is the offsetParent."
);
...
...
test/unit/selector.js
View file @
805832af
...
@@ -28,8 +28,8 @@ test("element", function() {
...
@@ -28,8 +28,8 @@ test("element", function() {
same
(
jQuery
(
"*"
).
get
(),
jQuery
(
"*, *"
).
get
(),
"Check for duplicates: *, *"
);
same
(
jQuery
(
"*"
).
get
(),
jQuery
(
"*, *"
).
get
(),
"Check for duplicates: *, *"
);
same
(
jQuery
(
"p"
).
get
(),
jQuery
(
"p, div p"
).
get
(),
"Check for duplicates: p, div p"
);
same
(
jQuery
(
"p"
).
get
(),
jQuery
(
"p, div p"
).
get
(),
"Check for duplicates: p, div p"
);
t
(
"Checking sort order"
,
"h2, h1"
,
[
"header"
,
"qunit-banner"
,
"qunit-userAgent"
]
);
t
(
"Checking sort order"
,
"h2, h1"
,
[
"
qunit-
header"
,
"qunit-banner"
,
"qunit-userAgent"
]
);
t
(
"Checking sort order"
,
"h2:first, h1:first"
,
[
"header"
,
"qunit-banner"
]
);
t
(
"Checking sort order"
,
"h2:first, h1:first"
,
[
"
qunit-
header"
,
"qunit-banner"
]
);
t
(
"Checking sort order"
,
"p, p a"
,
[
"firstp"
,
"simon1"
,
"ap"
,
"google"
,
"groups"
,
"anchor1"
,
"mark"
,
"sndp"
,
"en"
,
"yahoo"
,
"sap"
,
"anchor2"
,
"simon"
,
"first"
]
);
t
(
"Checking sort order"
,
"p, p a"
,
[
"firstp"
,
"simon1"
,
"ap"
,
"google"
,
"groups"
,
"anchor1"
,
"mark"
,
"sndp"
,
"en"
,
"yahoo"
,
"sap"
,
"anchor2"
,
"simon"
,
"first"
]
);
});
});
...
@@ -409,6 +409,6 @@ test("pseudo (:) selectors", function() {
...
@@ -409,6 +409,6 @@ test("pseudo (:) selectors", function() {
t
(
"Form element :checkbox:checked"
,
"#form :checkbox:checked"
,
[
"check1"
]
);
t
(
"Form element :checkbox:checked"
,
"#form :checkbox:checked"
,
[
"check1"
]
);
t
(
"Form element :radio:checked, :checkbox:checked"
,
"#form :radio:checked, #form :checkbox:checked"
,
[
"radio2"
,
"check1"
]
);
t
(
"Form element :radio:checked, :checkbox:checked"
,
"#form :radio:checked, #form :checkbox:checked"
,
[
"radio2"
,
"check1"
]
);
t
(
"Headers"
,
":header"
,
[
"header"
,
"qunit-banner"
,
"qunit-userAgent"
]
);
t
(
"Headers"
,
":header"
,
[
"
qunit-
header"
,
"qunit-banner"
,
"qunit-userAgent"
]
);
t
(
"Has Children - :has()"
,
"p:has(a)"
,
[
"firstp"
,
"ap"
,
"en"
,
"sap"
]
);
t
(
"Has Children - :has()"
,
"p:has(a)"
,
[
"firstp"
,
"ap"
,
"en"
,
"sap"
]
);
});
});
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