Skip to content

Commit

Permalink
Moved formatter-related enter test to another class
Browse files Browse the repository at this point in the history
  • Loading branch information
hurricup committed Dec 28, 2017
1 parent e1bb5fd commit 0a62e83
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
4 changes: 1 addition & 3 deletions test/editor/PerlEnterHandlerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ protected String getTestDataPath() {
return "testData/enterHandler/perl";
}

public void testEnterAfterComma() {doTest();}

public void testCommentMiddle() {
doTest();
}
Expand Down Expand Up @@ -65,7 +63,7 @@ public void testCommentMiddleIndented() {
public void testIndentedHeredocCloseWithNormalAhead() { doTest(); }

public void testIndentedHeredocCloseXQ() { doTest(); }


private void doTest() {
doTestEnter();
Expand Down
30 changes: 30 additions & 0 deletions test/formatter/PerlFormatterEnterTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright 2015-2017 Alexandr Evstigneev
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package formatter;

public class PerlFormatterEnterTest extends PerlFormatterTestCase {
@Override
protected String getTestDataPath() {
return "testData/formatter/perl/enter";
}

public void testCommaSequenceTop() {doTest();}

private void doTest() {
doTestEnter();
}
}
2 changes: 0 additions & 2 deletions testData/enterHandler/perl/enterAfterComma.pl.txt

This file was deleted.

2 changes: 2 additions & 0 deletions testData/formatter/perl/enter/commaSequenceTop.pl.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$a = $a,
<caret>

0 comments on commit 0a62e83

Please sign in to comment.