|
8 | 8 | }, |
9 | 9 | "tests": [ |
10 | 10 | { |
| 11 | + "tags": ["u:id"], |
11 | 12 | "src": "{#tag u:id=x}content{/ns:tag u:id=x}", |
12 | 13 | "exp": "content", |
13 | 14 | "expParts": [ |
14 | | - { |
15 | | - "type": "markup", |
16 | | - "kind": "open", |
17 | | - "id": "x", |
18 | | - "name": "tag" |
19 | | - }, |
| 15 | + { "type": "markup", "kind": "open", "id": "x", "name": "tag" }, |
20 | 16 | { "type": "text", "value": "content" }, |
21 | | - { |
22 | | - "type": "markup", |
23 | | - "kind": "close", |
24 | | - "id": "x", |
25 | | - "name": "ns:tag" |
26 | | - } |
| 17 | + { "type": "markup", "kind": "close", "id": "x", "name": "ns:tag" } |
27 | 18 | ] |
28 | 19 | }, |
29 | 20 | { |
30 | | - "src": "{#tag u:dir=rtl u:locale=ar}content{/ns:tag}", |
| 21 | + "tags": ["u:dir"], |
| 22 | + "src": "{#tag u:dir=rtl}content{/ns:tag}", |
31 | 23 | "exp": "content", |
32 | | - "expErrors": [{ "type": "bad-option" }, { "type": "bad-option" }], |
| 24 | + "expErrors": [{ "type": "bad-option" }], |
33 | 25 | "expParts": [ |
34 | | - { |
35 | | - "type": "markup", |
36 | | - "kind": "open", |
37 | | - "name": "tag" |
38 | | - }, |
| 26 | + { "type": "markup", "kind": "open", "name": "tag" }, |
39 | 27 | { "type": "text", "value": "content" }, |
40 | | - { |
41 | | - "type": "markup", |
42 | | - "kind": "close", |
43 | | - "name": "ns:tag" |
44 | | - } |
| 28 | + { "type": "markup", "kind": "close", "name": "ns:tag" } |
45 | 29 | ] |
46 | 30 | }, |
47 | 31 | { |
| 32 | + "tags": ["u:locale"], |
48 | 33 | "src": "hello {4.2 :number u:locale=fr}", |
49 | 34 | "exp": "hello 4,2" |
50 | 35 | }, |
51 | 36 | { |
| 37 | + "tags": ["u:dir", "u:locale"], |
| 38 | + "src": "{#tag u:dir=rtl u:locale=ar}content{/ns:tag}", |
| 39 | + "exp": "content", |
| 40 | + "expErrors": [{ "type": "bad-option" }], |
| 41 | + "expParts": [ |
| 42 | + { "type": "markup", "kind": "open", "name": "tag" }, |
| 43 | + { "type": "text", "value": "content" }, |
| 44 | + { "type": "markup", "kind": "close", "name": "ns:tag" } |
| 45 | + ] |
| 46 | + }, |
| 47 | + { |
| 48 | + "tags": ["u:dir", "u:id"], |
52 | 49 | "src": "hello {world :string u:dir=ltr u:id=foo}", |
53 | 50 | "exp": "hello \u2066world\u2069", |
54 | 51 | "expParts": [ |
|
60 | 57 | ] |
61 | 58 | }, |
62 | 59 | { |
| 60 | + "tags": ["u:dir"], |
63 | 61 | "src": "hello {world :string u:dir=rtl}", |
64 | 62 | "exp": "hello \u2067world\u2069", |
65 | 63 | "expParts": [ |
|
70 | 68 | ] |
71 | 69 | }, |
72 | 70 | { |
| 71 | + "tags": ["u:dir"], |
73 | 72 | "src": "hello {world :string u:dir=auto}", |
74 | 73 | "exp": "hello \u2068world\u2069", |
75 | 74 | "expParts": [ |
|
84 | 83 | ] |
85 | 84 | }, |
86 | 85 | { |
| 86 | + "tags": ["u:dir", "u:id"], |
87 | 87 | "src": ".local $world = {world :string u:dir=ltr u:id=foo} {{hello {$world}}}", |
88 | 88 | "exp": "hello \u2066world\u2069", |
89 | 89 | "expParts": [ |
|
94 | 94 | ] |
95 | 95 | }, |
96 | 96 | { |
| 97 | + "tags": ["u:dir"], |
97 | 98 | "locale": "ar", |
98 | 99 | "src": "أهلاً {بالعالم :string u:dir=rtl}", |
99 | 100 | "exp": "أهلاً \u2067بالعالم\u2069" |
100 | 101 | }, |
101 | 102 | { |
| 103 | + "tags": ["u:dir"], |
102 | 104 | "locale": "ar", |
103 | 105 | "src": "أهلاً {بالعالم :string u:dir=auto}", |
104 | 106 | "exp": "أهلاً \u2068بالعالم\u2069" |
105 | 107 | }, |
106 | 108 | { |
| 109 | + "tags": ["u:dir"], |
107 | 110 | "locale": "ar", |
108 | 111 | "src": "أهلاً {world :string u:dir=ltr}", |
109 | 112 | "exp": "أهلاً \u2066world\u2069" |
|
0 commit comments