| OLD | NEW |
| 1 Tests that all inlined scripts from the same document are shown in the same sour
ce frame with html script tags. Bug 54544. | 1 Tests that all inlined scripts from the same document are shown in the same sour
ce frame with html script tags. Bug 54544. |
| 2 | 2 |
| 3 Script source was shown. | 3 Script source was shown. |
| 4 Script execution paused. | 4 Script execution paused. |
| 5 Call stack: | 5 Call stack: |
| 6 0) (debug-inlined-scripts.html:3) | 6 0) (debug-inlined-scripts.html:3) |
| 7 Call stack status: Paused on a JavaScript breakpoint. | 7 Call stack status: Paused on breakpoint |
| 8 ==Source frame contents start== | 8 ==Source frame contents start== |
| 9 <html> | 9 <html> |
| 10 <head> | 10 <head> |
| 11 <script> function f1() { return 0; }; f1(); </script> <script>function f
2() { return 0; }</script><script> | 11 <script> function f1() { return 0; }; f1(); </script> <script>function f
2() { return 0; }</script><script> |
| 12 function f3() { return 0; } | 12 function f3() { return 0; } |
| 13 </script> | 13 </script> |
| 14 | 14 |
| 15 <script> | 15 <script> |
| 16 function f4() | 16 function f4() |
| 17 { | 17 { |
| 18 return 0; | 18 return 0; |
| 19 } | 19 } |
| 20 f4(); | 20 f4(); |
| 21 </script> | 21 </script> |
| 22 | 22 |
| 23 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 23 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 24 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 24 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 25 | 25 |
| 26 <script> | 26 <script> |
| 27 | 27 |
| 28 var test = function() | 28 var test = function() |
| 29 { | 29 { |
| 30 var panel = WebInspector.panels.sources; | 30 var panel = WebInspector.panels.sources; |
| 31 InspectorTest.startDebuggerTest(step1, true); | 31 InspectorTest.startDebuggerTest(step1, true); |
| 32 | 32 |
| 33 function callstackStatus() | 33 function callstackStatus() |
| 34 { | 34 { |
| 35 var pane = self.runtime.sharedInstance(WebInspector.CallStackSidebarPane
); | 35 var statusElement = panel.element.querySelector("[is=paused-message]"); |
| 36 var statusElement = pane.contentElement; | 36 return statusElement ? statusElement.deepTextContent() : ""; |
| 37 return statusElement ? statusElement.textContent : ""; | |
| 38 } | 37 } |
| 39 | 38 |
| 40 function step1() | 39 function step1() |
| 41 { | 40 { |
| 42 InspectorTest.showScriptSource("debug-inlined-scripts.html", step2); | 41 InspectorTest.showScriptSource("debug-inlined-scripts.html", step2); |
| 43 } | 42 } |
| 44 | 43 |
| 45 function step2(sourceFrame) | 44 function step2(sourceFrame) |
| 46 { | 45 { |
| 47 InspectorTest.addResult("Script source was shown."); | 46 InspectorTest.addResult("Script source was shown."); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 126 |
| 128 <script> | 127 <script> |
| 129 | 128 |
| 130 var test = function() | 129 var test = function() |
| 131 { | 130 { |
| 132 var panel = WebInspector.panels.sources; | 131 var panel = WebInspector.panels.sources; |
| 133 InspectorTest.startDebuggerTest(step1, true); | 132 InspectorTest.startDebuggerTest(step1, true); |
| 134 | 133 |
| 135 function callstackStatus() | 134 function callstackStatus() |
| 136 { | 135 { |
| 137 var pane = self.runtime.sharedInstance(WebInspector.CallStackSidebarPane
); | 136 var statusElement = panel.element.querySelector("[is=paused-message]"); |
| 138 var statusElement = pane.contentElement; | 137 return statusElement ? statusElement.deepTextContent() : ""; |
| 139 return statusElement ? statusElement.textContent : ""; | |
| 140 } | 138 } |
| 141 | 139 |
| 142 function step1() | 140 function step1() |
| 143 { | 141 { |
| 144 InspectorTest.showScriptSource("debug-inlined-scripts.html", step2); | 142 InspectorTest.showScriptSource("debug-inlined-scripts.html", step2); |
| 145 } | 143 } |
| 146 | 144 |
| 147 function step2(sourceFrame) | 145 function step2(sourceFrame) |
| 148 { | 146 { |
| 149 InspectorTest.addResult("Script source was shown."); | 147 InspectorTest.addResult("Script source was shown."); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 Tests that all inlined scripts from the same document are shown in the same sour
ce frame with html script tags. | 198 Tests that all inlined scripts from the same document are shown in the same sour
ce frame with html script tags. |
| 201 <a href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a> | 199 <a href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a> |
| 202 </p> | 200 </p> |
| 203 | 201 |
| 204 </body> | 202 </body> |
| 205 </html> | 203 </html> |
| 206 | 204 |
| 207 ==Source frame contents end== | 205 ==Source frame contents end== |
| 208 Page reloaded. | 206 Page reloaded. |
| 209 | 207 |
| OLD | NEW |