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

Side by Side Diff: LayoutTests/inspector/debugger/debugger-change-variable.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 function slave(x) 7 function slave(x)
8 { 8 {
9 var y = 20; 9 var y = 20;
10 debugger; 10 debugger;
11 } 11 }
12 12
13 function testFunction() 13 function testFunction()
14 { 14 {
15 var localObject = { a: 310 }; 15 var localObject = { a: 310 };
16 slave(4000); 16 slave(4000);
17 } 17 }
18 18
19 var test = function() 19 var test = function()
20 { 20 {
21 InspectorTest.startDebuggerTest(step1); 21 InspectorTest.startDebuggerTest(step1);
22 22
23 function step1() 23 function step1()
24 { 24 {
25 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); 25 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
26 } 26 }
27 27
28 function step2(callFrames) 28 function step2(callFrames)
29 { 29 {
30 var pane = WebInspector.panels.scripts.sidebarPanes.callstack; 30 var pane = WebInspector.panels.sources.sidebarPanes.callstack;
31 pane._placardSelected(pane.placards[1]); 31 pane._placardSelected(pane.placards[1]);
32 InspectorTest.runAfterPendingDispatches(step3); 32 InspectorTest.runAfterPendingDispatches(step3);
33 } 33 }
34 34
35 function step3() 35 function step3()
36 { 36 {
37 InspectorTest.evaluateInConsole("localObject.a", step4); 37 InspectorTest.evaluateInConsole("localObject.a", step4);
38 } 38 }
39 39
40 function step4(result) 40 function step4(result)
41 { 41 {
42 InspectorTest.addResult("Evaluated script on the calling frame: " + resu lt); 42 InspectorTest.addResult("Evaluated script on the calling frame: " + resu lt);
43 43
44 var pane = WebInspector.panels.scripts.sidebarPanes.scopechain; 44 var pane = WebInspector.panels.sources.sidebarPanes.scopechain;
45 var localsSection = pane._sections[0]; 45 var localsSection = pane._sections[0];
46 localsSection.object.setPropertyValue("localObject", "({ a: -290})", ste p5); 46 localsSection.object.setPropertyValue("localObject", "({ a: -290})", ste p5);
47 } 47 }
48 48
49 function step5(error) 49 function step5(error)
50 { 50 {
51 if (error) 51 if (error)
52 InspectorTest.addResult("Set property value error: " + error); 52 InspectorTest.addResult("Set property value error: " + error);
53 53
54 InspectorTest.evaluateInConsole("localObject.a", step6); 54 InspectorTest.evaluateInConsole("localObject.a", step6);
55 } 55 }
56 56
57 function step6(result) 57 function step6(result)
58 { 58 {
59 InspectorTest.addResult("Evaluated script on the calling frame (after va lue modification): " + result); 59 InspectorTest.addResult("Evaluated script on the calling frame (after va lue modification): " + result);
60 InspectorTest.completeDebuggerTest(); 60 InspectorTest.completeDebuggerTest();
61 } 61 }
62 } 62 }
63 63
64 </script> 64 </script>
65 </head> 65 </head>
66 66
67 <body onload="runTest()"> 67 <body onload="runTest()">
68 <p> 68 <p>
69 Tests that modifying local variables works fine. 69 Tests that modifying local variables works fine.
70 </p> 70 </p>
71 71
72 </body> 72 </body>
73 </html> 73 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698