]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix invalid HTML in "should allow html entities" tooltip unit test 14091/head
authorChris Rebert <code@rebertia.com>
Tue, 8 Jul 2014 21:39:35 +0000 (14:39 -0700)
committerChris Rebert <code@rebertia.com>
Tue, 8 Jul 2014 21:40:20 +0000 (14:40 -0700)
Refs #14090.
Also, fix one typo.

js/tests/unit/tooltip.js

index a266b96eabc25a55b6ef503313aa1f59017ec050..4cecf9348eed464b6f3b86c42b381249a0c7c77a 100644 (file)
@@ -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="&lt;b&gt;@fat&lt;/b&gt;"/>')
       .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')