OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
2 <head> | |
3 <script src="../http/tests/inspector/inspector-test.js"></script> | |
4 <script> | |
5 | |
6 function test() | |
7 { | |
8 WebInspector.moduleManager.registerModule("documentation"); | |
9 WebInspector.moduleManager.loadModule("documentation"); | |
10 var testCases = [ | |
11 "max", | |
12 "insertBefore", | |
13 "eval", | |
14 "stringify", | |
15 "isArray", | |
16 "now", | |
17 "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.
| |
18 "keys"]; | |
lushnikov
2014/08/06 17:27:51
"];" on a new line
semeny
2014/08/07 09:57:08
Done.
| |
19 for (var i = 0; i < testCases.length; i++) { | |
lushnikov
2014/08/06 17:27:51
++i
semeny
2014/08/07 09:57:08
Done.
| |
20 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.
| |
21 InspectorTest.addResult("Property " + testCases[i] + ":"); | |
22 InspectorTest.addResult(urlFormer.formItemPath(testCases[i])); | |
23 } | |
24 InspectorTest.completeTest(); | |
25 } | |
26 | |
27 </script> | |
28 </head> | |
29 <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.
| |
30 </body> | |
31 </html> | |
OLD | NEW |