OLD | NEW |
(Empty) | |
| 1 Checks Debugger.scheduleStepIntoAsync. |
| 2 |
| 3 Running test: testScheduleErrors |
| 4 paused at: |
| 5 function testNoScheduledTask() { |
| 6 #debugger; |
| 7 return 42; |
| 8 |
| 9 { |
| 10 error : { |
| 11 code : -32000 |
| 12 message : Current scheduled step into async was overriden with new one. |
| 13 } |
| 14 id : <messageId> |
| 15 } |
| 16 { |
| 17 error : { |
| 18 code : -32000 |
| 19 message : No async tasks were scheduled before pause. |
| 20 } |
| 21 id : <messageId> |
| 22 } |
| 23 paused at: |
| 24 debugger; |
| 25 #return 42; |
| 26 } |
| 27 |
| 28 |
| 29 Running test: testSimple |
| 30 paused at: |
| 31 function testSimple() { |
| 32 #debugger; |
| 33 Promise.resolve().then(v => v * 2); |
| 34 |
| 35 paused at: |
| 36 debugger; |
| 37 #Promise.resolve().then(v => v * 2); |
| 38 } |
| 39 |
| 40 { |
| 41 id : <messageId> |
| 42 result : { |
| 43 } |
| 44 } |
| 45 paused at: |
| 46 debugger; |
| 47 Promise.resolve().then(#v => v * 2); |
| 48 } |
| 49 |
| 50 |
| 51 Running test: testNotResolvedPromise |
| 52 paused at: |
| 53 var p = new Promise(resolve => resolveCallback = resolve); |
| 54 #debugger; |
| 55 p.then(v => v * 2); |
| 56 |
| 57 paused at: |
| 58 debugger; |
| 59 #p.then(v => v * 2); |
| 60 resolveCallback(); |
| 61 |
| 62 { |
| 63 id : <messageId> |
| 64 result : { |
| 65 } |
| 66 } |
| 67 paused at: |
| 68 debugger; |
| 69 p.then(#v => v * 2); |
| 70 resolveCallback(); |
| 71 |
| 72 |
| 73 Running test: testTwoAsyncTasks |
| 74 paused at: |
| 75 function testTwoAsyncTasks() { |
| 76 #debugger; |
| 77 Promise.resolve().then(v => v * 2); |
| 78 |
| 79 { |
| 80 id : <messageId> |
| 81 result : { |
| 82 } |
| 83 } |
| 84 paused at: |
| 85 debugger; |
| 86 Promise.resolve().then(#v => v * 2); |
| 87 Promise.resolve().then(v => v * 4); |
| 88 |
| 89 |
| 90 Running test: testTwoTasksAndGoToSecond |
| 91 paused at: |
| 92 function testTwoAsyncTasks() { |
| 93 #debugger; |
| 94 Promise.resolve().then(v => v * 2); |
| 95 |
| 96 paused at: |
| 97 debugger; |
| 98 #Promise.resolve().then(v => v * 2); |
| 99 Promise.resolve().then(v => v * 4); |
| 100 |
| 101 paused at: |
| 102 Promise.resolve().then(v => v * 2); |
| 103 #Promise.resolve().then(v => v * 4); |
| 104 } |
| 105 |
| 106 { |
| 107 id : <messageId> |
| 108 result : { |
| 109 } |
| 110 } |
| 111 paused at: |
| 112 Promise.resolve().then(v => v * 2); |
| 113 Promise.resolve().then(#v => v * 4); |
| 114 } |
| 115 |
| 116 |
| 117 Running test: testTwoAsyncTasksWithBreak |
| 118 paused at: |
| 119 function testTwoAsyncTasksWithBreak() { |
| 120 #debugger; |
| 121 Promise.resolve().then(v => v * 2); |
| 122 |
| 123 paused at: |
| 124 debugger; |
| 125 #Promise.resolve().then(v => v * 2); |
| 126 debugger; |
| 127 |
| 128 { |
| 129 id : <messageId> |
| 130 result : { |
| 131 } |
| 132 } |
| 133 paused at: |
| 134 Promise.resolve().then(v => v * 2); |
| 135 #debugger; |
| 136 Promise.resolve().then(v => v * 4); |
| 137 |
| 138 { |
| 139 id : <messageId> |
| 140 result : { |
| 141 } |
| 142 } |
| 143 paused at: |
| 144 debugger; |
| 145 Promise.resolve().then(#v => v * 4); |
| 146 } |
| 147 |
| 148 |
| 149 Running test: testPromiseAll |
| 150 paused at: |
| 151 function testPromiseAll() { |
| 152 #debugger; |
| 153 Promise.all([ Promise.resolve(), Promise.resolve() ]).then(v => v * 2); |
| 154 |
| 155 paused at: |
| 156 debugger; |
| 157 #Promise.all([ Promise.resolve(), Promise.resolve() ]).then(v => v * 2); |
| 158 } |
| 159 |
| 160 { |
| 161 id : <messageId> |
| 162 result : { |
| 163 } |
| 164 } |
| 165 paused at: |
| 166 debugger; |
| 167 Promise.all([ Promise.resolve(), Promise.resolve() ]).then(#v => v * 2); |
| 168 } |
| 169 |
| 170 |
| 171 Running test: testWithBlackboxedCode |
| 172 paused at: |
| 173 function testBlackboxedCreatePromise() { |
| 174 #debugger; |
| 175 createPromise().then(v => v * 2); |
| 176 |
| 177 paused at: |
| 178 debugger; |
| 179 #createPromise().then(v => v * 2); |
| 180 } |
| 181 |
| 182 { |
| 183 id : <messageId> |
| 184 result : { |
| 185 } |
| 186 } |
| 187 paused at: |
| 188 debugger; |
| 189 createPromise().then(#v => v * 2); |
| 190 } |
| 191 |
OLD | NEW |