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

Side by Side Diff: LayoutTests/inspector/documentation/documentation-url-provider.html

Issue 455343002: DevTools: Add new DocumentationURLProvider sources and some tests for documentation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 runtime.registerModule("documentation"); 8 runtime.registerModule("documentation");
9 runtime.loadModule("documentation"); 9 runtime.loadModule("documentation");
10 var testCases = [ 10 var testCases = [
11 "max", 11 "max",
12 "insertBefore", 12 "insertBefore",
13 "eval", 13 "eval",
14 "stringify", 14 "stringify",
15 "isArray", 15 "isArray",
16 "now", 16 "now",
17 "fromCharCode", 17 "fromCharCode",
18 "keys", 18 "keys",
19 "notExist", 19 "notExist",
20 "indexOf",
21 "setDate"
20 ]; 22 ];
lushnikov 2014/08/11 09:42:49 4 spaces left
iliia 2014/08/11 12:17:53 Done.
21 var urlFormer = new WebInspector.DocumentationURLProvider(); 23 var urlFormer = new WebInspector.DocumentationURLProvider();
22 for (var i = 0; i < testCases.length; ++i) { 24 for (var i = 0; i < testCases.length; ++i) {
23 InspectorTest.addResult("Property " + testCases[i] + ":"); 25 InspectorTest.addResult("Property " + testCases[i] + ":");
24 InspectorTest.addResult(urlFormer.itemPath(testCases[i])); 26 InspectorTest.addResult(urlFormer.itemPath(testCases[i]));
25 } 27 }
26 InspectorTest.completeTest(); 28 InspectorTest.completeTest();
27 } 29 }
28 30
29 </script> 31 </script>
30 </head> 32 </head>
31 <body onload="runTest()"> 33 <body onload="runTest()">
32 This test verifies URL created by WebInspector.DocumentationURLProvider 34 This test verifies URL created by WebInspector.DocumentationURLProvider
33 </body> 35 </body>
34 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698