]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
unit tests 6813/head
authorYohn <john.skem9@gmail.com>
Wed, 6 Feb 2013 11:20:05 +0000 (06:20 -0500)
committerYohn <john.skem9@gmail.com>
Wed, 6 Feb 2013 11:20:05 +0000 (06:20 -0500)
js/tests/unit/bootstrap-tooltip.js

index 97571d243e4e74d90bd16ef728eca37f994d763e..5b37b4e687d0254e68359fab3259d4ace5f631fd 100644 (file)
@@ -22,9 +22,9 @@ $(function () {
         ok(!!$.fn.tooltip.defaults, 'defaults is defined')
       })
 
-      test("should remove title attribute", function () {
+      test("should empty title attribute", function () {
         var tooltip = $('<a href="#" rel="tooltip" title="Another tooltip"></a>').tooltip()
-        ok(!tooltip.attr('title'), 'title tag was removed')
+        ok(tooltip.attr('title') === '', 'title attribute was emptied')
       })
 
       test("should add data attribute for referencing original title", function () {