OLD | NEW |
1 | 1 |
2 Running: testWikiParser | 2 Running: testWikiParser |
| 3 "{{A|Code= var nod{{=}}document.createElement("li"); |
| 4 document.getElementById("oUL1").insertBefore(nod, document.getElementById("oLIYe
llow")); |
| 5 nod.textContet{{=}}"Orange"}}" is parsed |
| 6 { |
| 7 A : { |
| 8 Code : " var nod=document.createElement("li"); |
| 9 document.getElementById("oUL1").insertBefore(nod, document.getElementById("oLIYe
llow")); |
| 10 nod.textContet="Orange"" |
| 11 } |
| 12 } |
| 13 "{{A|Code={{=}} }}" is parsed |
| 14 { |
| 15 A : { |
| 16 Code : "=" |
| 17 } |
| 18 } |
| 19 "{{A|B=C}}" is parsed |
| 20 { |
| 21 A : { |
| 22 B : { |
| 23 _children : [ |
| 24 { |
| 25 _children : [ |
| 26 { |
| 27 _isHighlighted : false |
| 28 _text : "C" |
| 29 _type : "PlainText" |
| 30 } |
| 31 ] |
| 32 _hasBullet : false |
| 33 _type : "Block" |
| 34 } |
| 35 ] |
| 36 _hasBullet : false |
| 37 _type : "Block" |
| 38 } |
| 39 } |
| 40 } |
3 "{{A|B={{C|D=blablabla}}}}" is parsed | 41 "{{A|B={{C|D=blablabla}}}}" is parsed |
4 { | 42 { |
5 A : { | 43 A : { |
6 B : { | 44 B : [ |
7 C : { | 45 { |
8 D : "blablabla" | 46 C : { |
| 47 D : { |
| 48 _children : [ |
| 49 { |
| 50 _children : [ |
| 51 { |
| 52 _isHighlighted : false |
| 53 _text : "blablabla" |
| 54 _type : "PlainText" |
| 55 } |
| 56 ] |
| 57 _hasBullet : false |
| 58 _type : "Block" |
| 59 } |
| 60 ] |
| 61 _hasBullet : false |
| 62 _type : "Block" |
| 63 } |
| 64 } |
9 } | 65 } |
| 66 ] |
| 67 } |
| 68 } |
| 69 "{{A|B={{C|D=bla}}|x=y}}" is parsed |
| 70 { |
| 71 A : { |
| 72 B : [ |
| 73 { |
| 74 C : { |
| 75 D : { |
| 76 _children : [ |
| 77 { |
| 78 _children : [ |
| 79 { |
| 80 _isHighlighted : false |
| 81 _text : "bla" |
| 82 _type : "PlainText" |
| 83 } |
| 84 ] |
| 85 _hasBullet : false |
| 86 _type : "Block" |
| 87 } |
| 88 ] |
| 89 _hasBullet : false |
| 90 _type : "Block" |
| 91 } |
| 92 } |
| 93 } |
| 94 ] |
| 95 x : { |
| 96 _children : [ |
| 97 { |
| 98 _children : [ |
| 99 { |
| 100 _isHighlighted : false |
| 101 _text : "y" |
| 102 _type : "PlainText" |
| 103 } |
| 104 ] |
| 105 _hasBullet : false |
| 106 _type : "Block" |
| 107 } |
| 108 ] |
| 109 _hasBullet : false |
| 110 _type : "Block" |
10 } | 111 } |
11 } | 112 } |
12 } | 113 } |
13 "{{CS|Init=black|Values={{CSS Property Value | 114 "{{CS|Init=black|Values={{CSS Property Value |
14 |Data Type=color | 115 |Data Type=color |
15 |Description=[[css/color|CSS color value]]}} | 116 |Description= [[css/color|CSS color value]]}} |
16 }}" is parsed | 117 }}" is parsed |
17 { | 118 { |
18 CS : { | 119 CS : { |
19 Init : "black" | 120 Init : { |
20 Values : { | 121 _children : [ |
21 CSS Property Value : { | 122 { |
22 Data Type : "color" | 123 _children : [ |
23 Description : "[[css/color|CSS color value]]" | 124 { |
| 125 _isHighlighted : false |
| 126 _text : "black" |
| 127 _type : "PlainText" |
| 128 } |
| 129 ] |
| 130 _hasBullet : false |
| 131 _type : "Block" |
| 132 } |
| 133 ] |
| 134 _hasBullet : false |
| 135 _type : "Block" |
| 136 } |
| 137 Values : [ |
| 138 { |
| 139 CSS Property Value : { |
| 140 Data Type : { |
| 141 _children : [ |
| 142 { |
| 143 _children : [ |
| 144 { |
| 145 _isHighlighted : false |
| 146 _text : "color" |
| 147 _type : "PlainText" |
| 148 } |
| 149 ] |
| 150 _hasBullet : false |
| 151 _type : "Block" |
| 152 } |
| 153 ] |
| 154 _hasBullet : false |
| 155 _type : "Block" |
| 156 } |
| 157 Description : { |
| 158 _children : [ |
| 159 { |
| 160 _children : [ |
| 161 { |
| 162 _children : [ |
| 163 { |
| 164 _children : [ |
| 165 { |
| 166 _isHighlighted : false |
| 167 _text : "CSS color value
" |
| 168 _type : "PlainText" |
| 169 } |
| 170 ] |
| 171 _type : "Inline" |
| 172 } |
| 173 ] |
| 174 _type : "Link" |
| 175 _url : "css/color" |
| 176 } |
| 177 ] |
| 178 _hasBullet : false |
| 179 _type : "Block" |
| 180 } |
| 181 ] |
| 182 _hasBullet : false |
| 183 _type : "Block" |
| 184 } |
| 185 } |
24 } | 186 } |
25 } | 187 ] |
26 } | 188 } |
27 } | 189 } |
28 "{{A}}" is parsed | 190 "{{A}}" is parsed |
29 { | 191 { |
30 A : { | 192 A : { |
31 } | 193 } |
32 } | 194 } |
33 "{{A|B=bla<a=c>bla}}" is parsed | 195 "{{A|B= [[google.com{{!}}Google]]}}" is parsed |
34 { | 196 { |
35 A : { | 197 A : { |
36 B : "bla<a=c>bla" | 198 B : { |
37 } | 199 _children : [ |
38 } | 200 { |
39 "{{A}}" is parsed | 201 _children : [ |
40 { | 202 { |
41 A : { | 203 _children : [ |
| 204 { |
| 205 _children : [ |
| 206 { |
| 207 _isHighlighted : false |
| 208 _text : "Google" |
| 209 _type : "PlainText" |
| 210 } |
| 211 ] |
| 212 _type : "Inline" |
| 213 } |
| 214 ] |
| 215 _type : "Link" |
| 216 _url : "google.com" |
| 217 } |
| 218 ] |
| 219 _hasBullet : false |
| 220 _type : "Block" |
| 221 } |
| 222 ] |
| 223 _hasBullet : false |
| 224 _type : "Block" |
| 225 } |
42 } | 226 } |
43 } | 227 } |
44 "{{AbC|xyz | 228 "{{AbC|xyz |
45 » \r}}" is parsed | 229 » \r}}" is parsed |
46 { | 230 { |
47 AbC : "xyz | 231 AbC : { |
48 » " | 232 _children : [ |
| 233 { |
| 234 _children : [ |
| 235 { |
| 236 _isHighlighted : false |
| 237 _text : "xyz" |
| 238 _type : "PlainText" |
| 239 } |
| 240 ] |
| 241 _hasBullet : false |
| 242 _type : "Block" |
| 243 } |
| 244 ] |
| 245 _hasBullet : false |
| 246 _type : "Block" |
| 247 } |
49 } | 248 } |
50 | 249 |
51 Running: testJS | 250 Running: testJS |
52 { | 251 { |
53 examples : [ | 252 examples : [ |
54 ] | 253 ] |
55 parameters : [ | 254 parameters : [ |
56 ] | 255 ] |
57 remarks : { | 256 remarks : { |
58 _children : [ | 257 _children : [ |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 _hasBullet : true | 720 _hasBullet : true |
522 _type : "Block" | 721 _type : "Block" |
523 } | 722 } |
524 ] | 723 ] |
525 _hasBullet : false | 724 _hasBullet : false |
526 _type : "Block" | 725 _type : "Block" |
527 } | 726 } |
528 } | 727 } |
529 | 728 |
530 Running: testInvalidInput | 729 Running: testInvalidInput |
531 error: Can't parse remarks | |
532 [object Object] | 730 [object Object] |
533 | 731 |
534 Running: testLinkInsideCode | 732 Running: testLinkInsideCode |
535 { | 733 { |
536 examples : [ | 734 examples : [ |
537 ] | 735 ] |
538 parameters : [ | 736 parameters : [ |
539 ] | 737 ] |
540 summary : { | 738 summary : { |
541 _children : [ | 739 _children : [ |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 _hasBullet : false | 885 _hasBullet : false |
688 _type : "Block" | 886 _type : "Block" |
689 } | 887 } |
690 name : "refChild" | 888 name : "refChild" |
691 optional : true | 889 optional : true |
692 } | 890 } |
693 ] | 891 ] |
694 } | 892 } |
695 | 893 |
696 Running: testLinkWithoutSpace | 894 Running: testLinkWithoutSpace |
697 error: Can't parse summary | 895 Error: Two closing braces expected; found WRONG_LINK |
698 { | |
699 examples : [ | |
700 ] | |
701 parameters : [ | |
702 ] | |
703 summary : null | |
704 } | |
705 | 896 |
OLD | NEW |