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
d7104422
Commit
d7104422
authored
Apr 11, 2011
by
louisremi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the expected number of assertions shouldn't contain a condition
parent
6ddc3816
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
css.js
test/unit/css.js
+3
-3
No files found.
test/unit/css.js
View file @
d7104422
module
(
"css"
,
{
teardown
:
moduleTeardown
});
test
(
"css(String|Hash)"
,
function
()
{
expect
(
jQuery
.
support
.
opacity
?
41
:
42
);
expect
(
42
);
equals
(
jQuery
(
'#main'
).
css
(
"display"
),
'block'
,
'Check for css property "display"'
);
...
...
@@ -58,9 +58,9 @@ test("css(String|Hash)", function() {
equals
(
jQuery
(
'#empty'
).
css
(
'opacity'
),
'0'
,
"Assert opacity is accessible via filter property set in stylesheet in IE"
);
jQuery
(
'#empty'
).
css
({
opacity
:
'1'
});
equals
(
jQuery
(
'#empty'
).
css
(
'opacity'
),
'1'
,
"Assert opacity is taken from style attribute when set vs stylesheet in IE with filters"
);
if
(
!
jQuery
.
support
.
opacity
)
{
jQuery
.
support
.
opacity
?
ok
(
true
,
"Requires the same number of tests"
):
ok
(
~
jQuery
(
'#empty'
)[
0
].
currentStyle
.
filter
.
indexOf
(
'gradient'
),
"Assert setting opacity doesn't overwrite other filters of the stylesheet in IE"
);
}
var
div
=
jQuery
(
'#nothiddendiv'
),
child
=
jQuery
(
'#nothiddendivchild'
);
...
...
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