Chromium Code Reviews| Index: LayoutTests/inspector/documentation/documentation-url-provider.html |
| diff --git a/LayoutTests/inspector/documentation/documentation-url-provider.html b/LayoutTests/inspector/documentation/documentation-url-provider.html |
| index dc0cd3d1ce00617bdbfe68feae539c31a5a27a4a..ed9a2fcf51ce9581049f15c61c23c23936f16376 100644 |
| --- a/LayoutTests/inspector/documentation/documentation-url-provider.html |
| +++ b/LayoutTests/inspector/documentation/documentation-url-provider.html |
| @@ -17,12 +17,19 @@ function test() |
| "keys", |
| "notExist", |
| "indexOf", |
| - "setDate" |
| + "setDate", |
| + "parse" |
| ]; |
|
apavlov
2014/08/12 14:45:16
This should be indented same as "var testCases", i
semeny
2014/08/12 15:28:10
Done.
|
| var urlFormer = new WebInspector.DocumentationURLProvider(); |
| for (var i = 0; i < testCases.length; ++i) { |
| InspectorTest.addResult("Property " + testCases[i] + ":"); |
| - InspectorTest.addResult(urlFormer.itemPath(testCases[i])); |
| + var properties = urlFormer.itemDescriptors(testCases[i]); |
| + if (properties.length === 0) { |
| + InspectorTest.addResult(" null"); |
| + continue; |
| + } |
| + for (var j = 0; j < properties.length; ++j) |
| + InspectorTest.addResult(" " + j + ": " + properties[j].url); |
| } |
| InspectorTest.completeTest(); |
| } |