From 725c6848c362f90bbdb931dcea70d40a1753d768 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Fri, 6 Mar 2015 04:34:28 -0800 Subject: Disable jQuery event aliases when running test suite To ensure that we don't accidentally use any of the aliases. This should prevent any future regressions from #12761. Also updates the test suite since it now can't use these aliases either. --- js/tests/unit/tab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/tests/unit/tab.js') diff --git a/js/tests/unit/tab.js b/js/tests/unit/tab.js index 551476bac8..85d9f67a25 100644 --- a/js/tests/unit/tab.js +++ b/js/tests/unit/tab.js @@ -200,7 +200,7 @@ $(function () { 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') - $tabs.find('li:last a').click() + $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') @@ -208,7 +208,7 @@ $(function () { 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') - $tabs.find('li:first a').click() + $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') }) -- cgit v1.2.3