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
cbd51c50
Commit
cbd51c50
authored
May 12, 2015
by
Timmy Willison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: fix tests in accordance with new :visible behavior
parent
dd816dba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
css.js
test/unit/css.js
+6
-4
effects.js
test/unit/effects.js
+1
-1
No files found.
test/unit/css.js
View file @
cbd51c50
...
...
@@ -982,9 +982,9 @@ test( "css opacity consistency across browsers (#12685)", function() {
});
test
(
":visible/:hidden selectors"
,
function
()
{
expect
(
1
8
);
expect
(
1
7
);
var
$div
,
$
br
,
$
table
,
$a
;
var
$div
,
$table
,
$a
;
ok
(
jQuery
(
"#nothiddendiv"
).
is
(
":visible"
),
"Modifying CSS display: Assert element is visible"
);
jQuery
(
"#nothiddendiv"
).
css
({
display
:
"none"
});
...
...
@@ -1006,8 +1006,10 @@ test( ":visible/:hidden selectors", function() {
$div
.
css
(
{
width
:
0
,
height
:
0
,
overflow
:
"hidden"
}
);
ok
(
$div
.
is
(
":visible"
),
"Div with width and height of 0 is still visible (gh-2227)"
);
$br
=
jQuery
(
"<br/>"
).
appendTo
(
"#qunit-fixture"
);
ok
(
$br
.
is
(
":visible"
),
"br element is visible"
);
// Safari 6-7 and iOS 6-7 report 0 width for br elements
// When newer browsers propagate, re-enable this test
// $br = jQuery( "<br/>" ).appendTo( "#qunit-fixture" );
// ok( $br.is( ":visible" ), "br element is visible" );
$table
=
jQuery
(
"#table"
);
$table
.
html
(
"<tr><td style='display:none'>cell</td><td>cell</td></tr>"
);
...
...
test/unit/effects.js
View file @
cbd51c50
...
...
@@ -25,7 +25,7 @@ module("effects", {
test
(
"sanity check"
,
function
()
{
expect
(
1
);
equal
(
jQuery
(
"#dl:visible, #qunit-fixture:visible, #foo:visible"
).
length
,
2
,
"QUnit state is correct for testing effects"
);
equal
(
jQuery
(
"#dl:visible, #qunit-fixture:visible, #foo:visible"
).
length
,
3
,
"QUnit state is correct for testing effects"
);
});
test
(
"show() basic"
,
1
,
function
()
{
...
...
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