From 03e732708c089b0446d946bd9bcbc40fb886f45e Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Tue, 18 Aug 2015 22:03:34 -0700 Subject: rewrite tab with new active shit --- js/tests/unit/tab.js | 20 ++++++++++---------- js/tests/visual/tab.html | 36 ++++++++++++++++++------------------ 2 files changed, 28 insertions(+), 28 deletions(-) (limited to 'js/tests') diff --git a/js/tests/unit/tab.js b/js/tests/unit/tab.js index 85d9f67a2..1eed75e90 100644 --- a/js/tests/unit/tab.js +++ b/js/tests/unit/tab.js @@ -191,26 +191,26 @@ $(function () { QUnit.test('selected tab should have aria-expanded', function (assert) { assert.expect(8) var tabsHTML = '' var $tabs = $(tabsHTML).appendTo('#qunit-fixture') $tabs.find('li:first a').bootstrapTab('show') - assert.strictEqual($tabs.find('.active a').attr('aria-expanded'), 'true', 'shown tab has aria-expanded = true') - assert.strictEqual($tabs.find('li:not(.active) a').attr('aria-expanded'), 'false', 'hidden tab has aria-expanded = false') + assert.strictEqual($tabs.find('.active').attr('aria-expanded'), 'true', 'shown tab has aria-expanded = true') + assert.strictEqual($tabs.find('a:not(.active)').attr('aria-expanded'), 'false', 'hidden tab has aria-expanded = false') $tabs.find('li:last a').trigger('click') - assert.strictEqual($tabs.find('.active a').attr('aria-expanded'), 'true', 'after click, shown tab has aria-expanded = true') - assert.strictEqual($tabs.find('li:not(.active) a').attr('aria-expanded'), 'false', 'after click, hidden tab has aria-expanded = false') + assert.strictEqual($tabs.find('.active').attr('aria-expanded'), 'true', 'after click, shown tab has aria-expanded = true') + assert.strictEqual($tabs.find('a:not(.active)').attr('aria-expanded'), 'false', 'after click, hidden tab has aria-expanded = false') $tabs.find('li:first a').bootstrapTab('show') - assert.strictEqual($tabs.find('.active a').attr('aria-expanded'), 'true', 'shown tab has aria-expanded = true') - assert.strictEqual($tabs.find('li:not(.active) a').attr('aria-expanded'), 'false', 'hidden tab has aria-expanded = false') + assert.strictEqual($tabs.find('.active').attr('aria-expanded'), 'true', 'shown tab has aria-expanded = true') + assert.strictEqual($tabs.find('a:not(.active)').attr('aria-expanded'), 'false', 'hidden tab has aria-expanded = false') $tabs.find('li:first a').trigger('click') - assert.strictEqual($tabs.find('.active a').attr('aria-expanded'), 'true', 'after second show event, shown tab still has aria-expanded = true') - assert.strictEqual($tabs.find('li:not(.active) a').attr('aria-expanded'), 'false', 'after second show event, hidden tab has aria-expanded = false') + assert.strictEqual($tabs.find('.active').attr('aria-expanded'), 'true', 'after second show event, shown tab still has aria-expanded = true') + assert.strictEqual($tabs.find('a:not(.active)').attr('aria-expanded'), 'false', 'after second show event, hidden tab has aria-expanded = false') }) }) diff --git a/js/tests/visual/tab.html b/js/tests/visual/tab.html index ff6685fed..22a918ed7 100644 --- a/js/tests/visual/tab.html +++ b/js/tests/visual/tab.html @@ -35,14 +35,14 @@

Tabs without fade

@@ -67,14 +67,14 @@

Tabs with fade

@@ -103,10 +103,10 @@
@@ -135,10 +135,10 @@
-- cgit v1.2.3