Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-clear-of-command-line-api.html

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698