Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: LayoutTests/inspector/documentation/documentation-url-provider.html

Issue 466743002: DevTools: Show doc context menu items for matching methods on all objects (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Submenu is not created in case of single property variant Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..cf72a077cb24c623df3ea6411dcc952e507286e4 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"
+ ];
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();
}

Powered by Google App Engine
This is Rietveld 408576698