From 524dd73fdda76d3991538234dd08ecc0838282ec Mon Sep 17 00:00:00 2001 From: Winston Liu <50Wliu@users.noreply.github.com> Date: Fri, 11 Jan 2019 17:40:20 -0500 Subject: [PATCH] Assert that tab scrolling doesn't work after changing the setting --- spec/tabs-spec.coffee | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/tabs-spec.coffee b/spec/tabs-spec.coffee index 10f95adc..af1fefa5 100644 --- a/spec/tabs-spec.coffee +++ b/spec/tabs-spec.coffee @@ -1167,6 +1167,14 @@ describe "TabBarView", -> tabBar.element.dispatchEvent(buildWheelPlusShiftEvent(-120)) expect(pane.getActiveItem()).toBe item2 + describe "when the tabScrolling is changed to false", -> + it "does not change the active tab when scrolling", -> + atom.config.set("tabs.tabScrolling", false) + + expect(pane.getActiveItem()).toBe item2 + tabBar.element.dispatchEvent(buildWheelEvent(120)) + expect(pane.getActiveItem()).toBe item2 + describe "when tabScrolling is false in package settings", -> beforeEach -> atom.config.set("tabs.tabScrolling", false)