OLD | NEW |
1 | 1 |
2 Running: testWikiParser | 2 Running: testWikiParser |
| 3 "{{A|text=<code>it's not a code <code>}}" is parsed |
| 4 { |
| 5 A : { |
| 6 text : { |
| 7 _children : [ |
| 8 { |
| 9 _children : [ |
| 10 { |
| 11 _isHighlighted : false |
| 12 _text : "<code>it's not a code <code>" |
| 13 _type : "PlainText" |
| 14 } |
| 15 ] |
| 16 _hasBullet : false |
| 17 _type : "Block" |
| 18 } |
| 19 ] |
| 20 _hasBullet : false |
| 21 _type : "Block" |
| 22 } |
| 23 } |
| 24 } |
| 25 "{{A|Code={{=}} }}" is parsed |
| 26 { |
| 27 A : { |
| 28 Code : { |
| 29 _children : [ |
| 30 { |
| 31 _children : [ |
| 32 { |
| 33 _isHighlighted : false |
| 34 _text : "=" |
| 35 _type : "PlainText" |
| 36 } |
| 37 ] |
| 38 _hasBullet : false |
| 39 _type : "Block" |
| 40 } |
| 41 ] |
| 42 _hasBullet : false |
| 43 _type : "Block" |
| 44 } |
| 45 } |
| 46 } |
| 47 "{{ABC|Array={{A|B=c}}{{X|y=Z}}|text=blabla}}" is parsed |
| 48 { |
| 49 ABC : { |
| 50 Array : [ |
| 51 { |
| 52 title : "A" |
| 53 values : { |
| 54 B : { |
| 55 _children : [ |
| 56 { |
| 57 _children : [ |
| 58 { |
| 59 _isHighlighted : false |
| 60 _text : "c" |
| 61 _type : "PlainText" |
| 62 } |
| 63 ] |
| 64 _hasBullet : false |
| 65 _type : "Block" |
| 66 } |
| 67 ] |
| 68 _hasBullet : false |
| 69 _type : "Block" |
| 70 } |
| 71 } |
| 72 } |
| 73 { |
| 74 title : "X" |
| 75 values : { |
| 76 y : { |
| 77 _children : [ |
| 78 { |
| 79 _children : [ |
| 80 { |
| 81 _isHighlighted : false |
| 82 _text : "Z" |
| 83 _type : "PlainText" |
| 84 } |
| 85 ] |
| 86 _hasBullet : false |
| 87 _type : "Block" |
| 88 } |
| 89 ] |
| 90 _hasBullet : false |
| 91 _type : "Block" |
| 92 } |
| 93 } |
| 94 } |
| 95 ] |
| 96 text : { |
| 97 _children : [ |
| 98 { |
| 99 _children : [ |
| 100 { |
| 101 _isHighlighted : false |
| 102 _text : "blabla" |
| 103 _type : "PlainText" |
| 104 } |
| 105 ] |
| 106 _hasBullet : false |
| 107 _type : "Block" |
| 108 } |
| 109 ] |
| 110 _hasBullet : false |
| 111 _type : "Block" |
| 112 } |
| 113 } |
| 114 } |
| 115 "{{A|B=C}}" is parsed |
| 116 { |
| 117 A : { |
| 118 B : { |
| 119 _children : [ |
| 120 { |
| 121 _children : [ |
| 122 { |
| 123 _isHighlighted : false |
| 124 _text : "C" |
| 125 _type : "PlainText" |
| 126 } |
| 127 ] |
| 128 _hasBullet : false |
| 129 _type : "Block" |
| 130 } |
| 131 ] |
| 132 _hasBullet : false |
| 133 _type : "Block" |
| 134 } |
| 135 } |
| 136 } |
3 "{{A|B={{C|D=blablabla}}}}" is parsed | 137 "{{A|B={{C|D=blablabla}}}}" is parsed |
4 { | 138 { |
5 A : { | 139 A : { |
6 B : { | 140 B : [ |
7 C : { | 141 { |
8 D : "blablabla" | 142 title : "C" |
9 } | 143 values : { |
| 144 D : { |
| 145 _children : [ |
| 146 { |
| 147 _children : [ |
| 148 { |
| 149 _isHighlighted : false |
| 150 _text : "blablabla" |
| 151 _type : "PlainText" |
| 152 } |
| 153 ] |
| 154 _hasBullet : false |
| 155 _type : "Block" |
| 156 } |
| 157 ] |
| 158 _hasBullet : false |
| 159 _type : "Block" |
| 160 } |
| 161 } |
| 162 } |
| 163 ] |
| 164 } |
| 165 } |
| 166 "{{A|B={{C|D=bla}}|x=y}}" is parsed |
| 167 { |
| 168 A : { |
| 169 B : [ |
| 170 { |
| 171 title : "C" |
| 172 values : { |
| 173 D : { |
| 174 _children : [ |
| 175 { |
| 176 _children : [ |
| 177 { |
| 178 _isHighlighted : false |
| 179 _text : "bla" |
| 180 _type : "PlainText" |
| 181 } |
| 182 ] |
| 183 _hasBullet : false |
| 184 _type : "Block" |
| 185 } |
| 186 ] |
| 187 _hasBullet : false |
| 188 _type : "Block" |
| 189 } |
| 190 } |
| 191 } |
| 192 ] |
| 193 x : { |
| 194 _children : [ |
| 195 { |
| 196 _children : [ |
| 197 { |
| 198 _isHighlighted : false |
| 199 _text : "y" |
| 200 _type : "PlainText" |
| 201 } |
| 202 ] |
| 203 _hasBullet : false |
| 204 _type : "Block" |
| 205 } |
| 206 ] |
| 207 _hasBullet : false |
| 208 _type : "Block" |
10 } | 209 } |
11 } | 210 } |
12 } | 211 } |
13 "{{CS|Init=black|Values={{CSS Property Value | 212 "{{CS|Init=black|Values={{CSS Property Value |
14 |Data Type=color | 213 |Data Type=color |
15 |Description=[[css/color|CSS color value]]}} | 214 |Description= [[css/color|CSS color value]]}} |
16 }}" is parsed | 215 }}" is parsed |
17 { | 216 { |
18 CS : { | 217 CS : { |
19 Init : "black" | 218 Init : { |
20 Values : { | 219 _children : [ |
21 CSS Property Value : { | 220 { |
22 Data Type : "color" | 221 _children : [ |
23 Description : "[[css/color|CSS color value]]" | 222 { |
24 } | 223 _isHighlighted : false |
25 } | 224 _text : "black" |
| 225 _type : "PlainText" |
| 226 } |
| 227 ] |
| 228 _hasBullet : false |
| 229 _type : "Block" |
| 230 } |
| 231 ] |
| 232 _hasBullet : false |
| 233 _type : "Block" |
| 234 } |
| 235 Values : [ |
| 236 { |
| 237 title : "CSS Property Value" |
| 238 values : { |
| 239 Data Type : { |
| 240 _children : [ |
| 241 { |
| 242 _children : [ |
| 243 { |
| 244 _isHighlighted : false |
| 245 _text : "color" |
| 246 _type : "PlainText" |
| 247 } |
| 248 ] |
| 249 _hasBullet : false |
| 250 _type : "Block" |
| 251 } |
| 252 ] |
| 253 _hasBullet : false |
| 254 _type : "Block" |
| 255 } |
| 256 Description : { |
| 257 _children : [ |
| 258 { |
| 259 _children : [ |
| 260 { |
| 261 _children : [ |
| 262 { |
| 263 _children : [ |
| 264 { |
| 265 _isHighlighted : false |
| 266 _text : "CSS color value
" |
| 267 _type : "PlainText" |
| 268 } |
| 269 ] |
| 270 _type : "Inline" |
| 271 } |
| 272 ] |
| 273 _type : "Link" |
| 274 _url : "css/color" |
| 275 } |
| 276 ] |
| 277 _hasBullet : false |
| 278 _type : "Block" |
| 279 } |
| 280 ] |
| 281 _hasBullet : false |
| 282 _type : "Block" |
| 283 } |
| 284 } |
| 285 } |
| 286 ] |
26 } | 287 } |
27 } | 288 } |
28 "{{A}}" is parsed | 289 "{{A}}" is parsed |
29 { | 290 { |
30 A : { | 291 A : undefined |
31 } | 292 } |
32 } | 293 "{{A|B= [[google.com{{!}}Google]]}}" is parsed |
33 "{{A|B=bla<a=c>bla}}" is parsed | 294 { |
34 { | 295 A : { |
35 A : { | 296 B : { |
36 B : "bla<a=c>bla" | 297 _children : [ |
37 } | 298 { |
38 } | 299 _children : [ |
39 "{{A}}" is parsed | 300 { |
40 { | 301 _children : [ |
41 A : { | 302 { |
| 303 _children : [ |
| 304 { |
| 305 _isHighlighted : false |
| 306 _text : "Google" |
| 307 _type : "PlainText" |
| 308 } |
| 309 ] |
| 310 _type : "Inline" |
| 311 } |
| 312 ] |
| 313 _type : "Link" |
| 314 _url : "google.com" |
| 315 } |
| 316 ] |
| 317 _hasBullet : false |
| 318 _type : "Block" |
| 319 } |
| 320 ] |
| 321 _hasBullet : false |
| 322 _type : "Block" |
| 323 } |
42 } | 324 } |
43 } | 325 } |
44 "{{AbC|xyz | 326 "{{AbC|xyz |
45 » \r}}" is parsed | 327 » \r}}" is parsed |
46 { | 328 { |
47 AbC : "xyz | 329 AbC : { |
48 » " | 330 _children : [ |
| 331 { |
| 332 _children : [ |
| 333 { |
| 334 _isHighlighted : false |
| 335 _text : "xyz" |
| 336 _type : "PlainText" |
| 337 } |
| 338 ] |
| 339 _hasBullet : false |
| 340 _type : "Block" |
| 341 } |
| 342 ] |
| 343 _hasBullet : false |
| 344 _type : "Block" |
| 345 } |
| 346 } |
| 347 "{{Table|there is a table {{{!}} |
| 348 }}" is parsed |
| 349 { |
| 350 Table : { |
| 351 _children : [ |
| 352 { |
| 353 _children : [ |
| 354 { |
| 355 _isHighlighted : false |
| 356 _text : "there is a table {{{!}}" |
| 357 _type : "PlainText" |
| 358 } |
| 359 ] |
| 360 _hasBullet : false |
| 361 _type : "Block" |
| 362 } |
| 363 ] |
| 364 _hasBullet : false |
| 365 _type : "Block" |
| 366 } |
| 367 } |
| 368 "{{External_Attribution|MSDN_link=[http://msdn.microsoft.com/en-us/library/ie/ms
536365(v=vs.85).aspx cloneNode Method]|HTML5Rocks_link=}}" is parsed |
| 369 { |
| 370 External_Attribution : { |
| 371 HTML5Rocks_link : undefined |
| 372 MSDN_link : { |
| 373 _children : [ |
| 374 { |
| 375 _children : [ |
| 376 { |
| 377 _isHighlighted : false |
| 378 _text : "[http://msdn.microsoft.com/en-us/library/ie
/ms536365(v=vs.85).aspx cloneNode Method]" |
| 379 _type : "PlainText" |
| 380 } |
| 381 ] |
| 382 _hasBullet : false |
| 383 _type : "Block" |
| 384 } |
| 385 ] |
| 386 _hasBullet : false |
| 387 _type : "Block" |
| 388 } |
| 389 } |
| 390 } |
| 391 "{{JS_Syntax|Formats={{JS Syntax Format|Format='''JSON.stringify(''' value [ , r
eplacer] [ , space] ''')'''}} |
| 392 }}" is parsed |
| 393 { |
| 394 JS_Syntax : { |
| 395 Formats : [ |
| 396 { |
| 397 title : "JS Syntax Format" |
| 398 values : { |
| 399 Format : { |
| 400 _children : [ |
| 401 { |
| 402 _children : [ |
| 403 { |
| 404 _isHighlighted : true |
| 405 _text : "JSON.stringify(" |
| 406 _type : "PlainText" |
| 407 } |
| 408 { |
| 409 _isHighlighted : false |
| 410 _text : " value" |
| 411 _type : "PlainText" |
| 412 } |
| 413 { |
| 414 _children : [ |
| 415 ] |
| 416 _type : "Link" |
| 417 _url : " , replacer" |
| 418 } |
| 419 { |
| 420 _children : [ |
| 421 ] |
| 422 _type : "Link" |
| 423 _url : " , space" |
| 424 } |
| 425 { |
| 426 _isHighlighted : false |
| 427 _text : " " |
| 428 _type : "PlainText" |
| 429 } |
| 430 { |
| 431 _isHighlighted : true |
| 432 _text : ")" |
| 433 _type : "PlainText" |
| 434 } |
| 435 ] |
| 436 _hasBullet : false |
| 437 _type : "Block" |
| 438 } |
| 439 ] |
| 440 _hasBullet : false |
| 441 _type : "Block" |
| 442 } |
| 443 } |
| 444 } |
| 445 ] |
| 446 } |
49 } | 447 } |
50 | 448 |
51 Running: testJS | 449 Running: testJS |
52 { | 450 { |
53 examples : [ | 451 examples : [ |
54 ] | 452 ] |
55 parameters : [ | 453 parameters : [ |
56 ] | 454 ] |
57 remarks : { | 455 remarks : { |
58 _children : [ | 456 _children : [ |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 _type : "PlainText" | 514 _type : "PlainText" |
117 } | 515 } |
118 ] | 516 ] |
119 _hasBullet : false | 517 _hasBullet : false |
120 _type : "Block" | 518 _type : "Block" |
121 } | 519 } |
122 ] | 520 ] |
123 _hasBullet : false | 521 _hasBullet : false |
124 _type : "Block" | 522 _type : "Block" |
125 } | 523 } |
| 524 summary : undefined |
126 } | 525 } |
127 | 526 |
128 Running: testSmall | 527 Running: testSmall |
129 { | 528 { |
130 examples : [ | 529 examples : [ |
131 ] | 530 ] |
132 parameters : [ | 531 parameters : [ |
133 ] | 532 ] |
| 533 remarks : null |
134 summary : { | 534 summary : { |
135 _children : [ | 535 _children : [ |
136 { | 536 { |
137 _children : [ | 537 _children : [ |
138 { | 538 { |
139 _isHighlighted : false | 539 _isHighlighted : false |
140 _text : "blabla " | 540 _text : "blabla " |
141 _type : "PlainText" | 541 _type : "PlainText" |
142 } | 542 } |
143 { | 543 { |
(...skipping 10 matching lines...) Expand all Loading... |
154 _type : "Block" | 554 _type : "Block" |
155 } | 555 } |
156 } | 556 } |
157 | 557 |
158 Running: testHighlightAndLink | 558 Running: testHighlightAndLink |
159 { | 559 { |
160 examples : [ | 560 examples : [ |
161 ] | 561 ] |
162 parameters : [ | 562 parameters : [ |
163 ] | 563 ] |
| 564 remarks : null |
164 summary : { | 565 summary : { |
165 _children : [ | 566 _children : [ |
166 { | 567 { |
167 _children : [ | 568 _children : [ |
168 { | 569 { |
169 _isHighlighted : false | 570 _isHighlighted : false |
170 _text : "The " | 571 _text : "The " |
171 _type : "PlainText" | 572 _type : "PlainText" |
172 } | 573 } |
173 { | 574 { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 _type : "Block" | 663 _type : "Block" |
263 } | 664 } |
264 } | 665 } |
265 | 666 |
266 Running: testNamedLink | 667 Running: testNamedLink |
267 { | 668 { |
268 examples : [ | 669 examples : [ |
269 ] | 670 ] |
270 parameters : [ | 671 parameters : [ |
271 ] | 672 ] |
| 673 remarks : null |
272 summary : { | 674 summary : { |
273 _children : [ | 675 _children : [ |
274 { | 676 { |
275 _children : [ | 677 _children : [ |
276 { | 678 { |
277 _children : [ | 679 _children : [ |
278 { | 680 { |
279 _children : [ | 681 _children : [ |
280 { | 682 { |
281 _isHighlighted : false | 683 _isHighlighted : false |
(...skipping 16 matching lines...) Expand all Loading... |
298 _type : "Block" | 700 _type : "Block" |
299 } | 701 } |
300 } | 702 } |
301 | 703 |
302 Running: testBullet | 704 Running: testBullet |
303 { | 705 { |
304 examples : [ | 706 examples : [ |
305 ] | 707 ] |
306 parameters : [ | 708 parameters : [ |
307 ] | 709 ] |
| 710 remarks : null |
308 summary : { | 711 summary : { |
309 _children : [ | 712 _children : [ |
310 { | 713 { |
311 _children : [ | 714 _children : [ |
312 { | 715 { |
313 _isHighlighted : false | 716 _isHighlighted : false |
314 _text : "blabla" | 717 _text : "blabla" |
315 _type : "PlainText" | 718 _type : "PlainText" |
316 } | 719 } |
317 ] | 720 ] |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 console.log(Object.keys(my_array)); | 840 console.log(Object.keys(my_array)); |
438 | 841 |
439 // Output | 842 // Output |
440 // ["0"]" | 843 // ["0"]" |
441 _type : "CodeBlock" | 844 _type : "CodeBlock" |
442 } | 845 } |
443 ] | 846 ] |
444 _hasBullet : false | 847 _hasBullet : false |
445 _type : "Block" | 848 _type : "Block" |
446 } | 849 } |
| 850 summary : undefined |
447 } | 851 } |
448 | 852 |
449 Running: testComplexLinkName | 853 Running: testComplexLinkName |
450 { | 854 { |
451 examples : [ | 855 examples : [ |
452 ] | 856 ] |
453 parameters : [ | 857 parameters : [ |
454 ] | 858 ] |
| 859 remarks : null |
455 summary : { | 860 summary : { |
456 _children : [ | 861 _children : [ |
457 { | 862 { |
458 _children : [ | 863 _children : [ |
459 { | 864 { |
460 _children : [ | 865 _children : [ |
461 { | 866 { |
462 _children : [ | 867 _children : [ |
463 { | 868 { |
464 _isHighlighted : false | 869 _isHighlighted : false |
(...skipping 26 matching lines...) Expand all Loading... |
491 _type : "Block" | 896 _type : "Block" |
492 } | 897 } |
493 } | 898 } |
494 | 899 |
495 Running: testCodeInsideBullet | 900 Running: testCodeInsideBullet |
496 { | 901 { |
497 examples : [ | 902 examples : [ |
498 ] | 903 ] |
499 parameters : [ | 904 parameters : [ |
500 ] | 905 ] |
| 906 remarks : null |
501 summary : { | 907 summary : { |
502 _children : [ | 908 _children : [ |
503 { | 909 { |
504 _children : [ | 910 _children : [ |
505 { | 911 { |
506 _isHighlighted : false | 912 _isHighlighted : false |
507 _text : "some text " | 913 _text : "some text " |
508 _type : "PlainText" | 914 _type : "PlainText" |
509 } | 915 } |
510 { | 916 { |
(...skipping 10 matching lines...) Expand all Loading... |
521 _hasBullet : true | 927 _hasBullet : true |
522 _type : "Block" | 928 _type : "Block" |
523 } | 929 } |
524 ] | 930 ] |
525 _hasBullet : false | 931 _hasBullet : false |
526 _type : "Block" | 932 _type : "Block" |
527 } | 933 } |
528 } | 934 } |
529 | 935 |
530 Running: testInvalidInput | 936 Running: testInvalidInput |
531 error: Can't parse remarks | |
532 [object Object] | 937 [object Object] |
533 | 938 |
534 Running: testLinkInsideCode | 939 Running: testLinkInsideCode |
535 { | 940 { |
536 examples : [ | 941 examples : [ |
537 ] | 942 ] |
538 parameters : [ | 943 parameters : [ |
539 ] | 944 ] |
| 945 remarks : null |
540 summary : { | 946 summary : { |
541 _children : [ | 947 _children : [ |
542 { | 948 { |
543 _children : [ | 949 _children : [ |
544 { | 950 { |
545 _children : [ | 951 _children : [ |
546 { | 952 { |
547 _children : [ | 953 _children : [ |
548 { | 954 { |
549 _children : [ | 955 _children : [ |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 ] | 1034 ] |
629 _hasBullet : false | 1035 _hasBullet : false |
630 _type : "Block" | 1036 _type : "Block" |
631 } | 1037 } |
632 language : "HTML" | 1038 language : "HTML" |
633 liveUrl : "http://samples.msdn.microsoft.com/workshop/samples/author
/dhtml/refs/insertBefore.htm" | 1039 liveUrl : "http://samples.msdn.microsoft.com/workshop/samples/author
/dhtml/refs/insertBefore.htm" |
634 } | 1040 } |
635 ] | 1041 ] |
636 parameters : [ | 1042 parameters : [ |
637 ] | 1043 ] |
| 1044 remarks : null |
| 1045 summary : undefined |
638 } | 1046 } |
639 | 1047 |
640 Running: testJsMethod | 1048 Running: testJsMethod |
641 { | 1049 { |
642 examples : [ | 1050 examples : [ |
643 ] | 1051 ] |
644 methods : { | 1052 methods : { |
645 returnValueDescription : "The inserted node." | 1053 returnValueDescription : "The inserted node." |
646 returnValueName : "DOM Node" | 1054 returnValueName : "DOM Node" |
647 } | 1055 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 _type : "Block" | 1092 _type : "Block" |
685 } | 1093 } |
686 ] | 1094 ] |
687 _hasBullet : false | 1095 _hasBullet : false |
688 _type : "Block" | 1096 _type : "Block" |
689 } | 1097 } |
690 name : "refChild" | 1098 name : "refChild" |
691 optional : true | 1099 optional : true |
692 } | 1100 } |
693 ] | 1101 ] |
| 1102 remarks : null |
| 1103 summary : undefined |
694 } | 1104 } |
695 | 1105 |
696 Running: testLinkWithoutSpace | 1106 Running: testLinkWithoutSpace |
697 error: Can't parse summary | 1107 Expected error: Error: Two closing braces expected; found WRONG_LINK |
698 { | |
699 examples : [ | |
700 ] | |
701 parameters : [ | |
702 ] | |
703 summary : null | |
704 } | |
705 | 1108 |
OLD | NEW |