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

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

Issue 2153153003: DevTools: remove dead code, disambiguate expand for sections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean Created 4 years, 5 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/elements-test.js"></script> 4 <script src="../../../http/tests/inspector/elements-test.js"></script>
5 <script src="../../../http/tests/inspector/network-test.js"></script> 5 <script src="../../../http/tests/inspector/network-test.js"></script>
6 <script src="../../../http/tests/inspector/debugger-test.js"></script> 6 <script src="../../../http/tests/inspector/debugger-test.js"></script>
7 <script> 7 <script>
8 function testFunction() 8 function testFunction()
9 { 9 {
10 var x = Math.sqrt(10); 10 var x = Math.sqrt(10);
11 return x; 11 return x;
12 } 12 }
13 13
14 var test = function() 14 var test = function()
15 { 15 {
16 InspectorTest.setQuiet(true); 16 InspectorTest.setQuiet(true);
17 InspectorTest.startDebuggerTest(step1); 17 InspectorTest.startDebuggerTest(step1);
18 18
19 var currentSourceFrame; 19 var currentSourceFrame;
20 var watchExpressionsPane; 20 var watchExpressionsPane;
21 //callback per each watchExpression called twice: in constructor and when ac tual evaluation result is available 21 //callback per each watchExpression called twice: in constructor and when ac tual evaluation result is available
22 var updateCount = 4; 22 var updateCount = 4;
23 23
24 function step1() 24 function step1()
25 { 25 {
26 watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watchExp ressions; 26 watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watchExp ressions;
27 watchExpressionsPane.expand(); 27 watchExpressionsPane.expandPane();
28 watchExpressionsPane.addExpression("window.document"); 28 watchExpressionsPane.addExpression("window.document");
29 watchExpressionsPane.addExpression("windowa.document"); 29 watchExpressionsPane.addExpression("windowa.document");
30 30
31 var testName = InspectorTest.resourceTreeModel.inspectedPageURL(); 31 var testName = InspectorTest.resourceTreeModel.inspectedPageURL();
32 testName = testName.substring(testName.lastIndexOf('/') + 1); 32 testName = testName.substring(testName.lastIndexOf('/') + 1);
33 InspectorTest.showScriptSource(testName, didShowScriptSource); 33 InspectorTest.showScriptSource(testName, didShowScriptSource);
34 } 34 }
35 35
36 function didShowScriptSource(sourceFrame) 36 function didShowScriptSource(sourceFrame)
37 { 37 {
(...skipping 30 matching lines...) Expand all
68 } 68 }
69 } 69 }
70 70
71 </script> 71 </script>
72 </head> 72 </head>
73 <body onload="runTest()"> 73 <body onload="runTest()">
74 <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> 74 <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>
75 <a href="https://bugs.webkit.org/show_bug.cgi?id=70718">Bug 70718</a> 75 <a href="https://bugs.webkit.org/show_bug.cgi?id=70718">Bug 70718</a>
76 </body> 76 </body>
77 </html> 77 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698