Fix invalid HTML in "should allow html entities" tooltip unit test

Refs #14090.
Also, fix one typo.
This commit is contained in:
Chris Rebert 2014-07-08 14:39:35 -07:00
parent 8c6061c195
commit 21571b3412

View File

@ -92,7 +92,7 @@ $(function () {
}) })
test('should allow html entities', function () { test('should allow html entities', function () {
var $tooltip = $('<a href="#" rel="tooltip" title="<b>@fat</b>"/>') var $tooltip = $('<a href="#" rel="tooltip" title="&lt;b&gt;@fat&lt;/b&gt;"/>')
.appendTo('#qunit-fixture') .appendTo('#qunit-fixture')
.bootstrapTooltip({ html: true }) .bootstrapTooltip({ html: true })
@ -513,7 +513,7 @@ $(function () {
}) })
$tooltip.bootstrapTooltip('show') $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') $tooltip.bootstrapTooltip('hide')
equal($('.tooltip').length, 0, 'tooltip removed from dom') equal($('.tooltip').length, 0, 'tooltip removed from dom')