Sha256: 4dc475785aac0eceb29f65397667d6310d4452fe1128aad38a55e5495917afa2

Contents?: true

Size: 1.73 KB

Versions: 17

Compression:

Stored size: 1.73 KB

Contents

Feature: Indentation commands

  Scenario: Increase indent, soft tabs, width 2
    When I open a new edit tab
    And tabs are soft, 2 spaces
    And I run the command Redcar::Top::IncreaseIndentCommand
    Then the contents should be "  "

  Scenario: Decrease indent, soft tabs, width 2
    When I open a new edit tab
    And tabs are soft, 2 spaces
    And I replace the contents with "<c>    "
    And I run the command Redcar::Top::DecreaseIndentCommand
    Then the contents should be "  "

  Scenario: Increase indent, soft tabs, width 3
    When I open a new edit tab
    And tabs are soft, 3 spaces
    And I run the command Redcar::Top::IncreaseIndentCommand
    Then the contents should be "   "

  Scenario: Decrease indent, soft tabs, width 3
    When I open a new edit tab
    And tabs are soft, 3 spaces
    And I replace the contents with "<c>      "
    And I run the command Redcar::Top::DecreaseIndentCommand
    Then the contents should be "   "

  Scenario: Increase indent, hard tabs, width 2
    When I open a new edit tab
    And tabs are hard
    And I run the command Redcar::Top::IncreaseIndentCommand
    Then the contents should be "\t"

  Scenario: Decrease indent, hard tabs, width 2
    When I open a new edit tab
    And tabs are hard
    And I replace the contents with "<c>\t\t"
    And I run the command Redcar::Top::DecreaseIndentCommand
    Then the contents should be "\t"

  Scenario: auto-indent, soft tabs, width 2
    Given the indentation rules are like Ruby's
    When I open a new edit tab
    And tabs are soft, 2 spaces
    And I replace the contents with "def f\n\t1\t\t\nend\t"
    And I select from 0 to 13
    And I run the command Redcar::AutoIndenter::IndentCommand
    Then the contents should be "def f\n  1\nend"

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
redcar-dev-0.12.17dev plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.16dev-java plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.15dev-java plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.14dev-java plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.13dev-java plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.12dev-java plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.11dev-java plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.10dev-java plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.9dev-java plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.8dev-java plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.7dev-java plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.6dev-java plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.4dev-java plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.3dev-java plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.1dev-java plugins/edit_view/features/indentation_commands.feature
redcar-dev-0.12.0dev-java plugins/edit_view/features/indentation_commands.feature
redcar-0.11 plugins/edit_view/features/indentation_commands.feature