mirror of
https://github.com/twbs/bootstrap.git
synced 2025-06-06 00:03:01 -04:00
quote attribute values in selectors in JS unit tests for consistency
This commit is contained in:
parent
a6214273b9
commit
0aaf2cdd3a
@ -100,7 +100,7 @@ $(function () {
|
|||||||
.modal('toggle')
|
.modal('toggle')
|
||||||
})
|
})
|
||||||
|
|
||||||
test('should remove from dom when click [data-dismiss=modal]', function () {
|
test('should remove from dom when click [data-dismiss="modal"]', function () {
|
||||||
stop()
|
stop()
|
||||||
$.support.transition = false
|
$.support.transition = false
|
||||||
var div = $('<div id="modal-test"><span class="close" data-dismiss="modal"></span></div>')
|
var div = $('<div id="modal-test"><span class="close" data-dismiss="modal"></span></div>')
|
||||||
@ -174,7 +174,7 @@ $(function () {
|
|||||||
.modal('show')
|
.modal('show')
|
||||||
})
|
})
|
||||||
|
|
||||||
test('should close reopened modal with [data-dismiss=modal] click', function () {
|
test('should close reopened modal with [data-dismiss="modal"] click', function () {
|
||||||
stop()
|
stop()
|
||||||
$.support.transition = false
|
$.support.transition = false
|
||||||
var div = $('<div id="modal-test"><div class="contents"><div id="close" data-dismiss="modal"></div></div></div>')
|
var div = $('<div id="modal-test"><div class="contents"><div id="close" data-dismiss="modal"></div></div></div>')
|
||||||
|
@ -273,7 +273,7 @@ $(function () {
|
|||||||
test('should show tooltip with delegate selector on click', function () {
|
test('should show tooltip with delegate selector on click', function () {
|
||||||
var div = $('<div><a href="#" rel="tooltip" title="Another tooltip"></a></div>')
|
var div = $('<div><a href="#" rel="tooltip" title="Another tooltip"></a></div>')
|
||||||
div.appendTo('#qunit-fixture')
|
div.appendTo('#qunit-fixture')
|
||||||
.tooltip({ selector: 'a[rel=tooltip]', trigger: 'click' })
|
.tooltip({ selector: 'a[rel="tooltip"]', trigger: 'click' })
|
||||||
div.find('a').trigger('click')
|
div.find('a').trigger('click')
|
||||||
ok($('.tooltip').is('.fade.in'), 'tooltip is faded in')
|
ok($('.tooltip').is('.fade.in'), 'tooltip is faded in')
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user