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>
7 function testFunction()
9 return testFunction2();
12 function testFunction2()
14 var x
= Math
.sqrt(10);
21 InspectorTest
.startDebuggerTest(step1
);
22 var panel
= WebInspector
.panels
.sources
;
27 var testName
= InspectorTest
.resourceTreeModel
.inspectedPageURL();
28 testName
= testName
.substring(testName
.lastIndexOf('/') + 1);
29 InspectorTest
.showScriptSource(testName
, step2
);
35 InspectorTest
.runTestFunctionAndWaitUntilPaused(step3
);
40 InspectorTest
.completeDebuggerTest(); return;
41 InspectorTest
.debuggerModel
.setSelectedCallFrame(InspectorTest
.debuggerModel
.debuggerPausedDetails().callFrames
[1]);
42 sourceFrame
._toggleFormatSource(step4
);
47 InspectorTest
.assertEquals("testFunction", InspectorTest
.debuggerModel
.selectedCallFrame().functionName
);
48 sourceFrame
._toggleFormatSource(step5
);
53 InspectorTest
.completeDebuggerTest();
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>