aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2015-05-01 12:55:58 +0100
committerPatrick H. Lauke <[email protected]>2015-05-01 12:58:10 +0100
commit0c1daaf2cec70778fb093280becb0627155fbef4 (patch)
treeff880a549af4d8dccf5283834a49677ef1f935d6
parentf9cd88e09f1375702a68f03ef9895053ed14efb3 (diff)
downloadbootstrap-0c1daaf2cec70778fb093280becb0627155fbef4.tar.xz
bootstrap-0c1daaf2cec70778fb093280becb0627155fbef4.zip
Remove broken/vestigial unit test
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?
-rw-r--r--js/tests/unit/button.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/js/tests/unit/button.js b/js/tests/unit/button.js
index ed7b248d4..691796c42 100644
--- a/js/tests/unit/button.js
+++ b/js/tests/unit/button.js
@@ -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">'