OLD | NEW |
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; |
11 } | 11 } |
12 | 12 |
13 var test = function() | 13 var test = function() |
14 { | 14 { |
15 InspectorTest.setQuiet(true); | 15 InspectorTest.setQuiet(true); |
16 InspectorTest.startDebuggerTest(step1); | 16 InspectorTest.startDebuggerTest(step1); |
17 | 17 |
18 var currentSourceFrame; | 18 var currentSourceFrame; |
19 var watchExpressionsSection; | 19 var watchExpressionsSection; |
20 | 20 |
21 function step1() | 21 function step1() |
22 { | 22 { |
23 // We need to initialize scripts panel so that watch expressions section
is created. | 23 // We need to initialize sources panel so that watch expressions section
is created. |
24 WebInspector.showPanel("scripts"); | 24 WebInspector.showPanel("sources"); |
25 | 25 |
26 var watchExpressionsPane = WebInspector.panels.scripts.sidebarPanes.watc
hExpressions; | 26 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watc
hExpressions; |
27 watchExpressionsPane.expand(); | 27 watchExpressionsPane.expand(); |
28 | 28 |
29 watchExpressionsSection = watchExpressionsPane.section; | 29 watchExpressionsSection = watchExpressionsPane.section; |
30 watchExpressionsSection.watchExpressions = []; | 30 watchExpressionsSection.watchExpressions = []; |
31 watchExpressionsSection.watchExpressions.push("window.document"); | 31 watchExpressionsSection.watchExpressions.push("window.document"); |
32 watchExpressionsSection.watchExpressions.push("windowa.document"); | 32 watchExpressionsSection.watchExpressions.push("windowa.document"); |
33 watchExpressionsSection.update(); | 33 watchExpressionsSection.update(); |
34 | 34 |
35 var testName = WebInspector.inspectedPageURL; | 35 var testName = WebInspector.inspectedPageURL; |
36 testName = testName.substring(testName.lastIndexOf('/') + 1); | 36 testName = testName.substring(testName.lastIndexOf('/') + 1); |
(...skipping 28 matching lines...) Expand all Loading... |
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> |
OLD | NEW |