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

Side by Side 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 unified diff | Download patch
OLDNEW
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 InspectorTest.registerModule("documentation", true); 8 InspectorTest.registerModule("documentation", true);
9 var testCases = [ 9 var testCases = [
10 "max", 10 "max",
11 "insertBefore", 11 "insertBefore",
12 "eval", 12 "eval",
13 "stringify", 13 "stringify",
14 "isArray", 14 "isArray",
15 "now", 15 "now",
16 "fromCharCode", 16 "fromCharCode",
17 "keys", 17 "keys",
18 "notExist", 18 "notExist",
19 "indexOf", 19 "indexOf",
20 "setDate" 20 "setDate",
21 ]; 21 "parse"
22 ];
22 var urlFormer = new WebInspector.DocumentationURLProvider(); 23 var urlFormer = new WebInspector.DocumentationURLProvider();
23 for (var i = 0; i < testCases.length; ++i) { 24 for (var i = 0; i < testCases.length; ++i) {
24 InspectorTest.addResult("Property " + testCases[i] + ":"); 25 InspectorTest.addResult("Property " + testCases[i] + ":");
25 InspectorTest.addResult(urlFormer.itemPath(testCases[i])); 26 var properties = urlFormer.itemDescriptors(testCases[i]);
27 if (properties.length === 0) {
28 InspectorTest.addResult(" null");
29 continue;
30 }
31 for (var j = 0; j < properties.length; ++j)
32 InspectorTest.addResult(" " + j + ": " + properties[j].url);
26 } 33 }
27 InspectorTest.completeTest(); 34 InspectorTest.completeTest();
28 } 35 }
29 36
30 </script> 37 </script>
31 </head> 38 </head>
32 <body onload="runTest()"> 39 <body onload="runTest()">
33 This test verifies URL created by WebInspector.DocumentationURLProvider 40 This test verifies URL created by WebInspector.DocumentationURLProvider
34 </body> 41 </body>
35 </html> 42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698