forked from CharlesSkelton/studio
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove insert paired char ' and ` into RSTA. Option to disable other …
…paired chars
- Loading branch information
Showing
8 changed files
with
111 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package studio.ui; | ||
|
||
import org.assertj.swing.fixture.JTextComponentFixture; | ||
import org.junit.Test; | ||
|
||
public class RSTAEditorTest extends StudioTest { | ||
|
||
@Test | ||
public void testPairedChars() { | ||
JTextComponentFixture editor = frameFixture.textBox("editor1"); | ||
editor.enterText("`'()[]{}\""); | ||
editor.requireText("`'()[]{}\""); | ||
} | ||
|
||
@Test | ||
public void testNotWrappedSpecChars() { | ||
JTextComponentFixture editor = frameFixture.textBox("editor1"); | ||
editor.enterText("select"); | ||
editor.selectAll(); | ||
editor.enterText("`"); | ||
editor.requireText("`"); | ||
|
||
editor.deleteText(); | ||
editor.enterText("select"); | ||
editor.selectAll(); | ||
editor.enterText("'"); | ||
editor.requireText("'"); | ||
} | ||
|
||
|
||
@Test | ||
public void testWrappedChars() { | ||
JTextComponentFixture editor = frameFixture.textBox("editor1"); | ||
editor.enterText("select"); | ||
editor.selectAll(); | ||
editor.enterText("("); | ||
editor.requireText("(select)"); | ||
|
||
editor.deleteText(); | ||
editor.enterText("select"); | ||
editor.selectAll(); | ||
editor.enterText("["); | ||
editor.requireText("[select]"); | ||
|
||
editor.deleteText(); | ||
editor.enterText("select"); | ||
editor.selectAll(); | ||
editor.enterText("{"); | ||
editor.requireText("{select}"); | ||
|
||
editor.deleteText(); | ||
editor.enterText("select"); | ||
editor.selectAll(); | ||
editor.enterText("\""); | ||
editor.requireText("\"select\""); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.