aboutsummaryrefslogtreecommitdiffstats
path: root/lib/htmlpurifier/smoketests/test-schema
diff options
context:
space:
mode:
Diffstat (limited to 'lib/htmlpurifier/smoketests/test-schema')
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Directive.Allowed.txt6
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Directive.Deprecated.txt7
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Directive.txt3
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Type.bool.txt5
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Type.float.txt5
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Type.hash.txt5
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Type.int.txt5
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Type.istring.txt5
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Type.itext.txt5
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Type.list.txt5
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Type.lookup.txt5
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Type.mixed.txt5
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Type.nullbool.txt7
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Type.nullstring.txt9
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Type.string.txt5
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Type.text.txt5
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/Type.txt3
-rw-r--r--lib/htmlpurifier/smoketests/test-schema/info.ini3
18 files changed, 93 insertions, 0 deletions
diff --git a/lib/htmlpurifier/smoketests/test-schema/Directive.Allowed.txt b/lib/htmlpurifier/smoketests/test-schema/Directive.Allowed.txt
new file mode 100644
index 000000000..2145276e3
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Directive.Allowed.txt
@@ -0,0 +1,6 @@
+Directive.Allowed
+TYPE: string
+DEFAULT: 'apple'
+ALLOWED: 'apple', 'orange', 'pear', 'peach', 'mango'
+DESCRIPTION: This directive has a constrained set of allowed values.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Directive.Deprecated.txt b/lib/htmlpurifier/smoketests/test-schema/Directive.Deprecated.txt
new file mode 100644
index 000000000..ea1820fbb
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Directive.Deprecated.txt
@@ -0,0 +1,7 @@
+Directive.Deprecated
+TYPE: int
+DEFAULT: 0
+DESCRIPTION: This is a deprecated directive that shouldn't show up on the form.
+DEPRECATED-VERSION: 1.0.0
+DEPRECATED-USE: Directive.Allowed
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Directive.txt b/lib/htmlpurifier/smoketests/test-schema/Directive.txt
new file mode 100644
index 000000000..f59400c33
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Directive.txt
@@ -0,0 +1,3 @@
+Directive
+DESCRIPTION: Other custom options with directives.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Type.bool.txt b/lib/htmlpurifier/smoketests/test-schema/Type.bool.txt
new file mode 100644
index 000000000..6d446ca08
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Type.bool.txt
@@ -0,0 +1,5 @@
+Type.bool
+TYPE: bool
+DEFAULT: false
+DESCRIPTION: The boolean type is true or false.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Type.float.txt b/lib/htmlpurifier/smoketests/test-schema/Type.float.txt
new file mode 100644
index 000000000..e24ed0161
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Type.float.txt
@@ -0,0 +1,5 @@
+Type.float
+TYPE: float
+DEFAULT: 3.1415
+DESCRIPTION: The float type is a floating point number.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Type.hash.txt b/lib/htmlpurifier/smoketests/test-schema/Type.hash.txt
new file mode 100644
index 000000000..262d49e05
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Type.hash.txt
@@ -0,0 +1,5 @@
+Type.hash
+TYPE: hash
+DEFAULT: array('key1' => 'val1', 'key2' => 'val2')
+DESCRIPTION: The hash type is an associative array of string keys and string values.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Type.int.txt b/lib/htmlpurifier/smoketests/test-schema/Type.int.txt
new file mode 100644
index 000000000..157df3f3e
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Type.int.txt
@@ -0,0 +1,5 @@
+Type.int
+TYPE: int
+DEFAULT: 23
+DESCRIPTION: The int type is an signed integer.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Type.istring.txt b/lib/htmlpurifier/smoketests/test-schema/Type.istring.txt
new file mode 100644
index 000000000..dfd43aa48
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Type.istring.txt
@@ -0,0 +1,5 @@
+Type.istring
+TYPE: istring
+DEFAULT: 'case insensitive'
+DESCRIPTION: The istring type is short (no newlines), must be ASCII and is case-insensitive.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Type.itext.txt b/lib/htmlpurifier/smoketests/test-schema/Type.itext.txt
new file mode 100644
index 000000000..97140dea8
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Type.itext.txt
@@ -0,0 +1,5 @@
+Type.itext
+TYPE: itext
+DEFAULT: "case\ninsensitive\nand\npossibly\nquite\nlong"
+DESCRIPTION: The text type has newlines, must be ASCII and is case-insensitive.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Type.list.txt b/lib/htmlpurifier/smoketests/test-schema/Type.list.txt
new file mode 100644
index 000000000..55497fcdf
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Type.list.txt
@@ -0,0 +1,5 @@
+Type.list
+TYPE: list
+DEFAULT: array('item1', 'item2')
+DESCRIPTION: The list type is a numerically indexed array of strings.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Type.lookup.txt b/lib/htmlpurifier/smoketests/test-schema/Type.lookup.txt
new file mode 100644
index 000000000..b2479912f
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Type.lookup.txt
@@ -0,0 +1,5 @@
+Type.lookup
+TYPE: lookup
+DEFAULT: array('key1' => true, 'key2' => true)
+DESCRIPTION: The lookup type acts just like list, except its elements are unique and are checked with <code>isset($var[$key])</code>.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Type.mixed.txt b/lib/htmlpurifier/smoketests/test-schema/Type.mixed.txt
new file mode 100644
index 000000000..8bc14bbe6
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Type.mixed.txt
@@ -0,0 +1,5 @@
+Type.mixed
+TYPE: mixed
+DEFAULT: new stdclass()
+DESCRIPTION: The mixed type allows any type, and is not form-editable.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Type.nullbool.txt b/lib/htmlpurifier/smoketests/test-schema/Type.nullbool.txt
new file mode 100644
index 000000000..d3d756fc6
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Type.nullbool.txt
@@ -0,0 +1,7 @@
+Type.nullbool
+TYPE: bool/null
+DEFAULT: null
+--DESCRIPTION--
+Null booleans need to be treated a little specially. See %Type.nullstring
+for information on what the null flag does.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Type.nullstring.txt b/lib/htmlpurifier/smoketests/test-schema/Type.nullstring.txt
new file mode 100644
index 000000000..4db33235d
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Type.nullstring.txt
@@ -0,0 +1,9 @@
+Type.nullstring
+TYPE: string/null
+DEFAULT: null
+--DESCRIPTION--
+The null type is not a type, but a flag that can be added to any type
+making null a valid value for that entry. It's useful for saying, "Let
+the software pick the value for me," or "Don't use this element" when
+false has a special meaning.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Type.string.txt b/lib/htmlpurifier/smoketests/test-schema/Type.string.txt
new file mode 100644
index 000000000..4cde40907
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Type.string.txt
@@ -0,0 +1,5 @@
+Type.string
+TYPE: string
+DEFAULT: 'Case sensitive'
+DESCRIPTION: The string type is short (no newlines) and case-sensitive.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Type.text.txt b/lib/htmlpurifier/smoketests/test-schema/Type.text.txt
new file mode 100644
index 000000000..5fca4d567
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Type.text.txt
@@ -0,0 +1,5 @@
+Type.text
+TYPE: text
+DEFAULT: "Case sensitive\nand\npossibly\nquite long..."
+DESCRIPTION: The text type has newlines and is case-sensitive.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/Type.txt b/lib/htmlpurifier/smoketests/test-schema/Type.txt
new file mode 100644
index 000000000..b4761220c
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/Type.txt
@@ -0,0 +1,3 @@
+Type
+DESCRIPTION: Directives demonstration the variable types ConfigSchema supports.
+--# vim: et sw=4 sts=4
diff --git a/lib/htmlpurifier/smoketests/test-schema/info.ini b/lib/htmlpurifier/smoketests/test-schema/info.ini
new file mode 100644
index 000000000..438e8acce
--- /dev/null
+++ b/lib/htmlpurifier/smoketests/test-schema/info.ini
@@ -0,0 +1,3 @@
+name = "Test Schema"
+
+; vim: et sw=4 sts=4