summaryrefslogtreecommitdiffstats
path: root/test/bad-config2
diff options
context:
space:
mode:
Diffstat (limited to 'test/bad-config2')
-rw-r--r--test/bad-config2/configs/invalid-annotation/config.json14
-rw-r--r--test/bad-config2/configs/invalid-theme/config.json20
2 files changed, 34 insertions, 0 deletions
diff --git a/test/bad-config2/configs/invalid-annotation/config.json b/test/bad-config2/configs/invalid-annotation/config.json
new file mode 100644
index 0000000..9fae7de
--- /dev/null
+++ b/test/bad-config2/configs/invalid-annotation/config.json
@@ -0,0 +1,14 @@
+{
+ "$schema": "https://lnav.org/schemas/config-v1.schema.json",
+ "log": {
+ "annotations": {
+ "org.lnav.test.no-handler": {
+ "description": "annotation without a handler"
+ },
+ "org.lnav.test.no-condition": {
+ "description": "annotation without a condition",
+ "handler": "my-handler"
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/test/bad-config2/configs/invalid-theme/config.json b/test/bad-config2/configs/invalid-theme/config.json
new file mode 100644
index 0000000..cfbeda5
--- /dev/null
+++ b/test/bad-config2/configs/invalid-theme/config.json
@@ -0,0 +1,20 @@
+{
+ "$schema": "https://lnav.org/schemas/config-v1.schema.json",
+ "ui": {
+ "theme-defs": {
+ "invalid-theme": {
+ "styles": {
+ "text": {
+ "color": "InvalidColor",
+ "bad-property": "abc"
+ }
+ },
+ "highlights": {
+ "foobar": {
+ "pattern": "abc("
+ }
+ }
+ }
+ }
+ }
+} \ No newline at end of file