OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 function test() | 6 function test() |
7 { | 7 { |
8 runtime.registerModule("documentation"); | 8 InspectorTest.registerModule("documentation", true); |
9 runtime.loadModule("documentation"); | |
10 var testCases = [ | 9 var testCases = [ |
11 "{{A|B={{C|D=blablabla}}}}", | 10 "{{A|B={{C|D=blablabla}}}}", |
12 "{{CS|Init=black|Values={{CSS Property Value\n|Data Type=color\n|Descrip
tion=[[css/color|CSS color value]]}}\n}}", | 11 "{{CS|Init=black|Values={{CSS Property Value\n|Data Type=color\n|Descrip
tion=[[css/color|CSS color value]]}}\n}}", |
13 "{{A}}", | 12 "{{A}}", |
14 "{{A|B=bla<a=c>bla}}", | 13 "{{A|B=bla<a=c>bla}}", |
15 "{{A}}", | 14 "{{A}}", |
16 "{{AbC|xyz \n \t \r}}"]; | 15 "{{AbC|xyz \n \t \r}}"]; |
17 for (var i = 0; i < testCases.length; i++) { | 16 for (var i = 0; i < testCases.length; i++) { |
18 var wikiParser = new WebInspector.WikiParser(testCases[i]); | 17 var wikiParser = new WebInspector.WikiParser(testCases[i]); |
19 InspectorTest.addResult("\"" + testCases[i].replace("\r", "\\r") + "\" i
s parsed"); | 18 InspectorTest.addResult("\"" + testCases[i].replace("\r", "\\r") + "\" i
s parsed"); |
(...skipping 11 matching lines...) Expand all Loading... |
31 InspectorTest.completeTest(); | 30 InspectorTest.completeTest(); |
32 } | 31 } |
33 | 32 |
34 </script> | 33 </script> |
35 </head> | 34 </head> |
36 | 35 |
37 <body onload="runTest()"> | 36 <body onload="runTest()"> |
38 | 37 |
39 </body> | 38 </body> |
40 </html> | 39 </html> |
OLD | NEW |