Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

❓ add CSS selector tests for the argument operator #762

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion spec/text-object-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,14 @@ describe "TextObject", ->
}
"""

describe 'slingle line comma separated text', ->
describe 'without parentheses', ->
it "works with css selectors", ->
set textC: "atom-te|xt-editor, :host {\n}"; ensure 'd a ,', textC: ":host {\n}"
set textC: "atom-text-editor, :ho|st {\n}"; ensure 'd a ,', textC: "atom-text-editor {\n}"
set textC: "atom-te|xt-editor .gutter, :host .gutter {\n}"; ensure 'd a ,', textC: ":host .gutter {\n}"
set textC: "atom-text-editor .gutter, :ho|st .gutter {\n}"; ensure 'd a ,', textC: "atom-text-editor .gutter {\n}"

describe 'single line comma separated text', ->
describe "change 1st arg", ->
beforeEach -> set textC: "var a = func(f|irst(1, 2, 3), second(), 3)"
it 'change', -> ensure 'c i ,', textC: "var a = func(|, second(), 3)"
Expand Down