mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-14 01:24:19 +02:00
fix 2 typos in modal unit test assertion messages
This commit is contained in:
@@ -164,7 +164,7 @@ $(function () {
|
|||||||
|
|
||||||
$('<div id="modal-test"><div class="contents"/></div>')
|
$('<div id="modal-test"><div class="contents"/></div>')
|
||||||
.on('shown.bs.modal', function () {
|
.on('shown.bs.modal', function () {
|
||||||
assert.notEqual($('#modal-test').length, 0, 'modal insterted into dom')
|
assert.notEqual($('#modal-test').length, 0, 'modal inserted into dom')
|
||||||
$('.contents').click()
|
$('.contents').click()
|
||||||
assert.ok($('#modal-test').is(':visible'), 'modal visible')
|
assert.ok($('#modal-test').is(':visible'), 'modal visible')
|
||||||
$('#modal-test .modal-backdrop').click()
|
$('#modal-test .modal-backdrop').click()
|
||||||
@@ -201,7 +201,7 @@ $(function () {
|
|||||||
var div = $('<div id="modal-test"/>')
|
var div = $('<div id="modal-test"/>')
|
||||||
div
|
div
|
||||||
.on('shown.bs.modal', function () {
|
.on('shown.bs.modal', function () {
|
||||||
assert.ok($('#modal-test').length, 'modal insterted into dom')
|
assert.ok($('#modal-test').length, 'modal inserted into dom')
|
||||||
assert.ok($('#modal-test').is(':visible'), 'modal visible')
|
assert.ok($('#modal-test').is(':visible'), 'modal visible')
|
||||||
div.trigger($.Event('keyup', { which: 27 }))
|
div.trigger($.Event('keyup', { which: 27 }))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user