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..dad530898f9d0d7396340bd6e25fc8ce376c9117 100644 |
--- a/LayoutTests/inspector/documentation/document-parser.html |
+++ b/LayoutTests/inspector/documentation/document-parser.html |
@@ -11,12 +11,18 @@ function test() |
function testWikiParser(next) |
{ |
var testCases = [ |
+ "{{A|Code={{=}} }}", |
+ "{{ABC|Array={{A|B=c}}{{X|y=Z}}|text=blabla}}", |
+ "{{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}}", |
+ "{{Table|there is a table {{{!}}\n}}", |
+ "{{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 +130,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> |