Chromium Code Reviews| Index: LayoutTests/inspector/documentation/document-parser.html |
| diff --git a/LayoutTests/inspector/documentation/document-parser.html b/LayoutTests/inspector/documentation/document-parser.html |
| index cae3d0400e0e5f615f80af2e2e771dd3cb5fdb5f..d5c65d60ecf5bad5d5b26ff9e818f0eae6595fac 100644 |
| --- a/LayoutTests/inspector/documentation/document-parser.html |
| +++ b/LayoutTests/inspector/documentation/document-parser.html |
| @@ -11,12 +11,17 @@ function test() |
| function testWikiParser(next) |
| { |
| var testCases = [ |
| + "{{A|Code= var nod{{=}}document.createElement(\"li\");\ndocument.getElementById(\"oUL1\").insertBefore(nod, document.getElementById(\"oLIYellow\"));\nnod.textContet{{=}}\"Orange\"}}", |
|
loislo
2014/09/09 08:06:57
please reduce the size of the line.
iliia
2014/09/09 08:19:28
There is the same test in testExamples, so I will
|
| + "{{A|Code={{=}} }}", |
| + "{{A|B=C}}", |
| "{{A|B={{C|D=blablabla}}}}", |
| - "{{CS|Init=black|Values={{CSS Property Value\n|Data Type=color\n|Description=[[css/color|CSS color value]]}}\n}}", |
| + "{{A|B={{C|D=bla}}|x=y}}", |
| + "{{CS|Init=black|Values={{CSS Property Value\n|Data Type=color\n|Description= [[css/color|CSS color value]]}}\n}}", |
| "{{A}}", |
| - "{{A|B=bla<a=c>bla}}", |
| - "{{A}}", |
| - "{{AbC|xyz \n \t \r}}"]; |
| + "{{A|B= [[google.com{{!}}Google]]}}", |
| + "{{AbC|xyz \n\t \r}}", |
| + "{{External_Attribution|MSDN_link=[http://msdn.microsoft.com/en-us/library/ie/ms536365(v=vs.85).aspx cloneNode Method]|HTML5Rocks_link=}}", |
| + "{{JS_Syntax|Formats={{JS Syntax Format|Format='''JSON.stringify(''' value [ , replacer] [ , space] ''')'''}}\n}}"]; |
| for (var i = 0; i < testCases.length; i++) { |
| var wikiParser = new WebInspector.WikiParser(testCases[i]); |
| InspectorTest.addResult("\"" + testCases[i].replace("\r", "\\r") + "\" is parsed"); |
| @@ -124,13 +129,16 @@ function test() |
| function testLinkWithoutSpace(next) |
| { |
| var linkWithoutSpaceTest = "{{Summary_Section|[[http://wrong.com|WRONG_LINK]]}}"; |
| - var article = WebInspector.JSArticle.parse(linkWithoutSpaceTest); |
| - InspectorTest.addObject(article); |
| + try { |
| + var article = WebInspector.JSArticle.parse(linkWithoutSpaceTest); |
| + InspectorTest.addObject(article); |
| + } catch (error) { |
| + InspectorTest.addResult("Expected error: " + error); |
| + } |
| next(); |
| } |
| ]); |
| } |
| - |
| </script> |
| </head> |