OLD | NEW |
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 ]; |
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> |
OLD | NEW |