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
caa47c37
Commit
caa47c37
authored
Aug 05, 2011
by
Dave Methvin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #454 from rwldrn/test-suite-fix
Fixes assertion counts and dom element fixture issue
parents
e18cad6f
13647e94
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
16 deletions
+15
-16
index.html
test/index.html
+1
-2
attributes.js
test/unit/attributes.js
+14
-14
No files found.
test/index.html
View file @
caa47c37
...
@@ -229,6 +229,7 @@ Z</textarea>
...
@@ -229,6 +229,7 @@ Z</textarea>
<div
id=
"t6652"
>
<div
id=
"t6652"
>
<div></div>
<div></div>
</div>
</div>
<div
id=
"no-clone-exception"
><object><embed></embed></object></div>
</div>
</div>
<div
id=
"tabindex-tests"
>
<div
id=
"tabindex-tests"
>
...
@@ -284,8 +285,6 @@ Z</textarea>
...
@@ -284,8 +285,6 @@ Z</textarea>
</div>
</div>
<div
id=
"fx-tests"
></div>
<div
id=
"fx-tests"
></div>
<div
id=
"no-clone-exception"
><object><embed></embed></object></div>
</div>
</div>
</body>
</body>
</html>
</html>
test/unit/attributes.js
View file @
caa47c37
...
@@ -876,7 +876,7 @@ test("addClass(Function)", function() {
...
@@ -876,7 +876,7 @@ test("addClass(Function)", function() {
});
});
test
(
"addClass(Function) with incoming value"
,
function
()
{
test
(
"addClass(Function) with incoming value"
,
function
()
{
expect
(
4
5
);
expect
(
4
8
);
var
div
=
jQuery
(
"div"
),
old
=
div
.
map
(
function
(){
var
div
=
jQuery
(
"div"
),
old
=
div
.
map
(
function
(){
return
jQuery
(
this
).
attr
(
"class"
)
||
""
;
return
jQuery
(
this
).
attr
(
"class"
)
||
""
;
});
});
...
@@ -948,7 +948,7 @@ test("removeClass(Function) - simple", function() {
...
@@ -948,7 +948,7 @@ test("removeClass(Function) - simple", function() {
});
});
test
(
"removeClass(Function) with incoming value"
,
function
()
{
test
(
"removeClass(Function) with incoming value"
,
function
()
{
expect
(
4
5
);
expect
(
4
8
);
var
$divs
=
jQuery
(
"div"
).
addClass
(
"test"
),
old
=
$divs
.
map
(
function
(){
var
$divs
=
jQuery
(
"div"
).
addClass
(
"test"
),
old
=
$divs
.
map
(
function
(){
return
jQuery
(
this
).
attr
(
"class"
);
return
jQuery
(
this
).
attr
(
"class"
);
...
...
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