| 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; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 } | 38 } |
| 39 | 39 |
| 40 function didShowScriptSource(sourceFrame) | 40 function didShowScriptSource(sourceFrame) |
| 41 { | 41 { |
| 42 currentSourceFrame = sourceFrame; | 42 currentSourceFrame = sourceFrame; |
| 43 InspectorTest.addResult("Script source was shown."); | 43 InspectorTest.addResult("Script source was shown."); |
| 44 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true); | 44 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true); |
| 45 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype,
"update", watchExpressionsUpdated); | 45 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype,
"update", watchExpressionsUpdated); |
| 46 // Switch to another panel to test how watch expressions evaluation toge
ther with panel switching. | 46 // Switch to another panel to test how watch expressions evaluation toge
ther with panel switching. |
| 47 WebInspector.inspectorView.showPanel("network"); | 47 WebInspector.inspectorView.showPanel("network"); |
| 48 InspectorTest.runTestFunctionAndWaitUntilPaused(didPaused); | 48 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); |
| 49 } | 49 } |
| 50 | 50 |
| 51 function didPaused(callFrames) | 51 function didPause(callFrames) |
| 52 { | 52 { |
| 53 } | 53 } |
| 54 | 54 |
| 55 function watchExpressionsUpdated() | 55 function watchExpressionsUpdated() |
| 56 { | 56 { |
| 57 InspectorTest.addResult("Watch expressions updated."); | 57 InspectorTest.addResult("Watch expressions updated."); |
| 58 InspectorTest.dumpObjectPropertySection(watchExpressionsSection, {}); | 58 InspectorTest.dumpObjectPropertySection(watchExpressionsSection, {}); |
| 59 | 59 |
| 60 // Clear watch expressions after execution. | 60 // Clear watch expressions after execution. |
| 61 watchExpressionsSection.watchExpressions = []; | 61 watchExpressionsSection.watchExpressions = []; |
| 62 watchExpressionsSection.update(); | 62 watchExpressionsSection.update(); |
| 63 | 63 |
| 64 InspectorTest.completeDebuggerTest(); | 64 InspectorTest.completeDebuggerTest(); |
| 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 |