Sha256: e27efe506cce370b7465247f2f4cdf92ce0e6ec744b5fd6f0ab94a0eca1475f1

Contents?: true

Size: 741 Bytes

Versions: 19

Compression:

Stored size: 741 Bytes

Contents

Feature: Indents Java code correctly

  Background:
    Given the indentation rules are like Java's
    When I open a new edit tab
    And tabs are soft, 2 spaces
    
  Scenario: It should indent else blocks correctly
    Given the content is:
				"""
				  if(condition) {
				    // stuff goes here...
				  } 
				"""
    And I move the cursor to (2,4)
    When I type "e"
    Then the content should be:
				"""
				  if(condition) {
				    // stuff goes here...
				  } e<c>
				"""

  Scenario: It should expand blocks
    Given the content is:
				"""
				  if(condition) {}
				"""
    And I move the cursor to (0,17)
    When I type "\n"
    Then the content should be:
				"""
				  if(condition) {
				    <c>
				  }
				"""


Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
redcar-0.13 plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.13.5dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.13.4dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.13.3dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.13.2dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.13.1dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-0.12.1 plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.13.0dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-0.12 plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.12.27dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.12.26dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.12.25dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.12.24dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.12.23dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.12.22dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.12.21dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.12.20dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.12.19dev plugins/auto_indenter/features/java_style_indentation.feature
redcar-dev-0.12.18dev plugins/auto_indenter/features/java_style_indentation.feature