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

Decouple core indentation logic from spec #295

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ingramz
Copy link
Contributor

@Ingramz Ingramz commented Nov 14, 2019

Description of the Change

This pull request changes a test in spec suite which at the time of writing expects a very specfic indentation logic behavior from core: it assumes that when text is selected, hitting Tab always results in indenting the line. The aim of the pull request is somewhat to loosen the test to allow any core behavior (within reason) to occur, while retaining the constraints that make sense for this package.

Alternate Designs

None considered for now.

Benefits

The test is not as tightly coupled to the core, allowing core to change behavior without the need to update this spec.

Possible Drawbacks

There could be future developments which may pass with the new test, but that did not pass with the old one, however this should be unlikely due to the amount of similar tests which possibly catch such cases.

Applicable Issues

atom/atom#20137

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant