Feature: nxml-mode expansions In order to quickly and precisely mark xml units As an Emacs user I want to expand to them Scenario: Mark xml attribute inside quotes Given I turn on nxml-mode And there is no region selected When I insert "" And I place the cursor after "my" And I press "C-@" Then the region should be "myAttr" Scenario: Mark xml attribute with quotes Given I turn on nxml-mode And there is no region selected When I insert "" And I place the cursor after "my" And I press "C-@" And I press "C-@" Then the region should be ""myAttr"" Scenario: Mark xml attribute with xpath inside quotes Given I turn on nxml-mode And there is no region selected When I insert "" And I place the cursor after "a/" And I press "C-@" And I press "C-@" Then the region should be "a/b/c" Scenario: Mark xml attribute with xpath inside quotes Given I turn on nxml-mode And there is no region selected When I insert "" And I place the cursor after "a/" And I press "C-@" And I press "C-@" And I press "C-@" Then the region should be ""a/b/c"" Scenario: Mark xml attribute from start Given I turn on nxml-mode And there is no region selected When I insert "
" And I place the cursor between " " and "id" And I press "C-@" And I press "C-@" Then the region should be "id="5"" Scenario: Mark xml tags, part 1 Given I turn on nxml-mode And there is no region selected When I insert "...
before
after
..." And I place the cursor between "before " and "" And I press "C-@" Then the region should be "" Scenario: Mark xml tags, part 2 Given I turn on nxml-mode And there is no region selected When I insert "...
before
after
..." And I place the cursor between "before " and "" And I press "C-@" And I press "C-@" Then the region should be "" Scenario: Mark xml tags, part 3 Given I turn on nxml-mode And there is no region selected When I insert "...
before
after
..." And I place the cursor between "before " and "" And I press "C-@" And I press "C-@" And I press "C-@" Then the region should be "before " Scenario: Mark xml tags, part 4 Given I turn on nxml-mode And there is no region selected When I insert "...
before
after
..." And I place the cursor between "before " and "" And I press "C-@" And I press "C-@" And I press "C-@" And I press "C-@" Then the region should be "
before
" Scenario: Mark xml tags, part 5 Given I turn on nxml-mode And there is no region selected When I insert "...
before
after
..." And I place the cursor between "before " and "" And I press "C-@" And I press "C-@" And I press "C-@" And I press "C-@" And I press "C-@" Then the region should be "
before
after" Scenario: Mark xml tags, part 6 Given I turn on nxml-mode And there is no region selected When I insert "...
before
after
..." And I place the cursor between "before " and "" And I press "C-@" And I press "C-@" And I press "C-@" And I press "C-@" And I press "C-@" And I press "C-@" Then the region should be "
before
after
"