mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
unit tests
This commit is contained in:
parent
beb60309d1
commit
60c9ff4364
1 changed files with 2 additions and 2 deletions
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')
|
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 () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue