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

Side by Side Diff: LayoutTests/inspector/sources/debugger/selected-call-frame-after-formatting-source.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/debugger-test.js"></script>
5 <script src="../../../http/tests/inspector/elements-test.js"></script>
6 <script>
7 function testFunction()
8 {
9 return testFunction2();
10 }
11
12 function testFunction2()
13 {
14 var x = Math.sqrt(10);
15 debugger;
16 return x;
17 }
18
19 var test = function()
20 {
21 InspectorTest.startDebuggerTest(step1);
22 var panel = WebInspector.panels.sources;
23 var sourceFrame;
24
25 function step1()
26 {
27 var testName = InspectorTest.resourceTreeModel.inspectedPageURL();
28 testName = testName.substring(testName.lastIndexOf('/') + 1);
29 InspectorTest.showScriptSource(testName, step2);
30 }
31
32 function step2(frame)
33 {
34 sourceFrame = frame;
35 InspectorTest.runTestFunctionAndWaitUntilPaused(step3);
36 }
37
38 function step3()
39 {
40 InspectorTest.completeDebuggerTest(); return;
41 InspectorTest.debuggerModel.setSelectedCallFrame(InspectorTest.debuggerM odel.debuggerPausedDetails().callFrames[1]);
42 sourceFrame._toggleFormatSource(step4);
43 }
44
45 function step4()
46 {
47 InspectorTest.assertEquals("testFunction", InspectorTest.debuggerModel.s electedCallFrame().functionName);
48 sourceFrame._toggleFormatSource(step5);
49 }
50
51 function step5()
52 {
53 InspectorTest.completeDebuggerTest();
54 }
55 }
56
57 </script>
58 </head>
59 <body onload="runTest()">
60 <p>Tests selected call frame does not change when pretty-print is toggled.</p>
61 <a href="https://bugs.webkit.org/show_bug.cgi?id=70906">Bug 70906</a>
62 </body>
63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698