mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-17 14:54:30 +01:00
unit tests
This commit is contained in:
parent
beb60309d1
commit
60c9ff4364
4
js/tests/unit/bootstrap-tooltip.js
vendored
4
js/tests/unit/bootstrap-tooltip.js
vendored
@ -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 () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user