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

Side by Side Diff: LayoutTests/inspector/debugger/debugger-eval-while-paused.html

Issue 23484056: [DevTools] Renaming Scripts panel to Sources panel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified missed files Created 7 years, 3 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
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 6
7 var globalVar = { b: 1 }; 7 var globalVar = { b: 1 };
8 8
9 function slave(x) 9 function slave(x)
10 { 10 {
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 function step2(callFrames) 30 function step2(callFrames)
31 { 31 {
32 InspectorTest.evaluateInConsole("x + y + globalVar.b", step3.bind(null, callFrames)); 32 InspectorTest.evaluateInConsole("x + y + globalVar.b", step3.bind(null, callFrames));
33 } 33 }
34 34
35 function step3(callFrames, result) 35 function step3(callFrames, result)
36 { 36 {
37 InspectorTest.addResult("Evaluated script on the top frame: " + result); 37 InspectorTest.addResult("Evaluated script on the top frame: " + result);
38 var pane = WebInspector.panels.scripts.sidebarPanes.callstack; 38 var pane = WebInspector.panels.sources.sidebarPanes.callstack;
39 pane._placardSelected(pane.placards[1]); 39 pane._placardSelected(pane.placards[1]);
40 InspectorTest.runAfterPendingDispatches(step4); 40 InspectorTest.runAfterPendingDispatches(step4);
41 } 41 }
42 42
43 function step4() 43 function step4()
44 { 44 {
45 InspectorTest.evaluateInConsole("localObject.a + globalVar.b", step5); 45 InspectorTest.evaluateInConsole("localObject.a + globalVar.b", step5);
46 } 46 }
47 47
48 function step5(result) 48 function step5(result)
49 { 49 {
50 InspectorTest.addResult("Evaluated script on the calling frame: " + resu lt); 50 InspectorTest.addResult("Evaluated script on the calling frame: " + resu lt);
51 InspectorTest.completeDebuggerTest(); 51 InspectorTest.completeDebuggerTest();
52 } 52 }
53 } 53 }
54 54
55 </script> 55 </script>
56 </head> 56 </head>
57 57
58 <body onload="runTest()"> 58 <body onload="runTest()">
59 <p> 59 <p>
60 Tests that evaluation in console works fine when script is paused. It also check s that 60 Tests that evaluation in console works fine when script is paused. It also check s that
61 stack and global variables are accessible from the console. 61 stack and global variables are accessible from the console.
62 </p> 62 </p>
63 63
64 </body> 64 </body>
65 </html> 65 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/debugger/debugger-change-variable.html ('k') | LayoutTests/inspector/debugger/debugger-step-in.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698