Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
a7a9a143
Commit
a7a9a143
authored
11 years ago
by
fat
Browse files
Options
Download
Email Patches
Plain Diff
fix @muan's unit test ;)
parent
102df4ff
3 merge requests
!8635
ignore Gruntfile.js in jekyll
,
!8656
Added rel="stylesheet" to CDN-Examples
,
!8527
Inner properties move 1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/tests/unit/tooltip.js
+6
-6
js/tests/unit/tooltip.js
with
6 additions
and
6 deletions
+6
-6
js/tests/unit/tooltip.js
+
6
-
6
View file @
a7a9a143
...
...
@@ -294,15 +294,15 @@ $(function () {
test
(
"
should add position class before positioning so that position-specific styles are taken into account
"
,
function
(){
$
(
"
head
"
).
append
(
'
<style> .tooltip.right { white-space: nowrap; } .tooltip.right .tooltip-inner { max-width: none; } </style>
'
)
var
container
=
$
(
"
<div />
"
).
appendTo
(
"
body
"
)
,
target
=
$
(
'
<a href="#" rel="tooltip" title="very very very very very very very very long tooltip in one line">To my right</a>
'
)
.
appendTo
(
container
)
.
tooltip
({
placement
:
'
right
'
})
.
tooltip
(
'
show
'
)
.
appendTo
(
container
)
.
tooltip
({
placement
:
'
right
'
})
.
tooltip
(
'
show
'
)
,
tooltip
=
container
.
find
(
"
.tooltip
"
)
ok
(
Math
.
round
(
target
.
offset
().
top
+
target
[
0
].
offsetHeight
/
2
-
tooltip
[
0
].
offsetHeight
/
2
)
===
tooltip
.
offset
().
top
)
ok
(
Math
.
round
(
target
.
offset
().
top
+
target
[
0
].
offsetHeight
/
2
-
tooltip
[
0
].
offsetHeight
/
2
)
===
Math
.
round
(
tooltip
.
offset
().
top
)
)
target
.
tooltip
(
'
hide
'
)
})
})
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets