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

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

Issue 460323002: DevTools: Allow dynamic module registration only in tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
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 InspectorTest.registerModule("documentation", true);
9 runtime.loadModule("documentation");
10 var testCases = [ 9 var testCases = [
11 "max", 10 "max",
12 "insertBefore", 11 "insertBefore",
13 "eval", 12 "eval",
14 "stringify", 13 "stringify",
15 "isArray", 14 "isArray",
16 "now", 15 "now",
17 "fromCharCode", 16 "fromCharCode",
18 "keys", 17 "keys",
19 "notExist", 18 "notExist",
20 ]; 19 ];
21 var urlFormer = new WebInspector.DocumentationURLProvider(); 20 var urlFormer = new WebInspector.DocumentationURLProvider();
22 for (var i = 0; i < testCases.length; ++i) { 21 for (var i = 0; i < testCases.length; ++i) {
23 InspectorTest.addResult("Property " + testCases[i] + ":"); 22 InspectorTest.addResult("Property " + testCases[i] + ":");
24 InspectorTest.addResult(urlFormer.itemPath(testCases[i])); 23 InspectorTest.addResult(urlFormer.itemPath(testCases[i]));
25 } 24 }
26 InspectorTest.completeTest(); 25 InspectorTest.completeTest();
27 } 26 }
28 27
29 </script> 28 </script>
30 </head> 29 </head>
31 <body onload="runTest()"> 30 <body onload="runTest()">
32 This test verifies URL created by WebInspector.DocumentationURLProvider 31 This test verifies URL created by WebInspector.DocumentationURLProvider
33 </body> 32 </body>
34 </html> 33 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/documentation/document-parser.html ('k') | Source/devtools/front_end/Runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698