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
4130319e
Commit
4130319e
authored
Apr 20, 2009
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added explicit module names to the new unit tests.
parent
27641273
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
attributes.js
test/unit/attributes.js
+3
-1
css.js
test/unit/css.js
+3
-1
manipulation.js
test/unit/manipulation.js
+2
-0
traversing.js
test/unit/traversing.js
+3
-1
No files found.
test/unit/attributes.js
View file @
4130319e
module
(
"attributes"
);
test
(
"attr(String)"
,
function
()
{
expect
(
27
);
equals
(
jQuery
(
'#text1'
).
attr
(
'value'
),
"Test"
,
'Check for value attribute'
);
...
...
@@ -316,4 +318,4 @@ test("jQuery.className", function() {
equals
(
x
.
className
,
"hi bar"
,
"Check removal of one class"
);
ok
(
c
.
has
(
x
,
"hi"
),
"Check has1"
);
ok
(
c
.
has
(
x
,
"bar"
),
"Check has2"
);
});
\ No newline at end of file
});
test/unit/css.js
View file @
4130319e
module
(
"css"
);
test
(
"css(String|Hash)"
,
function
()
{
expect
(
19
);
...
...
@@ -79,4 +81,4 @@ test("jQuery.css(elem, 'height') doesn't clear radio buttons (bug #1095)", funct
ok
(
!
jQuery
(
":radio:last"
,
$checkedtest
).
attr
(
"checked"
),
"Check last radio still NOT checked."
);
ok
(
!!
jQuery
(
":checkbox:first"
,
$checkedtest
).
attr
(
"checked"
),
"Check first checkbox still checked."
);
ok
(
!
jQuery
(
":checkbox:last"
,
$checkedtest
).
attr
(
"checked"
),
"Check last checkbox still NOT checked."
);
});
\ No newline at end of file
});
test/unit/manipulation.js
View file @
4130319e
module
(
"manipulation"
);
test
(
"text()"
,
function
()
{
expect
(
1
);
var
expected
=
"This link has class=
\"
blog
\"
: Simon Willison's Weblog"
;
...
...
test/unit/traversing.js
View file @
4130319e
module
(
"traversing"
);
test
(
"end()"
,
function
()
{
expect
(
3
);
equals
(
'Yahoo'
,
jQuery
(
'#yahoo'
).
parent
().
end
().
text
(),
'Check for end'
);
...
...
@@ -243,4 +245,4 @@ test("contents()", function() {
var
c
=
jQuery
(
"#nonnodes"
).
contents
().
contents
();
equals
(
c
.
length
,
1
,
"Check node,textnode,comment contents is just one"
);
equals
(
c
[
0
].
nodeValue
,
"hi"
,
"Check node,textnode,comment contents is just the one from span"
);
});
\ No newline at end of file
});
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