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

Side by Side Diff: LayoutTests/inspector/sources/debugger/reveal-execution-line.html

Issue 204323003: DevTools: Merge highlightPosition and revealLine methods on SourceFrame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed tests Created 6 years, 9 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
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 Line", didRevealLine); 19 InspectorTest.addSniffer(WebInspector.SourceFrame.prototype, "reveal Position", didRevealLine);
20 InspectorTest.addSniffer(WebInspector.JavaScriptSourceFrame.prototyp e, "setExecutionLine", didSetExecutionLine); 20 InspectorTest.addSniffer(WebInspector.JavaScriptSourceFrame.prototyp e, "setExecutionLine", didSetExecutionLine);
21 InspectorTest.runTestFunctionAndWaitUntilPaused(didPaused); 21 InspectorTest.runTestFunctionAndWaitUntilPaused(didPaused);
22 22
23 function didPaused(callFrames) 23 function didPaused(callFrames)
24 { 24 {
25 } 25 }
26 26
27 function didSetExecutionLine(line) 27 function didSetExecutionLine(line)
28 { 28 {
29 if (executionLineSet) 29 if (executionLineSet)
(...skipping 22 matching lines...) Expand all
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>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/editor/text-editor-reveal-line.html ('k') | Source/devtools/front_end/CodeMirrorTextEditor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698