| 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); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 { | 23 { |
| 24 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watc
hExpressions; | 24 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watc
hExpressions; |
| 25 watchExpressionsPane.expand(); | 25 watchExpressionsPane.expand(); |
| 26 | 26 |
| 27 watchExpressionsSection = watchExpressionsPane.section; | 27 watchExpressionsSection = watchExpressionsPane.section; |
| 28 watchExpressionsSection.watchExpressions = []; | 28 watchExpressionsSection.watchExpressions = []; |
| 29 watchExpressionsSection.watchExpressions.push("window.document"); | 29 watchExpressionsSection.watchExpressions.push("window.document"); |
| 30 watchExpressionsSection.watchExpressions.push("windowa.document"); | 30 watchExpressionsSection.watchExpressions.push("windowa.document"); |
| 31 watchExpressionsSection.update(); | 31 watchExpressionsSection.update(); |
| 32 | 32 |
| 33 var testName = WebInspector.resourceTreeModel.inspectedPageURL(); | 33 var testName = InspectorTest.resourceTreeModel.inspectedPageURL(); |
| 34 testName = testName.substring(testName.lastIndexOf('/') + 1); | 34 testName = testName.substring(testName.lastIndexOf('/') + 1); |
| 35 InspectorTest.showScriptSource(testName, didShowScriptSource); | 35 InspectorTest.showScriptSource(testName, didShowScriptSource); |
| 36 } | 36 } |
| 37 | 37 |
| 38 function didShowScriptSource(sourceFrame) | 38 function didShowScriptSource(sourceFrame) |
| 39 { | 39 { |
| 40 currentSourceFrame = sourceFrame; | 40 currentSourceFrame = sourceFrame; |
| 41 InspectorTest.addResult("Script source was shown."); | 41 InspectorTest.addResult("Script source was shown."); |
| 42 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true); | 42 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true); |
| 43 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype,
"update", watchExpressionsUpdated); | 43 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype,
"update", watchExpressionsUpdated); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 63 } | 63 } |
| 64 } | 64 } |
| 65 | 65 |
| 66 </script> | 66 </script> |
| 67 </head> | 67 </head> |
| 68 <body onload="runTest()"> | 68 <body onload="runTest()"> |
| 69 <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> | 69 <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> |
| 70 <a href="https://bugs.webkit.org/show_bug.cgi?id=70718">Bug 70718</a> | 70 <a href="https://bugs.webkit.org/show_bug.cgi?id=70718">Bug 70718</a> |
| 71 </body> | 71 </body> |
| 72 </html> | 72 </html> |
| OLD | NEW |