1 Tests BreakpointManager class.
4 Running: testSetBreakpoint
5 Created breakpoints manager
8 Adding UISourceCode: a.js
9 Setting breakpoint at a.js:30:0 enabled:true condition:
10 breakpointAdded(a.js, 30, 0, , true)
11 debuggerModel.setBreakpoint(a.js:30:)
12 breakpointRemoved(a.js, 30, 0)
13 breakpointAdded(a.js, 30, 0, , true)
14 Location created: a.js:30
15 Dumping Breakpoint Locations
16 UISourceCode (url='a.js', uri='a.js')
19 a.js:30 enabled:true condition:
20 Resetting breakpoint manager
21 breakpointRemoved(a.js, 30, 0)
22 Location disposed: a.js:30
23 debuggerModel.removeBreakpoint(a.js:30)
24 Dumping Breakpoint Locations
26 Running: testSetDisabledBreakpoint
27 Created breakpoints manager
30 Adding UISourceCode: a.js
31 Setting breakpoint at a.js:30:0 enabled:false condition:
32 breakpointAdded(a.js, 30, 0, , false)
33 Dumping Breakpoint Locations
34 UISourceCode (url='a.js', uri='a.js')
37 a.js:30 enabled:false condition:
39 breakpointRemoved(a.js, 30, 0)
40 breakpointAdded(a.js, 30, 0, , true)
41 debuggerModel.setBreakpoint(a.js:30:)
42 breakpointRemoved(a.js, 30, 0)
43 breakpointAdded(a.js, 30, 0, , true)
44 Location created: a.js:30
45 Dumping Breakpoint Locations
46 UISourceCode (url='a.js', uri='a.js')
49 a.js:30 enabled:true condition:
50 Resetting breakpoint manager
51 breakpointRemoved(a.js, 30, 0)
52 Location disposed: a.js:30
53 debuggerModel.removeBreakpoint(a.js:30)
54 Dumping Breakpoint Locations
56 Running: testSetConditionalBreakpoint
57 Created breakpoints manager
60 Adding UISourceCode: a.js
61 Setting breakpoint at a.js:30:0 enabled:true condition:condition
62 breakpointAdded(a.js, 30, 0, condition, true)
63 debuggerModel.setBreakpoint(a.js:30:condition)
64 breakpointRemoved(a.js, 30, 0)
65 breakpointAdded(a.js, 30, 0, condition, true)
66 Location created: a.js:30
67 Dumping Breakpoint Locations
68 UISourceCode (url='a.js', uri='a.js')
71 a.js:30 enabled:true condition:condition
73 breakpointRemoved(a.js, 30, 0)
74 breakpointAdded(a.js, 30, 0, , true)
75 Location disposed: a.js:30
76 debuggerModel.removeBreakpoint(a.js:30)
77 debuggerModel.setBreakpoint(a.js:30:)
78 breakpointRemoved(a.js, 30, 0)
79 breakpointAdded(a.js, 30, 0, , true)
80 Location created: a.js:30
81 Dumping Breakpoint Locations
82 UISourceCode (url='a.js', uri='a.js')
85 a.js:30 enabled:true condition:
86 Resetting breakpoint manager
87 breakpointRemoved(a.js, 30, 0)
88 Location disposed: a.js:30
89 debuggerModel.removeBreakpoint(a.js:30)
90 Dumping Breakpoint Locations
92 Running: testRestoreBreakpoints
93 Created breakpoints manager
95 a.js:10 enabled:true condition:foo == bar
96 a.js:20 enabled:false condition:
97 b.js:3 enabled:true condition:
99 Adding UISourceCode: a.js
100 breakpointAdded(a.js, 10, 0, foo == bar, true)
101 debuggerModel.setBreakpoint(a.js:10:foo == bar)
102 breakpointAdded(a.js, 20, 0, , false)
103 breakpointRemoved(a.js, 10, 0)
104 breakpointAdded(a.js, 10, 0, foo == bar, true)
105 Location created: a.js:10
106 Dumping Breakpoint Locations
107 UISourceCode (url='a.js', uri='a.js')
111 a.js:10 enabled:true condition:foo == bar
112 a.js:20 enabled:false condition:
113 b.js:3 enabled:true condition:
114 Resetting breakpoint manager
115 breakpointRemoved(a.js, 20, 0)
116 breakpointRemoved(a.js, 10, 0)
117 Location disposed: a.js:10
118 debuggerModel.removeBreakpoint(a.js:10)
119 Dumping Breakpoint Locations
121 Running: testRestoreBreakpointsTwice
122 Created breakpoints manager
124 a.js:10 enabled:true condition:foo == bar
125 a.js:20 enabled:false condition:
126 b.js:3 enabled:true condition:
128 Adding UISourceCode: a.js
129 breakpointAdded(a.js, 10, 0, foo == bar, true)
130 debuggerModel.setBreakpoint(a.js:10:foo == bar)
131 breakpointAdded(a.js, 20, 0, , false)
133 Adding UISourceCode: a.js
134 breakpointRemoved(a.js, 10, 0)
135 breakpointAdded(a.js, 10, 0, foo == bar, true)
136 Location created: a.js:10
137 Dumping Breakpoint Locations
138 UISourceCode (url='a.js', uri='a.js')
142 a.js:10 enabled:true condition:foo == bar
143 a.js:20 enabled:false condition:
144 b.js:3 enabled:true condition:
145 Resetting breakpoint manager
146 breakpointRemoved(a.js, 20, 0)
147 breakpointRemoved(a.js, 10, 0)
148 Location disposed: a.js:10
149 debuggerModel.removeBreakpoint(a.js:10)
150 Dumping Breakpoint Locations
152 Running: testRemoveBreakpoints
153 Created breakpoints manager
155 a.js:10 enabled:true condition:foo == bar
156 a.js:20 enabled:false condition:
157 b.js:3 enabled:true condition:
159 Adding UISourceCode: a.js
160 breakpointAdded(a.js, 10, 0, foo == bar, true)
161 debuggerModel.setBreakpoint(a.js:10:foo == bar)
162 breakpointAdded(a.js, 20, 0, , false)
163 breakpointRemoved(a.js, 10, 0)
164 breakpointAdded(a.js, 10, 0, foo == bar, true)
165 Location created: a.js:10
166 Dumping Breakpoint Locations
167 UISourceCode (url='a.js', uri='a.js')
170 Setting breakpoint at a.js:30:0 enabled:true condition:
171 breakpointAdded(a.js, 30, 0, , true)
172 debuggerModel.setBreakpoint(a.js:30:)
173 breakpointRemoved(a.js, 30, 0)
174 breakpointAdded(a.js, 30, 0, , true)
175 Location created: a.js:30
176 Dumping Breakpoint Locations
177 UISourceCode (url='a.js', uri='a.js')
181 Removing breakpoint at a.js:30:0
182 breakpointRemoved(a.js, 30, 0)
183 Location disposed: a.js:30
184 debuggerModel.removeBreakpoint(a.js:30)
185 Removing breakpoint at a.js:10:0
186 breakpointRemoved(a.js, 10, 0)
187 Location disposed: a.js:10
188 debuggerModel.removeBreakpoint(a.js:10)
189 Removing breakpoint at a.js:20:0
190 breakpointRemoved(a.js, 20, 0)
191 Dumping Breakpoint Locations
193 b.js:3 enabled:true condition:
194 Resetting breakpoint manager
195 Dumping Breakpoint Locations
197 Running: testSetBreakpointThatShifts
198 Created breakpoints manager
201 Adding UISourceCode: a.js
202 Setting breakpoint at a.js:1015:0 enabled:true condition:
203 breakpointAdded(a.js, 1015, 0, , true)
204 debuggerModel.setBreakpoint(a.js:1015:)
205 breakpointRemoved(a.js, 1015, 0)
206 breakpointAdded(a.js, 1025, 0, , true)
207 Location created: a.js:1025
208 Dumping Breakpoint Locations
209 UISourceCode (url='a.js', uri='a.js')
212 a.js:1015 enabled:true condition:
213 Resetting breakpoint manager
214 breakpointRemoved(a.js, 1025, 0)
215 Location disposed: a.js:1025
216 debuggerModel.removeBreakpoint(a.js:1015)
217 Dumping Breakpoint Locations
219 Running: testSetBreakpointThatShiftsTwice
220 Created breakpoints manager
223 Adding UISourceCode: a.js
224 Setting breakpoint at a.js:1015:0 enabled:true condition:
225 breakpointAdded(a.js, 1015, 0, , true)
226 debuggerModel.setBreakpoint(a.js:1015:)
227 breakpointRemoved(a.js, 1015, 0)
228 breakpointAdded(a.js, 1025, 0, , true)
229 Location created: a.js:1025
230 Dumping Breakpoint Locations
231 UISourceCode (url='a.js', uri='a.js')
233 Setting breakpoint at a.js:1015:0 enabled:true condition:
234 breakpointAdded(a.js, 1015, 0, , true)
235 debuggerModel.setBreakpoint(a.js:1015:)
236 breakpointRemoved(a.js, 1015, 0)
237 Dumping Breakpoint Locations
238 UISourceCode (url='a.js', uri='a.js')
241 a.js:1015 enabled:true condition:
242 Resetting breakpoint manager
243 breakpointRemoved(a.js, 1025, 0)
244 Location disposed: a.js:1025
245 debuggerModel.removeBreakpoint(a.js:1015)
246 Dumping Breakpoint Locations
248 Running: testSetBreakpointOutsideScript
249 Created breakpoints manager
252 Adding UISourceCode: a.js
253 breakpointAdded(a.js, 2500, 0, , true)
254 debuggerModel.setBreakpoint(a.js:2500:)
255 Dumping Breakpoint Locations
256 UISourceCode (url='a.js', uri='a.js')
259 a.js:2500 enabled:true condition:
260 Resetting breakpoint manager
261 breakpointRemoved(a.js, 2500, 0)
262 debuggerModel.removeBreakpoint(a.js:2500)
263 Dumping Breakpoint Locations
265 Running: testNavigation
266 Created breakpoints manager
268 a.js:10 enabled:true condition:foo == bar
269 a.js:20 enabled:false condition:
270 b.js:3 enabled:true condition:
272 Adding UISourceCode: a.js
273 breakpointAdded(a.js, 10, 0, foo == bar, true)
274 debuggerModel.setBreakpoint(a.js:10:foo == bar)
275 breakpointAdded(a.js, 20, 0, , false)
276 breakpointRemoved(a.js, 10, 0)
277 breakpointAdded(a.js, 10, 0, foo == bar, true)
278 Location created: a.js:10
279 Dumping Breakpoint Locations
280 UISourceCode (url='a.js', uri='a.js')
287 breakpointRemoved(a.js, 10, 0)
288 Location disposed: a.js:10
289 breakpointRemoved(a.js, 20, 0)
291 Adding UISourceCode: b.js
292 breakpointAdded(b.js, 3, 0, , true)
293 debuggerModel.setBreakpoint(b.js:3:)
294 breakpointRemoved(b.js, 3, 0)
295 breakpointAdded(b.js, 3, 0, , true)
296 Location created: b.js:3
297 Dumping Breakpoint Locations
298 UISourceCode (url='b.js', uri='b.js')
301 Navigating back to A.
304 breakpointRemoved(b.js, 3, 0)
305 Location disposed: b.js:3
306 Resolving provisional breakpoint.
308 breakpointAdded(a.js, 10, 0, foo == bar, true)
309 Location created: a.js:10
310 Adding UISourceCode: a.js
311 breakpointAdded(a.js, 20, 0, , false)
312 breakpointRemoved(a.js, 10, 0)
313 breakpointAdded(a.js, 10, 0, foo == bar, true)
314 Dumping Breakpoint Locations
315 UISourceCode (url='a.js', uri='a.js')
319 a.js:10 enabled:true condition:foo == bar
320 a.js:20 enabled:false condition:
321 b.js:3 enabled:true condition:
322 Resetting breakpoint manager
323 breakpointRemoved(a.js, 20, 0)
324 breakpointRemoved(a.js, 10, 0)
325 Location disposed: a.js:10
326 debuggerModel.removeBreakpoint(a.js:10)
327 debuggerModel.removeBreakpoint(b.js:3)
328 Dumping Breakpoint Locations
330 Running: testSourceMapping
331 Created breakpoints manager
333 a.js:10 enabled:true condition:foo == bar
334 a.js:20 enabled:true condition:
336 Adding UISourceCode: a.js
337 breakpointAdded(a.js, 10, 0, foo == bar, true)
338 debuggerModel.setBreakpoint(a.js:10:foo == bar)
339 breakpointAdded(a.js, 20, 0, , true)
340 debuggerModel.setBreakpoint(a.js:20:)
341 breakpointRemoved(a.js, 10, 0)
342 breakpointAdded(a.js, 10, 0, foo == bar, true)
343 Location created: a.js:10
344 breakpointRemoved(a.js, 20, 0)
345 breakpointAdded(a.js, 20, 0, , true)
346 Location created: a.js:20
347 Dumping Breakpoint Locations
348 UISourceCode (url='a.js', uri='a.js')
352 Toggling source mapping.
353 breakpointRemoved(a.js, 10, 0)
354 breakpointAdded(a.js, 20, 0, foo == bar, true)
355 breakpointRemoved(a.js, 20, 0)
356 breakpointAdded(a.js, 30, 0, , true)
357 Dumping Breakpoint Locations
358 UISourceCode (url='a.js', uri='a.js')
362 Toggling source mapping back.
363 breakpointRemoved(a.js, 20, 0)
364 breakpointAdded(a.js, 10, 0, foo == bar, true)
365 breakpointRemoved(a.js, 30, 0)
366 breakpointAdded(a.js, 20, 0, , true)
367 Dumping Breakpoint Locations
368 UISourceCode (url='a.js', uri='a.js')
372 a.js:10 enabled:true condition:foo == bar
373 a.js:20 enabled:true condition:
374 Resetting breakpoint manager
375 breakpointRemoved(a.js, 10, 0)
376 Location disposed: a.js:10
377 debuggerModel.removeBreakpoint(a.js:10)
378 breakpointRemoved(a.js, 20, 0)
379 Location disposed: a.js:20
380 debuggerModel.removeBreakpoint(a.js:20)
381 Dumping Breakpoint Locations
383 Running: testProvisionalBreakpointsResolve
384 Created breakpoints manager
386 a.js:10 enabled:true condition:foo == bar
388 Adding UISourceCode: a.js
389 breakpointAdded(a.js, 10, 0, foo == bar, true)
390 debuggerModel.setBreakpoint(a.js:10:foo == bar)
391 breakpointRemoved(a.js, 10, 0)
392 breakpointAdded(a.js, 10, 0, foo == bar, true)
393 Location created: a.js:10
394 Dumping Breakpoint Locations
395 UISourceCode (url='a.js', uri='a.js')
399 breakpointRemoved(a.js, 10, 0)
400 Location disposed: a.js:10
401 Resolving provisional breakpoint.
403 breakpointAdded(a.js, 11, 0, foo == bar, true)
404 Location created: a.js:11
405 Dumping Breakpoint Locations
406 UISourceCode (url='a.js', uri='debugger:/VMa.js a.js')
409 a.js:10 enabled:true condition:foo == bar
410 Resetting breakpoint manager
411 breakpointRemoved(a.js, 11, 0)
412 Location disposed: a.js:11
413 debuggerModel.removeBreakpoint(a.js:10)
414 Dumping Breakpoint Locations
416 Running: testSourceMappingReload
417 Created breakpoints manager
419 b.js:20 enabled:true condition:foo == bar
423 Adding UISourceCode: a.js
424 Adding UISourceCode: b.js
425 breakpointAdded(b.js, 20, 0, foo == bar, true)
426 debuggerModel.setBreakpoint(b.js:20:foo == bar)
428 Toggling source mapping.
429 debuggerModel.removeBreakpoint(b.js:20)
430 debuggerModel.setBreakpoint(a.js:10:foo == bar)
431 breakpointRemoved(b.js, 20, 0)
432 breakpointAdded(b.js, 20, 0, foo == bar, true)
433 Location created: a.js:10
434 Dumping Breakpoint Locations
435 UISourceCode (url='b.js', uri='b.js')
441 breakpointRemoved(b.js, 20, 0)
442 Location disposed: a.js:10
446 breakpointAdded(a.js, 10, 0, foo == bar, true)
447 Location created: a.js:10
448 Adding UISourceCode: a.js
449 breakpointRemoved(a.js, 10, 0)
450 breakpointAdded(a.js, 10, 0, foo == bar, true)
451 Adding UISourceCode: b.js
453 Toggling source mapping.
454 breakpointRemoved(a.js, 10, 0)
455 breakpointAdded(b.js, 20, 0, foo == bar, true)
456 Dumping Breakpoint Locations
457 UISourceCode (url='b.js', uri='b.js')
460 b.js:20 enabled:true condition:foo == bar
461 Resetting breakpoint manager
462 breakpointRemoved(b.js, 20, 0)
463 Location disposed: a.js:10
464 debuggerModel.removeBreakpoint(a.js:10)
465 Dumping Breakpoint Locations
467 Running: testBreakpointInCollectedReload
468 Created breakpoints manager
471 Adding file without script:
472 Adding UISourceCode: a.js
475 Setting breakpoint at a.js:10:0 enabled:true condition:
476 breakpointAdded(a.js, 10, 0, , true)
477 debuggerModel.setBreakpoint(a.js:10:)
478 Dumping Breakpoint Locations
479 UISourceCode (url='a.js', uri='a.js')
485 breakpointRemoved(a.js, 10, 0)
487 Adding file with script:
489 Adding UISourceCode: a.js
490 breakpointAdded(a.js, 10, 0, , true)
492 Emulating breakpoint resolved event:
493 breakpointRemoved(a.js, 10, 0)
494 breakpointAdded(a.js, 10, 0, , true)
495 Location created: a.js:10
497 Make sure we don't do any unnecessary breakpoint actions:
498 Dumping Breakpoint Locations
499 UISourceCode (url='a.js', uri='a.js')
502 a.js:10 enabled:true condition:
503 Resetting breakpoint manager
504 breakpointRemoved(a.js, 10, 0)
505 Location disposed: a.js:10
506 debuggerModel.removeBreakpoint(a.js:10)
507 Dumping Breakpoint Locations