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
3beeb32b
Commit
3beeb32b
authored
10 years ago
by
Heinrich Fenkart
Browse files
Options
Download
Email Patches
Plain Diff
Follow-up to #14581: Use div instead of HTML5 section for IE8
parent
db9e8ee8
4 merge requests
!28721
Hot test
,
!16605
Test pull please ignore
,
!22103
test
,
!25326
Adjust examples
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 @
3beeb32b
...
...
@@ -385,17 +385,17 @@ $(function () {
test
(
'
should position tip on top if viewport has enough space and placement is "auto top"
'
,
function
()
{
var
styles
=
'
<style>
'
+
'
body { padding-top: 100px; }
'
+
'
section { height: 300px; border: 1px solid red; padding-top: 50px }
'
+
'
#
section { height: 300px; border: 1px solid red; padding-top: 50px }
'
+
'
div[rel="tooltip"] { width: 150px; border: 1px solid blue; }
'
+
'
</style>
'
var
$styles
=
$
(
styles
).
appendTo
(
'
head
'
)
var
$container
=
$
(
'
<section/>
'
).
appendTo
(
'
#qunit-fixture
'
)
var
$container
=
$
(
'
<
div id="
section
"
/>
'
).
appendTo
(
'
#qunit-fixture
'
)
var
$target
=
$
(
'
<div rel="tooltip" title="tip"/>
'
)
.
appendTo
(
$container
)
.
bootstrapTooltip
({
placement
:
'
auto top
'
,
viewport
:
'
section
'
viewport
:
'
#
section
'
})
$target
.
bootstrapTooltip
(
'
show
'
)
...
...
@@ -410,17 +410,17 @@ $(function () {
test
(
'
should position tip on bottom if the tip
\'
s dimension exceeds the viewport area and placement is "auto top"
'
,
function
()
{
var
styles
=
'
<style>
'
+
'
body { padding-top: 100px; }
'
+
'
section { height: 300px; border: 1px solid red; }
'
+
'
#
section { height: 300px; border: 1px solid red; }
'
+
'
div[rel="tooltip"] { width: 150px; border: 1px solid blue; }
'
+
'
</style>
'
var
$styles
=
$
(
styles
).
appendTo
(
'
head
'
)
var
$container
=
$
(
'
<section/>
'
).
appendTo
(
'
#qunit-fixture
'
)
var
$container
=
$
(
'
<
div id="
section
"
/>
'
).
appendTo
(
'
#qunit-fixture
'
)
var
$target
=
$
(
'
<div rel="tooltip" title="tip"/>
'
)
.
appendTo
(
$container
)
.
bootstrapTooltip
({
placement
:
'
auto top
'
,
viewport
:
'
section
'
viewport
:
'
#
section
'
})
$target
.
bootstrapTooltip
(
'
show
'
)
...
...
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