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