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
20c099d4
Commit
20c099d4
authored
10 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
add failing test for
#13268
parent
3b99a412
5 merge requests
!28721
Hot test
,
!13752
Proposed fix for #13268
,
!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
+27
-0
js/tests/unit/tooltip.js
with
27 additions
and
0 deletions
+27
-0
js/tests/unit/tooltip.js
+
27
-
0
View file @
20c099d4
...
...
@@ -557,4 +557,31 @@ $(function () {
$
(
'
head #test
'
).
remove
()
$
(
'
head #viewport-style
'
).
remove
()
})
test
(
'
should not error when trying to show an auto-placed tooltip that has been removed from the dom
'
,
function
()
{
var
tooltip
=
$
(
'
<a href="#" rel="tooltip" title="Another tooltip"></a>
'
).
appendTo
(
'
#qunit-fixture
'
)
tooltip
.
one
(
'
show.bs.tooltip
'
,
function
()
{
tooltip
.
remove
()
})
.
bootstrapTooltip
({
placement
:
'
auto
'
})
var
passed
=
true
try
{
tooltip
.
bootstrapTooltip
(
'
show
'
)
}
catch
(
err
)
{
passed
=
false
console
.
log
(
err
)
}
ok
(
passed
,
'
.tooltip(
\'
show
\'
) should not throw an error in this case
'
)
try
{
tooltip
.
remove
()
}
catch
(
err
)
{
// tooltip may have already been removed
}
})
})
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