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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/console-test.js"></script> 4 <script src="../../../http/tests/inspector/console-test.js"></script>
5 <script src="../../../http/tests/inspector/debugger-test.js"></script> 5 <script src="../../../http/tests/inspector/debugger-test.js"></script>
6 <script> 6 <script>
7 7
8 function testFunction() 8 function testFunction()
9 { 9 {
10 debugger; 10 debugger;
11 } 11 }
12 12
13 var test = function() 13 var test = function()
14 { 14 {
15 InspectorTest.addSniffer(WebInspector.RuntimeModel.prototype, "_inspectReque sted", inspect); 15 InspectorTest.addSniffer(SDK.RuntimeModel.prototype, "_inspectRequested", in spect);
16 InspectorTest.addSniffer(WebInspector.Revealer, "revealPromise", oneRevealPr omise, true); 16 InspectorTest.addSniffer(Common.Revealer, "revealPromise", oneRevealPromise, true);
17 17
18 function oneRevealPromise(node, revealPromise) 18 function oneRevealPromise(node, revealPromise)
19 { 19 {
20 if (!(node instanceof WebInspector.RemoteObject)) 20 if (!(node instanceof SDK.RemoteObject))
21 return; 21 return;
22 revealPromise.then(updateFocusedNode); 22 revealPromise.then(updateFocusedNode);
23 } 23 }
24 24
25 function updateFocusedNode() 25 function updateFocusedNode()
26 { 26 {
27 InspectorTest.addResult("Selected node id: '" + WebInspector.panels.elem ents.selectedDOMNode().getAttribute("id") + "'."); 27 InspectorTest.addResult("Selected node id: '" + UI.panels.elements.selec tedDOMNode().getAttribute("id") + "'.");
28 InspectorTest.completeDebuggerTest(); 28 InspectorTest.completeDebuggerTest();
29 } 29 }
30 30
31 function inspect(objectId, hints) 31 function inspect(objectId, hints)
32 { 32 {
33 InspectorTest.addResult("WebInspector.inspect called with: " + objectId. description); 33 InspectorTest.addResult("WebInspector.inspect called with: " + objectId. description);
34 InspectorTest.addResult("WebInspector.inspect's hints are: " + JSON.stri ngify(Object.keys(hints))); 34 InspectorTest.addResult("WebInspector.inspect's hints are: " + JSON.stri ngify(Object.keys(hints)));
35 } 35 }
36 36
37 InspectorTest.startDebuggerTest(step1); 37 InspectorTest.startDebuggerTest(step1);
(...skipping 12 matching lines...) Expand all
50 </script> 50 </script>
51 </head> 51 </head>
52 52
53 <body onload="runTest()"> 53 <body onload="runTest()">
54 <p id="p1"> 54 <p id="p1">
55 Tests that inspect() command line api works while on breakpoint. 55 Tests that inspect() command line api works while on breakpoint.
56 </p> 56 </p>
57 57
58 </body> 58 </body>
59 </html> 59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698