Commit 60c9ff43 authored by Yohn's avatar Yohn

unit tests

parent beb60309
...@@ -22,9 +22,9 @@ $(function () { ...@@ -22,9 +22,9 @@ $(function () {
ok(!!$.fn.tooltip.defaults, 'defaults is defined') 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() 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 () { test("should add data attribute for referencing original title", function () {
......
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