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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/command-line-api-inspect.html

Issue 1866213002: [DevTools] Move inspect from Inspector to Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inspector-connection
Patch Set: inspectRequested Created 4 years, 8 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 src="inspector-test.js"></script> 3 <script src="inspector-test.js"></script>
4 <script src="console-test.js"></script> 4 <script src="console-test.js"></script>
5 <script> 5 <script>
6 6
7 function onload() 7 function onload()
8 { 8 {
9 runTest(); 9 runTest();
10 } 10 }
11 11
12 function test() 12 function test()
13 { 13 {
14 InspectorTest.addSniffer(WebInspector.Main.prototype, "inspect", sniffInspec t, true); 14 InspectorTest.addSniffer(WebInspector.RuntimeModel.prototype, "_inspectReque sted", sniffInspect, true);
15 15
16 function sniffInspect(objectId, hints) 16 function sniffInspect(objectId, hints)
17 { 17 {
18 InspectorTest.addResult("WebInspector.inspect called with: " + objectId. description); 18 InspectorTest.addResult("WebInspector.inspect called with: " + objectId. description);
19 InspectorTest.addResult("WebInspector.inspect's hints are: " + JSON.stri ngify(Object.keys(hints))); 19 InspectorTest.addResult("WebInspector.inspect's hints are: " + JSON.stri ngify(Object.keys(hints)));
20 } 20 }
21 21
22 function evalAndDump(expression, next) 22 function evalAndDump(expression, next)
23 { 23 {
24 InspectorTest.addResult("\n"); 24 InspectorTest.addResult("\n");
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 </script> 56 </script>
57 </head> 57 </head>
58 58
59 <body onload="onload()"> 59 <body onload="onload()">
60 <p id="p1"> 60 <p id="p1">
61 Tests that inspect() command line api works. 61 Tests that inspect() command line api works.
62 </p> 62 </p>
63 63
64 </body> 64 </body>
65 </html> 65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698