| Index: LayoutTests/inspector/documentation/document-parser-expected.txt
|
| diff --git a/LayoutTests/inspector/documentation/document-parser-expected.txt b/LayoutTests/inspector/documentation/document-parser-expected.txt
|
| index 53a4d6b69a80f2ae613fdf1890f0fc55ef462240..5476281d80cfded4a9219c47f6ed609121b3a9ef 100644
|
| --- a/LayoutTests/inspector/documentation/document-parser-expected.txt
|
| +++ b/LayoutTests/inspector/documentation/document-parser-expected.txt
|
| @@ -1,28 +1,190 @@
|
|
|
| Running: testWikiParser
|
| -"{{A|B={{C|D=blablabla}}}}" is parsed
|
| +"{{A|Code= var nod{{=}}document.createElement("li");
|
| +document.getElementById("oUL1").insertBefore(nod, document.getElementById("oLIYellow"));
|
| +nod.textContet{{=}}"Orange"}}" is parsed
|
| +{
|
| + A : {
|
| + Code : " var nod=document.createElement("li");
|
| +document.getElementById("oUL1").insertBefore(nod, document.getElementById("oLIYellow"));
|
| +nod.textContet="Orange""
|
| + }
|
| +}
|
| +"{{A|Code={{=}} }}" is parsed
|
| +{
|
| + A : {
|
| + Code : "="
|
| + }
|
| +}
|
| +"{{A|B=C}}" is parsed
|
| {
|
| A : {
|
| B : {
|
| - C : {
|
| - D : "blablabla"
|
| + _children : [
|
| + {
|
| + _children : [
|
| + {
|
| + _isHighlighted : false
|
| + _text : "C"
|
| + _type : "PlainText"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| + }
|
| +}
|
| +"{{A|B={{C|D=blablabla}}}}" is parsed
|
| +{
|
| + A : {
|
| + B : [
|
| + {
|
| + C : {
|
| + D : {
|
| + _children : [
|
| + {
|
| + _children : [
|
| + {
|
| + _isHighlighted : false
|
| + _text : "blablabla"
|
| + _type : "PlainText"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| + }
|
| }
|
| + ]
|
| + }
|
| +}
|
| +"{{A|B={{C|D=bla}}|x=y}}" is parsed
|
| +{
|
| + A : {
|
| + B : [
|
| + {
|
| + C : {
|
| + D : {
|
| + _children : [
|
| + {
|
| + _children : [
|
| + {
|
| + _isHighlighted : false
|
| + _text : "bla"
|
| + _type : "PlainText"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| + }
|
| + }
|
| + ]
|
| + x : {
|
| + _children : [
|
| + {
|
| + _children : [
|
| + {
|
| + _isHighlighted : false
|
| + _text : "y"
|
| + _type : "PlainText"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| }
|
| }
|
| }
|
| "{{CS|Init=black|Values={{CSS Property Value
|
| |Data Type=color
|
| -|Description=[[css/color|CSS color value]]}}
|
| +|Description= [[css/color|CSS color value]]}}
|
| }}" is parsed
|
| {
|
| CS : {
|
| - Init : "black"
|
| - Values : {
|
| - CSS Property Value : {
|
| - Data Type : "color"
|
| - Description : "[[css/color|CSS color value]]"
|
| - }
|
| + Init : {
|
| + _children : [
|
| + {
|
| + _children : [
|
| + {
|
| + _isHighlighted : false
|
| + _text : "black"
|
| + _type : "PlainText"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| }
|
| + Values : [
|
| + {
|
| + CSS Property Value : {
|
| + Data Type : {
|
| + _children : [
|
| + {
|
| + _children : [
|
| + {
|
| + _isHighlighted : false
|
| + _text : "color"
|
| + _type : "PlainText"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| + Description : {
|
| + _children : [
|
| + {
|
| + _children : [
|
| + {
|
| + _children : [
|
| + {
|
| + _children : [
|
| + {
|
| + _isHighlighted : false
|
| + _text : "CSS color value"
|
| + _type : "PlainText"
|
| + }
|
| + ]
|
| + _type : "Inline"
|
| + }
|
| + ]
|
| + _type : "Link"
|
| + _url : "css/color"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| + }
|
| + }
|
| + ]
|
| }
|
| }
|
| "{{A}}" is parsed
|
| @@ -30,22 +192,59 @@ Running: testWikiParser
|
| A : {
|
| }
|
| }
|
| -"{{A|B=bla<a=c>bla}}" is parsed
|
| -{
|
| - A : {
|
| - B : "bla<a=c>bla"
|
| - }
|
| -}
|
| -"{{A}}" is parsed
|
| +"{{A|B= [[google.com{{!}}Google]]}}" is parsed
|
| {
|
| A : {
|
| + B : {
|
| + _children : [
|
| + {
|
| + _children : [
|
| + {
|
| + _children : [
|
| + {
|
| + _children : [
|
| + {
|
| + _isHighlighted : false
|
| + _text : "Google"
|
| + _type : "PlainText"
|
| + }
|
| + ]
|
| + _type : "Inline"
|
| + }
|
| + ]
|
| + _type : "Link"
|
| + _url : "google.com"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| }
|
| }
|
| "{{AbC|xyz
|
| - \r}}" is parsed
|
| + \r}}" is parsed
|
| {
|
| - AbC : "xyz
|
| - "
|
| + AbC : {
|
| + _children : [
|
| + {
|
| + _children : [
|
| + {
|
| + _isHighlighted : false
|
| + _text : "xyz"
|
| + _type : "PlainText"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| + ]
|
| + _hasBullet : false
|
| + _type : "Block"
|
| + }
|
| }
|
|
|
| Running: testJS
|
| @@ -528,7 +727,6 @@ Running: testCodeInsideBullet
|
| }
|
|
|
| Running: testInvalidInput
|
| -error: Can't parse remarks
|
| [object Object]
|
|
|
| Running: testLinkInsideCode
|
| @@ -694,12 +892,5 @@ Running: testJsMethod
|
| }
|
|
|
| Running: testLinkWithoutSpace
|
| -error: Can't parse summary
|
| -{
|
| - examples : [
|
| - ]
|
| - parameters : [
|
| - ]
|
| - summary : null
|
| -}
|
| +Error: Two closing braces expected; found WRONG_LINK
|
|
|
|
|