Commit 31373309 authored by Chris Rebert's avatar Chris Rebert

Merge pull request #14091 from twbs/tooltip-test-html-fix

Fix unusual HTML in "should allow html entities" tooltip unit test
parents 8c6061c1 21571b34
...@@ -92,7 +92,7 @@ $(function () { ...@@ -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 () { ...@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment