Skip to content

Commit

Permalink
Remove broken/vestigial unit test
Browse files Browse the repository at this point in the history
Overall logic for this test appears broken, possibly relating to an
older version of Bootstrap that did not require explicit
`data-toggle="button"` on single toggle buttons?
  • Loading branch information
patrickhlauke committed May 1, 2015
1 parent f9cd88e commit 0c1daaf
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions js/tests/unit/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,6 @@ $(function () {
assert.strictEqual($btn.attr('aria-pressed'), 'true', 'btn aria-pressed state is true')
})

QUnit.test('should toggle active when btn children are clicked within btn-group', function (assert) {
assert.expect(2)
var $btngroup = $('<div class="btn-group" data-toggle="buttons"/>')
var $btn = $('<button class="btn">fat</button>')
var $inner = $('<i/>')
$btngroup
.append($btn.append($inner))
.appendTo('#qunit-fixture')
assert.ok(!$btn.hasClass('active'), 'btn does not have active class')
$inner.trigger('click')
assert.ok($btn.hasClass('active'), 'btn has class active')
})

QUnit.test('should check for closest matching toggle', function (assert) {
assert.expect(12)
var groupHTML = '<div class="btn-group" data-toggle="buttons">'
Expand Down

0 comments on commit 0c1daaf

Please sign in to comment.