| 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 } |
| 248 } |
| 249 "{{External_Attribution|MSDN_link=[http://msdn.microsoft.com/en-us/library/ie/ms
536365(v=vs.85).aspx cloneNode Method]|HTML5Rocks_link=}}" is parsed |
| 250 { |
| 251 External_Attribution : { |
| 252 MSDN_link : { |
| 253 _children : [ |
| 254 { |
| 255 _children : [ |
| 256 { |
| 257 _isHighlighted : false |
| 258 _text : "[http://msdn.microsoft.com/en-us/library/ie
/ms536365(v=vs.85).aspx cloneNode Method]" |
| 259 _type : "PlainText" |
| 260 } |
| 261 ] |
| 262 _hasBullet : false |
| 263 _type : "Block" |
| 264 } |
| 265 ] |
| 266 _hasBullet : false |
| 267 _type : "Block" |
| 268 } |
| 269 } |
| 270 } |
| 271 "{{JS_Syntax|Formats={{JS Syntax Format|Format='''JSON.stringify(''' value [ , r
eplacer] [ , space] ''')'''}} |
| 272 }}" is parsed |
| 273 { |
| 274 JS_Syntax : { |
| 275 Formats : [ |
| 276 { |
| 277 JS Syntax Format : { |
| 278 Format : { |
| 279 _children : [ |
| 280 { |
| 281 _children : [ |
| 282 { |
| 283 _isHighlighted : true |
| 284 _text : "JSON.stringify(" |
| 285 _type : "PlainText" |
| 286 } |
| 287 { |
| 288 _isHighlighted : false |
| 289 _text : " value" |
| 290 _type : "PlainText" |
| 291 } |
| 292 { |
| 293 _children : [ |
| 294 ] |
| 295 _type : "Link" |
| 296 _url : " , replacer" |
| 297 } |
| 298 { |
| 299 _children : [ |
| 300 ] |
| 301 _type : "Link" |
| 302 _url : " , space" |
| 303 } |
| 304 { |
| 305 _isHighlighted : false |
| 306 _text : " " |
| 307 _type : "PlainText" |
| 308 } |
| 309 { |
| 310 _isHighlighted : true |
| 311 _text : ")" |
| 312 _type : "PlainText" |
| 313 } |
| 314 ] |
| 315 _hasBullet : false |
| 316 _type : "Block" |
| 317 } |
| 318 ] |
| 319 _hasBullet : false |
| 320 _type : "Block" |
| 321 } |
| 322 } |
| 323 } |
| 324 ] |
| 325 } |
| 49 } | 326 } |
| 50 | 327 |
| 51 Running: testJS | 328 Running: testJS |
| 52 { | 329 { |
| 53 examples : [ | 330 examples : [ |
| 54 ] | 331 ] |
| 55 parameters : [ | 332 parameters : [ |
| 56 ] | 333 ] |
| 57 remarks : { | 334 remarks : { |
| 58 _children : [ | 335 _children : [ |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 _type : "PlainText" | 393 _type : "PlainText" |
| 117 } | 394 } |
| 118 ] | 395 ] |
| 119 _hasBullet : false | 396 _hasBullet : false |
| 120 _type : "Block" | 397 _type : "Block" |
| 121 } | 398 } |
| 122 ] | 399 ] |
| 123 _hasBullet : false | 400 _hasBullet : false |
| 124 _type : "Block" | 401 _type : "Block" |
| 125 } | 402 } |
| 403 summary : undefined |
| 126 } | 404 } |
| 127 | 405 |
| 128 Running: testSmall | 406 Running: testSmall |
| 129 { | 407 { |
| 130 examples : [ | 408 examples : [ |
| 131 ] | 409 ] |
| 132 parameters : [ | 410 parameters : [ |
| 133 ] | 411 ] |
| 412 remarks : null |
| 134 summary : { | 413 summary : { |
| 135 _children : [ | 414 _children : [ |
| 136 { | 415 { |
| 137 _children : [ | 416 _children : [ |
| 138 { | 417 { |
| 139 _isHighlighted : false | 418 _isHighlighted : false |
| 140 _text : "blabla " | 419 _text : "blabla " |
| 141 _type : "PlainText" | 420 _type : "PlainText" |
| 142 } | 421 } |
| 143 { | 422 { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 154 _type : "Block" | 433 _type : "Block" |
| 155 } | 434 } |
| 156 } | 435 } |
| 157 | 436 |
| 158 Running: testHighlightAndLink | 437 Running: testHighlightAndLink |
| 159 { | 438 { |
| 160 examples : [ | 439 examples : [ |
| 161 ] | 440 ] |
| 162 parameters : [ | 441 parameters : [ |
| 163 ] | 442 ] |
| 443 remarks : null |
| 164 summary : { | 444 summary : { |
| 165 _children : [ | 445 _children : [ |
| 166 { | 446 { |
| 167 _children : [ | 447 _children : [ |
| 168 { | 448 { |
| 169 _isHighlighted : false | 449 _isHighlighted : false |
| 170 _text : "The " | 450 _text : "The " |
| 171 _type : "PlainText" | 451 _type : "PlainText" |
| 172 } | 452 } |
| 173 { | 453 { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 _type : "Block" | 542 _type : "Block" |
| 263 } | 543 } |
| 264 } | 544 } |
| 265 | 545 |
| 266 Running: testNamedLink | 546 Running: testNamedLink |
| 267 { | 547 { |
| 268 examples : [ | 548 examples : [ |
| 269 ] | 549 ] |
| 270 parameters : [ | 550 parameters : [ |
| 271 ] | 551 ] |
| 552 remarks : null |
| 272 summary : { | 553 summary : { |
| 273 _children : [ | 554 _children : [ |
| 274 { | 555 { |
| 275 _children : [ | 556 _children : [ |
| 276 { | 557 { |
| 277 _children : [ | 558 _children : [ |
| 278 { | 559 { |
| 279 _children : [ | 560 _children : [ |
| 280 { | 561 { |
| 281 _isHighlighted : false | 562 _isHighlighted : false |
| (...skipping 16 matching lines...) Expand all Loading... |
| 298 _type : "Block" | 579 _type : "Block" |
| 299 } | 580 } |
| 300 } | 581 } |
| 301 | 582 |
| 302 Running: testBullet | 583 Running: testBullet |
| 303 { | 584 { |
| 304 examples : [ | 585 examples : [ |
| 305 ] | 586 ] |
| 306 parameters : [ | 587 parameters : [ |
| 307 ] | 588 ] |
| 589 remarks : null |
| 308 summary : { | 590 summary : { |
| 309 _children : [ | 591 _children : [ |
| 310 { | 592 { |
| 311 _children : [ | 593 _children : [ |
| 312 { | 594 { |
| 313 _isHighlighted : false | 595 _isHighlighted : false |
| 314 _text : "blabla" | 596 _text : "blabla" |
| 315 _type : "PlainText" | 597 _type : "PlainText" |
| 316 } | 598 } |
| 317 ] | 599 ] |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 console.log(Object.keys(my_array)); | 719 console.log(Object.keys(my_array)); |
| 438 | 720 |
| 439 // Output | 721 // Output |
| 440 // ["0"]" | 722 // ["0"]" |
| 441 _type : "CodeBlock" | 723 _type : "CodeBlock" |
| 442 } | 724 } |
| 443 ] | 725 ] |
| 444 _hasBullet : false | 726 _hasBullet : false |
| 445 _type : "Block" | 727 _type : "Block" |
| 446 } | 728 } |
| 729 summary : undefined |
| 447 } | 730 } |
| 448 | 731 |
| 449 Running: testComplexLinkName | 732 Running: testComplexLinkName |
| 450 { | 733 { |
| 451 examples : [ | 734 examples : [ |
| 452 ] | 735 ] |
| 453 parameters : [ | 736 parameters : [ |
| 454 ] | 737 ] |
| 738 remarks : null |
| 455 summary : { | 739 summary : { |
| 456 _children : [ | 740 _children : [ |
| 457 { | 741 { |
| 458 _children : [ | 742 _children : [ |
| 459 { | 743 { |
| 460 _children : [ | 744 _children : [ |
| 461 { | 745 { |
| 462 _children : [ | 746 _children : [ |
| 463 { | 747 { |
| 464 _isHighlighted : false | 748 _isHighlighted : false |
| (...skipping 26 matching lines...) Expand all Loading... |
| 491 _type : "Block" | 775 _type : "Block" |
| 492 } | 776 } |
| 493 } | 777 } |
| 494 | 778 |
| 495 Running: testCodeInsideBullet | 779 Running: testCodeInsideBullet |
| 496 { | 780 { |
| 497 examples : [ | 781 examples : [ |
| 498 ] | 782 ] |
| 499 parameters : [ | 783 parameters : [ |
| 500 ] | 784 ] |
| 785 remarks : null |
| 501 summary : { | 786 summary : { |
| 502 _children : [ | 787 _children : [ |
| 503 { | 788 { |
| 504 _children : [ | 789 _children : [ |
| 505 { | 790 { |
| 506 _isHighlighted : false | 791 _isHighlighted : false |
| 507 _text : "some text " | 792 _text : "some text " |
| 508 _type : "PlainText" | 793 _type : "PlainText" |
| 509 } | 794 } |
| 510 { | 795 { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 521 _hasBullet : true | 806 _hasBullet : true |
| 522 _type : "Block" | 807 _type : "Block" |
| 523 } | 808 } |
| 524 ] | 809 ] |
| 525 _hasBullet : false | 810 _hasBullet : false |
| 526 _type : "Block" | 811 _type : "Block" |
| 527 } | 812 } |
| 528 } | 813 } |
| 529 | 814 |
| 530 Running: testInvalidInput | 815 Running: testInvalidInput |
| 531 error: Can't parse remarks | |
| 532 [object Object] | 816 [object Object] |
| 533 | 817 |
| 534 Running: testLinkInsideCode | 818 Running: testLinkInsideCode |
| 535 { | 819 { |
| 536 examples : [ | 820 examples : [ |
| 537 ] | 821 ] |
| 538 parameters : [ | 822 parameters : [ |
| 539 ] | 823 ] |
| 824 remarks : null |
| 540 summary : { | 825 summary : { |
| 541 _children : [ | 826 _children : [ |
| 542 { | 827 { |
| 543 _children : [ | 828 _children : [ |
| 544 { | 829 { |
| 545 _children : [ | 830 _children : [ |
| 546 { | 831 { |
| 547 _children : [ | 832 _children : [ |
| 548 { | 833 { |
| 549 _children : [ | 834 _children : [ |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 ] | 913 ] |
| 629 _hasBullet : false | 914 _hasBullet : false |
| 630 _type : "Block" | 915 _type : "Block" |
| 631 } | 916 } |
| 632 language : "HTML" | 917 language : "HTML" |
| 633 liveUrl : "http://samples.msdn.microsoft.com/workshop/samples/author
/dhtml/refs/insertBefore.htm" | 918 liveUrl : "http://samples.msdn.microsoft.com/workshop/samples/author
/dhtml/refs/insertBefore.htm" |
| 634 } | 919 } |
| 635 ] | 920 ] |
| 636 parameters : [ | 921 parameters : [ |
| 637 ] | 922 ] |
| 923 remarks : null |
| 924 summary : undefined |
| 638 } | 925 } |
| 639 | 926 |
| 640 Running: testJsMethod | 927 Running: testJsMethod |
| 641 { | 928 { |
| 642 examples : [ | 929 examples : [ |
| 643 ] | 930 ] |
| 644 methods : { | 931 methods : { |
| 645 returnValueDescription : "The inserted node." | 932 returnValueDescription : "The inserted node." |
| 646 returnValueName : "DOM Node" | 933 returnValueName : "DOM Node" |
| 647 } | 934 } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 _type : "Block" | 971 _type : "Block" |
| 685 } | 972 } |
| 686 ] | 973 ] |
| 687 _hasBullet : false | 974 _hasBullet : false |
| 688 _type : "Block" | 975 _type : "Block" |
| 689 } | 976 } |
| 690 name : "refChild" | 977 name : "refChild" |
| 691 optional : true | 978 optional : true |
| 692 } | 979 } |
| 693 ] | 980 ] |
| 981 remarks : null |
| 982 summary : undefined |
| 694 } | 983 } |
| 695 | 984 |
| 696 Running: testLinkWithoutSpace | 985 Running: testLinkWithoutSpace |
| 697 error: Can't parse summary | 986 Expected error: Error: Two closing braces expected; found WRONG_LINK |
| 698 { | |
| 699 examples : [ | |
| 700 ] | |
| 701 parameters : [ | |
| 702 ] | |
| 703 summary : null | |
| 704 } | |
| 705 | 987 |
| OLD | NEW |