mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-23 22:23:12 +02:00
[3.1.0] Fix and revamp configForm.php smoketest
- Fix bool/null ConfigForm field git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1694 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
5
smoketests/test-schema/Directive.Allowed.txt
Normal file
5
smoketests/test-schema/Directive.Allowed.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
Directive.Allowed
|
||||
TYPE: string
|
||||
DEFAULT: 'apple'
|
||||
ALLOWED: 'apple', 'orange', 'pear', 'peach', 'mango'
|
||||
DESCRIPTION: This directive has a constrained set of allowed values.
|
6
smoketests/test-schema/Directive.Deprecated.txt
Normal file
6
smoketests/test-schema/Directive.Deprecated.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
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
|
2
smoketests/test-schema/Directive.txt
Normal file
2
smoketests/test-schema/Directive.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
Directive
|
||||
DESCRIPTION: Other custom options with directives.
|
4
smoketests/test-schema/Type.bool.txt
Normal file
4
smoketests/test-schema/Type.bool.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Type.bool
|
||||
TYPE: bool
|
||||
DEFAULT: false
|
||||
DESCRIPTION: The boolean type is true or false.
|
4
smoketests/test-schema/Type.float.txt
Normal file
4
smoketests/test-schema/Type.float.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Type.float
|
||||
TYPE: float
|
||||
DEFAULT: 3.1415
|
||||
DESCRIPTION: The float type is a floating point number.
|
4
smoketests/test-schema/Type.hash.txt
Normal file
4
smoketests/test-schema/Type.hash.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Type.hash
|
||||
TYPE: hash
|
||||
DEFAULT: array('key1' => 'val1', 'key2' => 'val2')
|
||||
DESCRIPTION: The hash type is an associative array of string keys and string values.
|
4
smoketests/test-schema/Type.int.txt
Normal file
4
smoketests/test-schema/Type.int.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Type.int
|
||||
TYPE: int
|
||||
DEFAULT: 23
|
||||
DESCRIPTION: The int type is an signed integer.
|
4
smoketests/test-schema/Type.istring.txt
Normal file
4
smoketests/test-schema/Type.istring.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Type.istring
|
||||
TYPE: istring
|
||||
DEFAULT: 'case insensitive'
|
||||
DESCRIPTION: The istring type is short (no newlines), must be ASCII and is case-insensitive.
|
4
smoketests/test-schema/Type.itext.txt
Normal file
4
smoketests/test-schema/Type.itext.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Type.itext
|
||||
TYPE: itext
|
||||
DEFAULT: "case\ninsensitive\nand\npossibly\nquite\nlong"
|
||||
DESCRIPTION: The text type has newlines, must be ASCII and is case-insensitive.
|
4
smoketests/test-schema/Type.list.txt
Normal file
4
smoketests/test-schema/Type.list.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Type.list
|
||||
TYPE: list
|
||||
DEFAULT: array('item1', 'item2')
|
||||
DESCRIPTION: The list type is a numerically indexed array of strings.
|
4
smoketests/test-schema/Type.lookup.txt
Normal file
4
smoketests/test-schema/Type.lookup.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
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>.
|
4
smoketests/test-schema/Type.mixed.txt
Normal file
4
smoketests/test-schema/Type.mixed.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Type.mixed
|
||||
TYPE: mixed
|
||||
DEFAULT: new stdclass()
|
||||
DESCRIPTION: The mixed type allows any type, and is not form-editable.
|
6
smoketests/test-schema/Type.nullbool.txt
Normal file
6
smoketests/test-schema/Type.nullbool.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
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.
|
8
smoketests/test-schema/Type.nullstring.txt
Normal file
8
smoketests/test-schema/Type.nullstring.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
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.
|
4
smoketests/test-schema/Type.string.txt
Normal file
4
smoketests/test-schema/Type.string.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Type.string
|
||||
TYPE: string
|
||||
DEFAULT: 'Case sensitive'
|
||||
DESCRIPTION: The string type is short (no newlines) and case-sensitive.
|
4
smoketests/test-schema/Type.text.txt
Normal file
4
smoketests/test-schema/Type.text.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Type.text
|
||||
TYPE: text
|
||||
DEFAULT: "Case sensitive\nand\npossibly\nquite long..."
|
||||
DESCRIPTION: The text type has newlines and is case-sensitive.
|
2
smoketests/test-schema/Type.txt
Normal file
2
smoketests/test-schema/Type.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
Type
|
||||
DESCRIPTION: Directives demonstration the variable types ConfigSchema supports.
|
1
smoketests/test-schema/info.ini
Normal file
1
smoketests/test-schema/info.ini
Normal file
@@ -0,0 +1 @@
|
||||
name = "Test Schema"
|
Reference in New Issue
Block a user