abouttreesummaryrefslogcommitdiff
path: root/test/juloo.keyboard2/KeyValueParserTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/juloo.keyboard2/KeyValueParserTest.java')
-rw-r--r--test/juloo.keyboard2/KeyValueParserTest.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/juloo.keyboard2/KeyValueParserTest.java b/test/juloo.keyboard2/KeyValueParserTest.java
index a041e8a..7ece1a7 100644
--- a/test/juloo.keyboard2/KeyValueParserTest.java
+++ b/test/juloo.keyboard2/KeyValueParserTest.java
@@ -55,6 +55,13 @@ public class KeyValueParserTest
}
@Test
+ /* Using the [symbol:..] syntax but not resulting in a macro. */
+ public void parse_non_macro() throws Exception
+ {
+ Utils.parse("a:b", KeyValue.makeCharKey('b', "a", 0));
+ }
+
+ @Test
public void parse_string_key() throws Exception
{
Utils.parse("symbol:'str'", KeyValue.makeMacro("symbol", new KeyValue[]{
@@ -87,9 +94,7 @@ public class KeyValueParserTest
@Test
public void parse_key_event() throws Exception
{
- Utils.parse("symbol:keyevent:85", KeyValue.makeMacro("symbol", new KeyValue[]{
- KeyValue.keyeventKey("", 85, 0)
- }, 0));
+ Utils.parse("symbol:keyevent:85", KeyValue.keyeventKey("symbol", 85, 0));
Utils.parse("macro:keyevent:85,abc", KeyValue.makeMacro("macro", new KeyValue[]{
KeyValue.keyeventKey("", 85, 0),
KeyValue.makeStringKey("abc")