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

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

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/console-test.js"></script>
5 <script src="../../../http/tests/inspector/debugger-test.js"></script>
6 <script>
7
8 function testFunction()
9 {
10 debugger;
11 }
12
13 var test = function()
14 {
15 InspectorTest.addSniffer(WebInspector.Main.prototype, "inspect", inspect);
16 InspectorTest.addSniffer(WebInspector.Revealer, "revealPromise", oneRevealPr omise, true);
17
18 function oneRevealPromise(node, revealPromise)
19 {
20 if (!(node instanceof WebInspector.RemoteObject))
21 return;
22 revealPromise.then(updateFocusedNode);
23 }
24
25 function updateFocusedNode()
26 {
27 InspectorTest.addResult("Selected node id: '" + WebInspector.panels.elem ents.selectedDOMNode().getAttribute("id") + "'.");
28 InspectorTest.completeDebuggerTest();
29 }
30
31 function inspect(objectId, hints)
32 {
33 InspectorTest.addResult("WebInspector.inspect called with: " + objectId. description);
34 InspectorTest.addResult("WebInspector.inspect's hints are: " + JSON.stri ngify(Object.keys(hints)));
35 }
36
37 InspectorTest.startDebuggerTest(step1);
38
39 function step1()
40 {
41 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
42 }
43
44 function step2(callFrames)
45 {
46 InspectorTest.evaluateInConsoleAndDump("inspect($('#p1'))");
47 }
48 }
49
50 </script>
51 </head>
52
53 <body onload="runTest()">
54 <p id="p1">
55 Tests that inspect() command line api works while on breakpoint.
56 </p>
57
58 </body>
59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698