Chromium Code Reviews| Index: LayoutTests/inspector/documentation-url-provider.html |
| diff --git a/LayoutTests/inspector/documentation-url-provider.html b/LayoutTests/inspector/documentation-url-provider.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..128f091d8c5d881b4268b1f5e5646813d5daddc3 |
| --- /dev/null |
| +++ b/LayoutTests/inspector/documentation-url-provider.html |
| @@ -0,0 +1,31 @@ |
| +<html> |
| +<head> |
| +<script src="../http/tests/inspector/inspector-test.js"></script> |
| +<script> |
| + |
| +function test() |
| +{ |
| + WebInspector.moduleManager.registerModule("documentation"); |
| + WebInspector.moduleManager.loadModule("documentation"); |
| + var testCases = [ |
| + "max", |
| + "insertBefore", |
| + "eval", |
| + "stringify", |
| + "isArray", |
| + "now", |
| + "fromCharCode", |
|
lushnikov
2014/08/06 17:27:51
These are all methods that exist. Let's add some t
semeny
2014/08/07 09:57:08
Done.
|
| + "keys"]; |
|
lushnikov
2014/08/06 17:27:51
"];" on a new line
semeny
2014/08/07 09:57:08
Done.
|
| + for (var i = 0; i < testCases.length; i++) { |
|
lushnikov
2014/08/06 17:27:51
++i
semeny
2014/08/07 09:57:08
Done.
|
| + var urlFormer = new WebInspector.DocumentationURLProvider(); |
|
lushnikov
2014/08/06 17:27:51
do we really need to recreate it for every for-loo
semeny
2014/08/07 09:57:08
Done.
|
| + InspectorTest.addResult("Property " + testCases[i] + ":"); |
| + InspectorTest.addResult(urlFormer.formItemPath(testCases[i])); |
| + } |
| + InspectorTest.completeTest(); |
| +} |
| + |
| +</script> |
| +</head> |
| +<body onload="runTest()"> |
|
lushnikov
2014/08/06 17:27:51
We usually add a short test description in <body>
semeny
2014/08/07 09:57:08
Done.
|
| +</body> |
| +</html> |