mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-17 19:06:40 +02:00
fixes #6898: typo in modal test
This commit is contained in:
@@ -28,7 +28,7 @@ $(function () {
|
|||||||
$.support.transition = false
|
$.support.transition = false
|
||||||
$("<div id='modal-test'></div>")
|
$("<div id='modal-test'></div>")
|
||||||
.on("shown.bs.modal", function () {
|
.on("shown.bs.modal", function () {
|
||||||
ok($('#modal-test').length, 'modal insterted into dom')
|
ok($('#modal-test').length, 'modal inserted into dom')
|
||||||
$(this).remove()
|
$(this).remove()
|
||||||
start()
|
start()
|
||||||
})
|
})
|
||||||
@@ -71,7 +71,7 @@ $(function () {
|
|||||||
$("<div id='modal-test'></div>")
|
$("<div id='modal-test'></div>")
|
||||||
.on("shown.bs.modal", function () {
|
.on("shown.bs.modal", function () {
|
||||||
ok($('#modal-test').is(":visible"), 'modal visible')
|
ok($('#modal-test').is(":visible"), 'modal visible')
|
||||||
ok($('#modal-test').length, 'modal insterted into dom')
|
ok($('#modal-test').length, 'modal inserted into dom')
|
||||||
$(this).modal("hide")
|
$(this).modal("hide")
|
||||||
})
|
})
|
||||||
.on("hidden.bs.modal", function() {
|
.on("hidden.bs.modal", function() {
|
||||||
@@ -89,7 +89,7 @@ $(function () {
|
|||||||
div
|
div
|
||||||
.on("shown.bs.modal", function () {
|
.on("shown.bs.modal", function () {
|
||||||
ok($('#modal-test').is(":visible"), 'modal visible')
|
ok($('#modal-test').is(":visible"), 'modal visible')
|
||||||
ok($('#modal-test').length, 'modal insterted into dom')
|
ok($('#modal-test').length, 'modal inserted into dom')
|
||||||
div.modal("toggle")
|
div.modal("toggle")
|
||||||
})
|
})
|
||||||
.on("hidden.bs.modal", function() {
|
.on("hidden.bs.modal", function() {
|
||||||
@@ -107,7 +107,7 @@ $(function () {
|
|||||||
div
|
div
|
||||||
.on("shown.bs.modal", function () {
|
.on("shown.bs.modal", function () {
|
||||||
ok($('#modal-test').is(":visible"), 'modal visible')
|
ok($('#modal-test').is(":visible"), 'modal visible')
|
||||||
ok($('#modal-test').length, 'modal insterted into dom')
|
ok($('#modal-test').length, 'modal inserted into dom')
|
||||||
div.find('.close').click()
|
div.find('.close').click()
|
||||||
})
|
})
|
||||||
.on("hidden.bs.modal", function() {
|
.on("hidden.bs.modal", function() {
|
||||||
|
Reference in New Issue
Block a user