OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 var methods = ["dir","dirxml","profile","profileEnd","clear","table","keys","val
ues","debug","undebug","monitor","unmonitor","inspect","copy"]; | 6 var methods = ["dir","dirxml","profile","profileEnd","clear","table","keys","val
ues","debug","undebug","monitor","unmonitor","inspect","copy"]; |
7 | 7 |
8 function presentedAPIMethods() | 8 function presentedAPIMethods() |
9 { | 9 { |
10 var methodCount = 0; | 10 var methodCount = 0; |
11 for (var method of methods) { | 11 for (var method of methods) { |
12 try { | 12 try { |
13 if (eval("window." + method + "&&" + method + ".toString ? " + metho
d + ".toString().indexOf(\"[Command Line API]\") !== -1 : false")) | 13 if (eval("window." + method + "&&" + method + ".toString ? " + metho
d + ".toString().indexOf(\"[Command Line API]\") !== -1 : false")) |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 return evaluate("dir", false) | 118 return evaluate("dir", false) |
119 .then((result) => InspectorTest.logObject(result)); | 119 .then((result) => InspectorTest.logObject(result)); |
120 } | 120 } |
121 } | 121 } |
122 </script> | 122 </script> |
123 </head> | 123 </head> |
124 <body onLoad="runTest();"> | 124 <body onLoad="runTest();"> |
125 Tests that CommandLineAPI is presented only while evaluation. | 125 Tests that CommandLineAPI is presented only while evaluation. |
126 </body> | 126 </body> |
127 </html> | 127 </html> |
OLD | NEW |