mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
Fix invalid HTML in "should allow html entities" tooltip unit test
Refs #14090. Also, fix one typo.
This commit is contained in:
parent
8c6061c195
commit
21571b3412
@ -92,7 +92,7 @@ $(function () {
|
||||
})
|
||||
|
||||
test('should allow html entities', function () {
|
||||
var $tooltip = $('<a href="#" rel="tooltip" title="<b>@fat</b>"/>')
|
||||
var $tooltip = $('<a href="#" rel="tooltip" title="<b>@fat</b>"/>')
|
||||
.appendTo('#qunit-fixture')
|
||||
.bootstrapTooltip({ html: true })
|
||||
|
||||
@ -513,7 +513,7 @@ $(function () {
|
||||
})
|
||||
|
||||
$tooltip.bootstrapTooltip('show')
|
||||
equal($('.tooltip').children('.tooltip-inner').text(), 'Simple tooltip', 'title is set from title attribute while prefered over title option')
|
||||
equal($('.tooltip').children('.tooltip-inner').text(), 'Simple tooltip', 'title is set from title attribute while preferred over title option')
|
||||
|
||||
$tooltip.bootstrapTooltip('hide')
|
||||
equal($('.tooltip').length, 0, 'tooltip removed from dom')
|
||||
|
Loading…
x
Reference in New Issue
Block a user