Chromium Code Reviews| 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..263316a5f4a45e91717a7b508528b96438820d0c 100644 |
| --- a/LayoutTests/inspector/documentation/document-parser-expected.txt |
| +++ b/LayoutTests/inspector/documentation/document-parser-expected.txt |
| @@ -1,51 +1,427 @@ |
| Running: testWikiParser |
| -"{{A|B={{C|D=blablabla}}}}" is parsed |
| +"{{A|Code={{=}} }}" is parsed |
| +{ |
| + A : { |
| + Code : { |
| + _children : [ |
| + { |
| + _children : [ |
| + { |
| + _isHighlighted : false |
| + _text : "=" |
| + _type : "PlainText" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| + } |
| + } |
| +} |
| +"{{ABC|Array={{A|B=c}}{{X|y=Z}}|text=blabla}}" is parsed |
| +{ |
| + ABC : { |
| + Array : [ |
| + { |
| + title : "A" |
| + values : { |
| + B : { |
| + _children : [ |
| + { |
| + _children : [ |
| + { |
| + _isHighlighted : false |
| + _text : "c" |
| + _type : "PlainText" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| + } |
| + } |
| + } |
| + { |
| + title : "X" |
| + values : { |
| + y : { |
| + _children : [ |
| + { |
| + _children : [ |
| + { |
| + _isHighlighted : false |
| + _text : "Z" |
| + _type : "PlainText" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| + } |
| + } |
| + } |
| + ] |
| + text : { |
| + _children : [ |
| + { |
| + _children : [ |
| + { |
| + _isHighlighted : false |
| + _text : "blabla" |
| + _type : "PlainText" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| + } |
| + } |
| +} |
| +"{{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 : [ |
| + { |
| + title : "C" |
| + values : { |
| + 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 : [ |
| + { |
| + title : "C" |
| + values : { |
| + 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 : [ |
| + { |
| + title : "CSS Property Value" |
| + values : { |
| + 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 |
| { |
| + A : undefined |
| +} |
| +"{{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" |
| + } |
| } |
| } |
| -"{{A|B=bla<a=c>bla}}" is parsed |
| +"{{AbC|xyz |
| + \r}}" is parsed |
| { |
| - A : { |
| - B : "bla<a=c>bla" |
| + AbC : { |
| + _children : [ |
| + { |
| + _children : [ |
| + { |
| + _isHighlighted : false |
| + _text : "xyz" |
| + _type : "PlainText" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| } |
| } |
| -"{{A}}" is parsed |
| +"{{Table|there is a table {{{!}} |
| +}}" is parsed |
| { |
| - A : { |
| + Table : { |
| + _children : [ |
| + { |
| + _children : [ |
| + { |
| + _isHighlighted : false |
| + _text : "there is a table {{{!}}" |
| + _type : "PlainText" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| } |
| } |
| -"{{AbC|xyz |
| - \r}}" is parsed |
| +"{{External_Attribution|MSDN_link=[http://msdn.microsoft.com/en-us/library/ie/ms536365(v=vs.85).aspx cloneNode Method]|HTML5Rocks_link=}}" is parsed |
| { |
| - AbC : "xyz |
| - " |
| + External_Attribution : { |
| + HTML5Rocks_link : undefined |
| + MSDN_link : { |
| + _children : [ |
| + { |
| + _children : [ |
| + { |
| + _isHighlighted : false |
| + _text : "[http://msdn.microsoft.com/en-us/library/ie/ms536365(v=vs.85).aspx cloneNode Method]" |
| + _type : "PlainText" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| + } |
| + } |
| +} |
| +"{{JS_Syntax|Formats={{JS Syntax Format|Format='''JSON.stringify(''' value [ , replacer] [ , space] ''')'''}} |
| +}}" is parsed |
| +{ |
| + JS_Syntax : { |
| + Formats : [ |
| + { |
| + title : "JS Syntax Format" |
| + values : { |
| + Format : { |
| + _children : [ |
| + { |
| + _children : [ |
| + { |
| + _isHighlighted : true |
| + _text : "JSON.stringify(" |
| + _type : "PlainText" |
| + } |
| + { |
| + _isHighlighted : false |
| + _text : " value" |
| + _type : "PlainText" |
| + } |
| + { |
| + _children : [ |
| + ] |
| + _type : "Link" |
| + _url : " , replacer" |
|
apavlov
2014/09/10 14:09:23
This corresponds to an optional argument, not a li
iliia
2014/09/11 09:26:29
Yes, but we don't know how to fix it.
On 2014/09/1
|
| + } |
| + { |
| + _children : [ |
| + ] |
| + _type : "Link" |
| + _url : " , space" |
|
apavlov
2014/09/10 14:09:23
ditto
|
| + } |
| + { |
| + _isHighlighted : false |
| + _text : " " |
| + _type : "PlainText" |
| + } |
| + { |
| + _isHighlighted : true |
| + _text : ")" |
| + _type : "PlainText" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| + } |
| + ] |
| + _hasBullet : false |
| + _type : "Block" |
| + } |
| + } |
| + } |
| + ] |
| + } |
| } |
| Running: testJS |
| @@ -123,6 +499,7 @@ Running: testJS |
| _hasBullet : false |
| _type : "Block" |
| } |
| + summary : undefined |
| } |
| Running: testSmall |
| @@ -131,6 +508,7 @@ Running: testSmall |
| ] |
| parameters : [ |
| ] |
| + remarks : null |
| summary : { |
| _children : [ |
| { |
| @@ -161,6 +539,7 @@ Running: testHighlightAndLink |
| ] |
| parameters : [ |
| ] |
| + remarks : null |
| summary : { |
| _children : [ |
| { |
| @@ -269,6 +648,7 @@ Running: testNamedLink |
| ] |
| parameters : [ |
| ] |
| + remarks : null |
| summary : { |
| _children : [ |
| { |
| @@ -305,6 +685,7 @@ Running: testBullet |
| ] |
| parameters : [ |
| ] |
| + remarks : null |
| summary : { |
| _children : [ |
| { |
| @@ -444,6 +825,7 @@ console.log(Object.keys(my_array)); |
| _hasBullet : false |
| _type : "Block" |
| } |
| + summary : undefined |
| } |
| Running: testComplexLinkName |
| @@ -452,6 +834,7 @@ Running: testComplexLinkName |
| ] |
| parameters : [ |
| ] |
| + remarks : null |
| summary : { |
| _children : [ |
| { |
| @@ -498,6 +881,7 @@ Running: testCodeInsideBullet |
| ] |
| parameters : [ |
| ] |
| + remarks : null |
| summary : { |
| _children : [ |
| { |
| @@ -528,7 +912,6 @@ Running: testCodeInsideBullet |
| } |
| Running: testInvalidInput |
| -error: Can't parse remarks |
| [object Object] |
| Running: testLinkInsideCode |
| @@ -537,6 +920,7 @@ Running: testLinkInsideCode |
| ] |
| parameters : [ |
| ] |
| + remarks : null |
| summary : { |
| _children : [ |
| { |
| @@ -635,6 +1019,8 @@ Running: testExamples |
| ] |
| parameters : [ |
| ] |
| + remarks : null |
| + summary : undefined |
| } |
| Running: testJsMethod |
| @@ -691,15 +1077,10 @@ Running: testJsMethod |
| optional : true |
| } |
| ] |
| + remarks : null |
| + summary : undefined |
| } |
| Running: testLinkWithoutSpace |
| -error: Can't parse summary |
| -{ |
| - examples : [ |
| - ] |
| - parameters : [ |
| - ] |
| - summary : null |
| -} |
| +Expected error: Error: Two closing braces expected; found WRONG_LINK |