OLD | NEW |
1 function test() | 1 function test() |
2 { | 2 { |
3 WebInspector.showPanel("scripts"); | 3 WebInspector.showPanel("sources"); |
4 | 4 |
5 InspectorTest.addSniffer(WebInspector.CallStackSidebarPane.prototype, "setSt
atus", setStatus, false); | 5 InspectorTest.addSniffer(WebInspector.CallStackSidebarPane.prototype, "setSt
atus", setStatus, false); |
6 | 6 |
7 function setStatus(status) | 7 function setStatus(status) |
8 { | 8 { |
9 // FIXME: For whatever reason, this isn't getting called consistently. | 9 // FIXME: For whatever reason, this isn't getting called consistently. |
10 // Commenting it out to avoid flakeyness. https://bugs.webkit.org/show_b
ug.cgi?id=96867 | 10 // Commenting it out to avoid flakeyness. https://bugs.webkit.org/show_b
ug.cgi?id=96867 |
11 // InspectorTest.addResult("Callstack status set to: '" + status + "'.")
; | 11 // InspectorTest.addResult("Callstack status set to: '" + status + "'.")
; |
12 } | 12 } |
13 | 13 |
14 InspectorTest.startDebuggerTest(step1); | 14 InspectorTest.startDebuggerTest(step1); |
15 | 15 |
16 function step1() | 16 function step1() |
17 { | 17 { |
18 DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExc
eptionsState.PauseOnUncaughtExceptions); | 18 DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExc
eptionsState.PauseOnUncaughtExceptions); |
19 InspectorTest.evaluateInPage("setTimeout(testAction, 0);"); | 19 InspectorTest.evaluateInPage("setTimeout(testAction, 0);"); |
20 InspectorTest.waitUntilPaused(step2); | 20 InspectorTest.waitUntilPaused(step2); |
21 } | 21 } |
22 | 22 |
23 function step2(callFrames) | 23 function step2(callFrames) |
24 { | 24 { |
25 InspectorTest.captureStackTrace(callFrames); | 25 InspectorTest.captureStackTrace(callFrames); |
26 InspectorTest.completeDebuggerTest(); | 26 InspectorTest.completeDebuggerTest(); |
27 } | 27 } |
28 } | 28 } |
29 | 29 |
30 window.addEventListener('load', runTest); | 30 window.addEventListener('load', runTest); |
OLD | NEW |