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="../debugger/resources/framework.js"></script> | 5 <script src="../debugger/resources/framework.js"></script> |
6 <script> | 6 <script> |
7 | 7 |
8 var dummy = function FAIL_should_not_pause_here() { return 0; }; | 8 var dummy = function FAIL_should_not_pause_here() { return 0; }; |
9 | 9 |
10 function testFunction() | 10 function testFunction() |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 function callback3() | 46 function callback3() |
47 { | 47 { |
48 return 3; | 48 return 3; |
49 } | 49 } |
50 | 50 |
51 function test() | 51 function test() |
52 { | 52 { |
53 var maxAsyncCallStackDepth = 4; | 53 var maxAsyncCallStackDepth = 4; |
54 var frameworkRegexString = "/framework\\.js$"; | 54 var frameworkRegexString = "/framework\\.js$"; |
| 55 InspectorTest.addSniffer(WebInspector.BlackboxManager.prototype, "_patternCh
angeFinishedForTests", step1); |
55 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexStri
ng); | 56 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexStri
ng); |
56 | 57 |
57 InspectorTest.startDebuggerTest(step1, true); | |
58 | |
59 function step1() | 58 function step1() |
60 { | 59 { |
61 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); | 60 InspectorTest.startDebuggerTest(step2, true); |
62 } | 61 } |
63 | 62 |
64 function step2() | 63 function step2() |
65 { | 64 { |
66 InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.
Events.AsyncOperationStarted, onAsyncOperationStarted); | 65 InspectorTest.runTestFunctionAndWaitUntilPaused(step3); |
67 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDept
h, step3); | |
68 } | 66 } |
69 | 67 |
70 function step3() | 68 function step3() |
71 { | 69 { |
| 70 InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.
Events.AsyncOperationStarted, onAsyncOperationStarted); |
| 71 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDept
h, step4); |
| 72 } |
| 73 |
| 74 function step4() |
| 75 { |
72 var callbackFuncCount = 3; | 76 var callbackFuncCount = 3; |
73 iterate(); | 77 iterate(); |
74 | 78 |
75 function iterate() | 79 function iterate() |
76 { | 80 { |
77 if (!callbackFuncCount--) { | 81 if (!callbackFuncCount--) { |
78 InspectorTest.completeDebuggerTest(); | 82 InspectorTest.completeDebuggerTest(); |
79 return; | 83 return; |
80 } | 84 } |
81 InspectorTest.waitUntilPausedAndPerformSteppingActions(["Resume", "R
esume"], InspectorTest.waitUntilPaused.bind(InspectorTest, didPause)); | 85 InspectorTest.waitUntilPausedAndPerformSteppingActions(["Resume", "R
esume"], InspectorTest.waitUntilPaused.bind(InspectorTest, didPause)); |
(...skipping 23 matching lines...) Expand all Loading... |
105 | 109 |
106 </script> | 110 </script> |
107 </head> | 111 </head> |
108 | 112 |
109 <body onload="runTest()"> | 113 <body onload="runTest()"> |
110 <p> | 114 <p> |
111 Tests AsyncOperation breakpoints. | 115 Tests AsyncOperation breakpoints. |
112 </p> | 116 </p> |
113 </body> | 117 </body> |
114 </html> | 118 </html> |
OLD | NEW |