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

Side by Side Diff: LayoutTests/inspector/sources/debugger/debugger-command-line-api.html

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script> 5 <script>
6 6
7 function testFunction() 7 function testFunction()
8 { 8 {
9 debugger; 9 debugger;
10 } 10 }
11 11
12 var test = function() 12 var test = function()
13 { 13 {
14 InspectorTest.addSniffer(WebInspector.Main.prototype, "inspect", inspect); 14 InspectorTest.addSniffer(WebInspector.Main.prototype, "inspect", inspect);
15 InspectorTest.addSniffer(WebInspector.Revealer, "reveal", updateFocusedNode, true); 15 InspectorTest.addSniffer(WebInspector.Revealer, "reveal", updateFocusedNode, true);
16 16
17 function updateFocusedNode(node) 17 function updateFocusedNode(node)
18 { 18 {
19 if (!(node instanceof WebInspector.DOMNode)) 19 if (!(node instanceof WebInspector.DOMNode))
20 return; 20 return;
21 21
22 InspectorTest.addResult("Selected node id: '" + WebInspector.panels.elem ents.selectedDOMNode().getAttribute("id") + "'."); 22 InspectorTest.addResult("Selected node id: '" + WebInspector.inspectorVi ew.panel("elements").selectedDOMNode().getAttribute("id") + "'.");
23 InspectorTest.completeDebuggerTest(); 23 InspectorTest.completeDebuggerTest();
24 } 24 }
25 25
26 function inspect(objectId, hints) 26 function inspect(objectId, hints)
27 { 27 {
28 InspectorTest.addResult("WebInspector.inspect called with: " + objectId. description); 28 InspectorTest.addResult("WebInspector.inspect called with: " + objectId. description);
29 InspectorTest.addResult("WebInspector.inspect's hints are: " + JSON.stri ngify(Object.keys(hints))); 29 InspectorTest.addResult("WebInspector.inspect's hints are: " + JSON.stri ngify(Object.keys(hints)));
30 } 30 }
31 31
32 InspectorTest.startDebuggerTest(step1); 32 InspectorTest.startDebuggerTest(step1);
(...skipping 12 matching lines...) Expand all
45 </script> 45 </script>
46 </head> 46 </head>
47 47
48 <body onload="runTest()"> 48 <body onload="runTest()">
49 <p id="p1"> 49 <p id="p1">
50 Tests that inspect() command line api works while on breakpoint. 50 Tests that inspect() command line api works while on breakpoint.
51 </p> 51 </p>
52 52
53 </body> 53 </body>
54 </html> 54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698