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/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 Loading... |
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> |
OLD | NEW |