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

Side by Side Diff: LayoutTests/inspector/sources/debugger/watch-expressions-panel-switch.html

Issue 220903002: DevTools: wrap DebuggerAgent.Location with DebuggerModel.Location. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: All tests!!! Created 6 years, 8 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 src="../../../http/tests/inspector/elements-test.js"></script> 5 <script src="../../../http/tests/inspector/elements-test.js"></script>
6 <script> 6 <script>
7 function testFunction() 7 function testFunction()
8 { 8 {
9 var x = Math.sqrt(10); 9 var x = Math.sqrt(10);
10 return x; 10 return x;
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 function didShowScriptSource(sourceFrame) 40 function didShowScriptSource(sourceFrame)
41 { 41 {
42 currentSourceFrame = sourceFrame; 42 currentSourceFrame = sourceFrame;
43 InspectorTest.addResult("Script source was shown."); 43 InspectorTest.addResult("Script source was shown.");
44 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true); 44 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true);
45 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype, "update", watchExpressionsUpdated); 45 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype, "update", watchExpressionsUpdated);
46 // Switch to another panel to test how watch expressions evaluation toge ther with panel switching. 46 // Switch to another panel to test how watch expressions evaluation toge ther with panel switching.
47 WebInspector.inspectorView.showPanel("network"); 47 WebInspector.inspectorView.showPanel("network");
48 InspectorTest.runTestFunctionAndWaitUntilPaused(didPaused); 48 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
49 } 49 }
50 50
51 function didPaused(callFrames) 51 function didPause(callFrames)
52 { 52 {
53 } 53 }
54 54
55 function watchExpressionsUpdated() 55 function watchExpressionsUpdated()
56 { 56 {
57 InspectorTest.addResult("Watch expressions updated."); 57 InspectorTest.addResult("Watch expressions updated.");
58 InspectorTest.dumpObjectPropertySection(watchExpressionsSection, {}); 58 InspectorTest.dumpObjectPropertySection(watchExpressionsSection, {});
59 59
60 // Clear watch expressions after execution. 60 // Clear watch expressions after execution.
61 watchExpressionsSection.watchExpressions = []; 61 watchExpressionsSection.watchExpressions = [];
62 watchExpressionsSection.update(); 62 watchExpressionsSection.update();
63 63
64 InspectorTest.completeDebuggerTest(); 64 InspectorTest.completeDebuggerTest();
65 } 65 }
66 } 66 }
67 67
68 </script> 68 </script>
69 </head> 69 </head>
70 <body onload="runTest()"> 70 <body onload="runTest()">
71 <p>Tests debugger does not fail when stopped while a panel other than scripts wa s opened. Both valid and invalid expressions are added to watch expressions.</p> 71 <p>Tests debugger does not fail when stopped while a panel other than scripts wa s opened. Both valid and invalid expressions are added to watch expressions.</p>
72 <a href="https://bugs.webkit.org/show_bug.cgi?id=70718">Bug 70718</a> 72 <a href="https://bugs.webkit.org/show_bug.cgi?id=70718">Bug 70718</a>
73 </body> 73 </body>
74 </html> 74 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/sources/debugger/skip-stack-frames-steps.html ('k') | Source/devtools/front_end/BreakpointManager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698