Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Assert that tab scrolling doesn't work after changing the setting
Browse files Browse the repository at this point in the history
  • Loading branch information
50Wliu committed Jan 11, 2019
1 parent d6947e3 commit 524dd73
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/tabs-spec.coffee
Expand Up @@ -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)
Expand Down

0 comments on commit 524dd73

Please sign in to comment.