| OLD | NEW |
| 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/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 function testFunction() | 6 function testFunction() |
| 7 { | 7 { |
| 8 debugger; | 8 debugger; |
| 9 } | 9 } |
| 10 | 10 |
| 11 var test = function() | 11 var test = function() |
| 12 { | 12 { |
| 13 InspectorTest.setQuiet(true); | 13 InspectorTest.setQuiet(true); |
| 14 InspectorTest.runDebuggerTestSuite([ | 14 InspectorTest.runDebuggerTestSuite([ |
| 15 function testRevealAndHighlightExecutionLine(next) | 15 function testRevealAndHighlightExecutionLine(next) |
| 16 { | 16 { |
| 17 var executionLineSet = false; | 17 var executionLineSet = false; |
| 18 var executionLineRevealed = false; | 18 var executionLineRevealed = false; |
| 19 InspectorTest.addSniffer(WebInspector.SourceFrame.prototype, "reveal
Position", didRevealLine); | 19 InspectorTest.addSniffer(SourceFrame.SourceFrame.prototype, "revealP
osition", didRevealLine); |
| 20 InspectorTest.addSniffer(WebInspector.JavaScriptSourceFrame.prototyp
e, "setExecutionLocation", didSetExecutionLocation); | 20 InspectorTest.addSniffer(Sources.JavaScriptSourceFrame.prototype, "s
etExecutionLocation", didSetExecutionLocation); |
| 21 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); | 21 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); |
| 22 | 22 |
| 23 function didPause(callFrames) | 23 function didPause(callFrames) |
| 24 { | 24 { |
| 25 } | 25 } |
| 26 | 26 |
| 27 function didSetExecutionLocation(uiLocation) | 27 function didSetExecutionLocation(uiLocation) |
| 28 { | 28 { |
| 29 if (executionLineSet) | 29 if (executionLineSet) |
| 30 return; | 30 return; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 52 } | 52 } |
| 53 ]); | 53 ]); |
| 54 } | 54 } |
| 55 </script> | 55 </script> |
| 56 </head> | 56 </head> |
| 57 <body onload="runTest()"> | 57 <body onload="runTest()"> |
| 58 <p>Tests that execution line is revealed and highlighted when debugger is paused
.</p> | 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> | 59 <a href="https://bugs.webkit.org/show_bug.cgi?id=80306">Bug 80306</a> |
| 60 </body> | 60 </body> |
| 61 </html> | 61 </html> |
| OLD | NEW |