|
3 | 3 | xmlns:cssm="http://www.nkutsche.com/css3-model" xmlns="http://www.nkutsche.com/css3-model"
|
4 | 4 | stylesheet="../../main/resources/xsl/css3-model-serializer.xsl">
|
5 | 5 |
|
6 |
| - <x:scenario label="Testing function cssm:serialize-property-value" focus=""> |
| 6 | + <x:scenario label="Testing function cssm:serialize-property-value"> |
7 | 7 | <x:call function="cssm:serialize-property-value"/>
|
8 | 8 |
|
9 | 9 | <x:scenario label="without quotes and important">
|
|
20 | 20 | </x:call>
|
21 | 21 | <x:expect label="result" select="'value'"/>
|
22 | 22 | </x:scenario>
|
23 |
| - <x:scenario label="value serialization"> |
| 23 | + <x:scenario label="string serialization with spaces"> |
| 24 | + <x:call> |
| 25 | + <x:param> |
| 26 | + <property name="prop" string="string with space"/> |
| 27 | + </x:param> |
| 28 | + </x:call> |
| 29 | + <x:expect label="result" select="string(.)">'string with space'</x:expect> |
| 30 | + </x:scenario> |
| 31 | + <x:scenario label="value list serialization"> |
24 | 32 | <x:call>
|
25 | 33 | <x:param>
|
26 | 34 | <property name="property">
|
|
30 | 38 | </property>
|
31 | 39 | </x:param>
|
32 | 40 | </x:call>
|
33 |
| - <x:expect label="result" select="'value1 value2 value3'"/> |
| 41 | + <x:expect label="result" select="string(.)">value1 value2 value3</x:expect> |
| 42 | + </x:scenario> |
| 43 | + <x:scenario label="string in list serialization"> |
| 44 | + <x:call> |
| 45 | + <x:param> |
| 46 | + <property name="property"> |
| 47 | + <string>value1</string> |
| 48 | + <value>value2</value> |
| 49 | + <value>value3</value> |
| 50 | + </property> |
| 51 | + </x:param> |
| 52 | + </x:call> |
| 53 | + <x:expect label="result" select="string(.)">value1 value2 value3</x:expect> |
| 54 | + </x:scenario> |
| 55 | + <x:scenario label="string in list serialization with spaces"> |
| 56 | + <x:call> |
| 57 | + <x:param> |
| 58 | + <property name="property"> |
| 59 | + <string>value1 value2</string> |
| 60 | + <value>value3</value> |
| 61 | + </property> |
| 62 | + </x:param> |
| 63 | + </x:call> |
| 64 | + <x:expect label="result" select="string(.)">'value1 value2' value3</x:expect> |
| 65 | + </x:scenario> |
| 66 | + <x:scenario label="property:'value1"value2' value3"> |
| 67 | + <x:call> |
| 68 | + <x:param> |
| 69 | + <property name="property"> |
| 70 | + <string>value1"value2</string> |
| 71 | + <value>value3</value> |
| 72 | + </property> |
| 73 | + </x:param> |
| 74 | + </x:call> |
| 75 | + <x:expect label="result" select="string(.)">'value1"value2' value3</x:expect> |
| 76 | + </x:scenario> |
| 77 | + <x:scenario label='property:"value1'value2" value3'> |
| 78 | + <x:call> |
| 79 | + <x:param> |
| 80 | + <property name="property"> |
| 81 | + <string>value1'value2</string> |
| 82 | + <value>value3</value> |
| 83 | + </property> |
| 84 | + </x:param> |
| 85 | + </x:call> |
| 86 | + <x:expect label="result" select="string(.)">"value1'value2" value3</x:expect> |
| 87 | + </x:scenario> |
| 88 | + <x:scenario label='property:"value1'\"value2" value3'> |
| 89 | + <x:call> |
| 90 | + <x:param> |
| 91 | + <property name="property"> |
| 92 | + <string>value1'"value2</string> |
| 93 | + <value>value3</value> |
| 94 | + </property> |
| 95 | + </x:param> |
| 96 | + </x:call> |
| 97 | + <x:expect label="result" select="string(.)">"value1'\"value2" value3</x:expect> |
| 98 | + </x:scenario> |
| 99 | + <x:scenario label='property:"value1\value2" value3'> |
| 100 | + <x:call> |
| 101 | + <x:param> |
| 102 | + <property name="property"> |
| 103 | + <string>value1\value2</string> |
| 104 | + <value>value3</value> |
| 105 | + </property> |
| 106 | + </x:param> |
| 107 | + </x:call> |
| 108 | + <x:expect label="result" select="string(.)">'value1\\value2' value3</x:expect> |
| 109 | + </x:scenario> |
| 110 | + <x:scenario label='property:"value1\\value2" value3'> |
| 111 | + <x:call> |
| 112 | + <x:param> |
| 113 | + <property name="property"> |
| 114 | + <string>value1\\value2</string> |
| 115 | + <value>value3</value> |
| 116 | + </property> |
| 117 | + </x:param> |
| 118 | + </x:call> |
| 119 | + <x:expect label="result" select="string(.)">'value1\\\\value2' value3</x:expect> |
34 | 120 | </x:scenario>
|
35 | 121 | </x:scenario>
|
36 | 122 |
|
|
0 commit comments