2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

upgrade to v4 stable

This commit is contained in:
Johann-S
2018-03-05 15:40:23 +01:00
committed by XhmikosR
parent 7f08061eca
commit 9744886519
4 changed files with 33 additions and 17 deletions
+6 -4
View File
@@ -570,17 +570,19 @@ $(function () {
var $triggerTwo = $('#linkTriggerTwo')
var $collapseOne = $('#collapseOne')
var $collapseTwo = $('#collapseTwo')
$collapseOne.on('shown.bs.collapse', function () {
assert.ok($collapseOne.hasClass('show'), '#collapseOne is shown')
assert.ok(!$collapseTwo.hasClass('show'), '#collapseTwo is not shown')
$collapseTwo.on('shown.bs.collapse', function () {
assert.ok(!$collapseOne.hasClass('show'), '#collapseOne is not shown')
assert.ok($collapseTwo.hasClass('show'), '#collapseTwo is shown')
done()
})
$triggerTwo.trigger($.Event('click'))
EventHandler.trigger($triggerTwo[0], 'click')
})
$trigger.trigger($.Event('click'))
EventHandler.trigger($trigger[0], 'click')
})
QUnit.test('should allow accordion to target multiple elements', function (assert) {
@@ -612,7 +614,7 @@ $(function () {
assert.ok($collapseOneTwo.hasClass('show'), '#collapseOneTwo is shown')
assert.ok(!$collapseTwoOne.hasClass('show'), '#collapseTwoOne is not shown')
assert.ok(!$collapseTwoTwo.hasClass('show'), '#collapseTwoTwo is not shown')
$triggerTwo.trigger($.Event('click'))
EventHandler.trigger($triggerTwo[0], 'click')
}
function secondTest() {
@@ -655,7 +657,7 @@ $(function () {
}
})
$trigger.trigger($.Event('click'))
EventHandler.trigger($trigger[0], 'click')
})
QUnit.test('should collapse accordion children but not nested accordion children', function (assert) {