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
8a33a855
Commit
8a33a855
authored
Dec 03, 2009
by
jeresig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaked a CSS test to handle differences in font-size % support in browsers.
parent
9d6c4d84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
css.js
test/unit/css.js
+8
-1
No files found.
test/unit/css.js
View file @
8a33a855
...
...
@@ -47,8 +47,15 @@ test("css(String|Hash)", function() {
child
.
attr
(
"class"
,
"em"
);
equals
(
parseInt
(
child
.
css
(
"fontSize"
)),
32
,
"Verify fontSize em set."
);
// Have to verify this as the result depends upon the browser's CSS
// support for font-size percentages
child
.
attr
(
"class"
,
"prct"
);
equals
(
parseInt
(
child
.
css
(
"fontSize"
)),
24
,
"Verify fontSize % set."
);
var
prctval
=
parseInt
(
child
.
css
(
"fontSize"
)),
checkval
=
0
;
if
(
prctval
===
16
||
prctval
===
24
)
{
checkval
=
prctval
;
}
equals
(
prctval
,
checkval
,
"Verify fontSize % set."
);
});
test
(
"css(String, Object)"
,
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