3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/debugger-test.js"></script>
6 function testFunction()
13 InspectorTest.setQuiet(true);
14 InspectorTest.runDebuggerTestSuite([
15 function testRevealAndHighlightExecutionLine(next)
17 var executionLineSet = false;
18 var executionLineRevealed = false;
19 InspectorTest.addSniffer(WebInspector.SourceFrame.prototype, "revealLine", didRevealLine);
20 InspectorTest.addSniffer(WebInspector.JavaScriptSourceFrame.prototype, "setExecutionLine", didSetExecutionLine);
21 InspectorTest.runTestFunctionAndWaitUntilPaused(didPaused);
23 function didPaused(callFrames)
27 function didSetExecutionLine(line)
31 executionLineSet = true;
35 function didRevealLine(line)
37 if (executionLineRevealed)
39 if (this.isShowing()) {
40 executionLineRevealed = true;
47 if (executionLineRevealed && executionLineSet) {
48 InspectorTest.addResult("Execution line revealed and highlighted.");
49 InspectorTest.resumeExecution(next);
57 <body onload="runTest()">
58 <p>Tests that execution line is revealed and highlighted when debugger is paused.</p>
59 <a href="https://bugs.webkit.org/show_bug.cgi?id=80306">Bug 80306</a>