| 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="../../../http/tests/inspector/live-edit-test.js"></script> | 5 <script src="../../../http/tests/inspector/live-edit-test.js"></script> |
| 6 <script src="resources/edit-me-breakpoints.js"></script> | 6 <script src="resources/edit-me-breakpoints.js"></script> |
| 7 <script> | 7 <script> |
| 8 function loadDynamicAnonymousScript() | 8 function loadDynamicAnonymousScript() |
| 9 { | 9 { |
| 10 function testFunction() | 10 function testFunction() |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 function didShowScriptSource(sourceFrame) | 80 function didShowScriptSource(sourceFrame) |
| 81 { | 81 { |
| 82 javaScriptSourceFrame = sourceFrame; | 82 javaScriptSourceFrame = sourceFrame; |
| 83 uiSourceCode = sourceFrame._uiSourceCode; | 83 uiSourceCode = sourceFrame._uiSourceCode; |
| 84 javaScriptSourceFrame._textEditor.main = true; | 84 javaScriptSourceFrame._textEditor.main = true; |
| 85 | 85 |
| 86 InspectorTest.addSniffer(javaScriptSourceFrame._textEditor.__pro
to__, "addBreakpoint", addBreakpointSniffer, true); | 86 InspectorTest.addSniffer(javaScriptSourceFrame._textEditor.__pro
to__, "addBreakpoint", addBreakpointSniffer, true); |
| 87 InspectorTest.addSniffer(javaScriptSourceFrame._textEditor.__pro
to__, "removeBreakpoint", removeBreakpointSniffer, true); | 87 InspectorTest.addSniffer(javaScriptSourceFrame._textEditor.__pro
to__, "removeBreakpoint", removeBreakpointSniffer, true); |
| 88 | 88 |
| 89 InspectorTest.addResult("Setting breakpoint:"); | 89 InspectorTest.addResult("Setting breakpoint:"); |
| 90 InspectorTest.addSniffer(WebInspector.BreakpointManager.Breakpoi
nt.prototype, "_addResolvedLocation", breakpointResolved); | 90 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBr
eakpoint.prototype, "_addResolvedLocation", breakpointResolved); |
| 91 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); | 91 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); |
| 92 } | 92 } |
| 93 | 93 |
| 94 function breakpointResolved(location) | 94 function breakpointResolved(location) |
| 95 { | 95 { |
| 96 script = WebInspector.debuggerModel.scriptForId(location.scriptI
d); | 96 script = WebInspector.debuggerModel.scriptForId(location.scriptI
d); |
| 97 | 97 |
| 98 dumpBreakpointStorageAndLocations(); | 98 dumpBreakpointStorageAndLocations(); |
| 99 InspectorTest.addResult("Editing source:"); | 99 InspectorTest.addResult("Editing source:"); |
| 100 InspectorTest.replaceInSource(javaScriptSourceFrame, "}", "}//")
; | 100 InspectorTest.replaceInSource(javaScriptSourceFrame, "}", "}//")
; |
| 101 | 101 |
| 102 originalUISourceCode = script.rawLocationToUILocation(location.l
ineNumber).uiSourceCode; | 102 originalUISourceCode = script.rawLocationToUILocation(location.l
ineNumber).uiSourceCode; |
| 103 InspectorTest.showUISourceCode(originalUISourceCode, didShowOrig
inalUISourceCode); | 103 InspectorTest.showUISourceCode(originalUISourceCode, didShowOrig
inalUISourceCode); |
| 104 } | 104 } |
| 105 | 105 |
| 106 function didShowOriginalUISourceCode(sourceFrame) | 106 function didShowOriginalUISourceCode(sourceFrame) |
| 107 { | 107 { |
| 108 originalJavaScriptSourceFrame = sourceFrame; | 108 originalJavaScriptSourceFrame = sourceFrame; |
| 109 InspectorTest.assertTrue(originalJavaScriptSourceFrame !== javaS
criptSourceFrame, "Edited and original javaScriptSourceFrames should differ."); | 109 InspectorTest.assertTrue(originalJavaScriptSourceFrame !== javaS
criptSourceFrame, "Edited and original javaScriptSourceFrames should differ."); |
| 110 InspectorTest.assertTrue(originalUISourceCode !== uiSourceCode,
"Edited and original uiSourceCodes should differ."); | 110 InspectorTest.assertTrue(originalUISourceCode !== uiSourceCode,
"Edited and original uiSourceCodes should differ."); |
| 111 | 111 |
| 112 dumpBreakpointStorageAndLocations(); | 112 dumpBreakpointStorageAndLocations(); |
| 113 InspectorTest.addResult("Undoing source editing:"); | 113 InspectorTest.addResult("Undoing source editing:"); |
| 114 InspectorTest.addSniffer(WebInspector.BreakpointManager.Breakpoi
nt.prototype, "_addResolvedLocation", breakpointResolvedAgain); | 114 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBr
eakpoint.prototype, "_addResolvedLocation", breakpointResolvedAgain); |
| 115 InspectorTest.undoSourceEditing(javaScriptSourceFrame); | 115 InspectorTest.undoSourceEditing(javaScriptSourceFrame); |
| 116 } | 116 } |
| 117 | 117 |
| 118 function breakpointResolvedAgain() | 118 function breakpointResolvedAgain() |
| 119 { | 119 { |
| 120 dumpBreakpointStorageAndLocations(); | 120 dumpBreakpointStorageAndLocations(); |
| 121 InspectorTest.addResult("Finally removing breakpoint:"); | 121 InspectorTest.addResult("Finally removing breakpoint:"); |
| 122 InspectorTest.removeBreakpoint(javaScriptSourceFrame, 2); | 122 InspectorTest.removeBreakpoint(javaScriptSourceFrame, 2); |
| 123 | 123 |
| 124 dumpBreakpointStorageAndLocations(); | 124 dumpBreakpointStorageAndLocations(); |
| 125 next(); | 125 next(); |
| 126 } | 126 } |
| 127 }, | 127 }, |
| 128 | 128 |
| 129 function testEditCommit(next) | 129 function testEditCommit(next) |
| 130 { | 130 { |
| 131 var javaScriptSourceFrame, uiSourceCode, script, originalJavaScriptS
ourceFrame, originalUISourceCode; | 131 var javaScriptSourceFrame, uiSourceCode, script, originalJavaScriptS
ourceFrame, originalUISourceCode; |
| 132 | 132 |
| 133 InspectorTest.showScriptSource("edit-me-breakpoints.js", didShowScri
ptSource); | 133 InspectorTest.showScriptSource("edit-me-breakpoints.js", didShowScri
ptSource); |
| 134 | 134 |
| 135 function didShowScriptSource(sourceFrame) | 135 function didShowScriptSource(sourceFrame) |
| 136 { | 136 { |
| 137 javaScriptSourceFrame = sourceFrame; | 137 javaScriptSourceFrame = sourceFrame; |
| 138 uiSourceCode = sourceFrame._uiSourceCode; | 138 uiSourceCode = sourceFrame._uiSourceCode; |
| 139 | 139 |
| 140 InspectorTest.addResult("Setting breakpoint:"); | 140 InspectorTest.addResult("Setting breakpoint:"); |
| 141 InspectorTest.addSniffer(WebInspector.BreakpointManager.Breakpoi
nt.prototype, "_addResolvedLocation", breakpointResolved); | 141 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBr
eakpoint.prototype, "_addResolvedLocation", breakpointResolved); |
| 142 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); | 142 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); |
| 143 } | 143 } |
| 144 | 144 |
| 145 function breakpointResolved(location) | 145 function breakpointResolved(location) |
| 146 { | 146 { |
| 147 script = WebInspector.debuggerModel.scriptForId(location.scriptI
d); | 147 script = WebInspector.debuggerModel.scriptForId(location.scriptI
d); |
| 148 | 148 |
| 149 dumpBreakpointStorageAndLocations(); | 149 dumpBreakpointStorageAndLocations(); |
| 150 InspectorTest.addResult("Editing source:"); | 150 InspectorTest.addResult("Editing source:"); |
| 151 InspectorTest.replaceInSource(javaScriptSourceFrame, "}", "}//")
; | 151 InspectorTest.replaceInSource(javaScriptSourceFrame, "}", "}//")
; |
| 152 | 152 |
| 153 originalUISourceCode = script.rawLocationToUILocation(location.l
ineNumber).uiSourceCode; | 153 originalUISourceCode = script.rawLocationToUILocation(location.l
ineNumber).uiSourceCode; |
| 154 InspectorTest.showUISourceCode(originalUISourceCode, didShowOrig
inalUISourceCode); | 154 InspectorTest.showUISourceCode(originalUISourceCode, didShowOrig
inalUISourceCode); |
| 155 } | 155 } |
| 156 | 156 |
| 157 function didShowOriginalUISourceCode(sourceFrame) | 157 function didShowOriginalUISourceCode(sourceFrame) |
| 158 { | 158 { |
| 159 originalJavaScriptSourceFrame = sourceFrame; | 159 originalJavaScriptSourceFrame = sourceFrame; |
| 160 InspectorTest.assertTrue(originalJavaScriptSourceFrame !== javaS
criptSourceFrame, "Edited and original javaScriptSourceFrames should differ."); | 160 InspectorTest.assertTrue(originalJavaScriptSourceFrame !== javaS
criptSourceFrame, "Edited and original javaScriptSourceFrames should differ."); |
| 161 InspectorTest.assertTrue(originalUISourceCode !== uiSourceCode,
"Edited and original uiSourceCodes should differ."); | 161 InspectorTest.assertTrue(originalUISourceCode !== uiSourceCode,
"Edited and original uiSourceCodes should differ."); |
| 162 | 162 |
| 163 dumpBreakpointStorageAndLocations(); | 163 dumpBreakpointStorageAndLocations(); |
| 164 InspectorTest.addResult("Committing edited source:"); | 164 InspectorTest.addResult("Committing edited source:"); |
| 165 InspectorTest.addSniffer(WebInspector.BreakpointManager.Breakpoi
nt.prototype, "_addResolvedLocation", breakpointResolvedAgain); | 165 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBr
eakpoint.prototype, "_addResolvedLocation", breakpointResolvedAgain); |
| 166 InspectorTest.commitSource(javaScriptSourceFrame); | 166 InspectorTest.commitSource(javaScriptSourceFrame); |
| 167 } | 167 } |
| 168 | 168 |
| 169 function breakpointResolvedAgain() | 169 function breakpointResolvedAgain() |
| 170 { | 170 { |
| 171 dumpBreakpointStorageAndLocations(); | 171 dumpBreakpointStorageAndLocations(); |
| 172 InspectorTest.addResult("Finally removing breakpoint:"); | 172 InspectorTest.addResult("Finally removing breakpoint:"); |
| 173 InspectorTest.removeBreakpoint(javaScriptSourceFrame, 2); | 173 InspectorTest.removeBreakpoint(javaScriptSourceFrame, 2); |
| 174 | 174 |
| 175 dumpBreakpointStorageAndLocations(); | 175 dumpBreakpointStorageAndLocations(); |
| 176 next(); | 176 next(); |
| 177 } | 177 } |
| 178 }, | 178 }, |
| 179 | 179 |
| 180 function testEditCommitFailEditCommit(next) | 180 function testEditCommitFailEditCommit(next) |
| 181 { | 181 { |
| 182 var javaScriptSourceFrame, uiSourceCode, script, originalJavaScriptS
ourceFrame, originalUISourceCode; | 182 var javaScriptSourceFrame, uiSourceCode, script, originalJavaScriptS
ourceFrame, originalUISourceCode; |
| 183 | 183 |
| 184 InspectorTest.showScriptSource("edit-me-breakpoints.js", didShowScri
ptSource); | 184 InspectorTest.showScriptSource("edit-me-breakpoints.js", didShowScri
ptSource); |
| 185 | 185 |
| 186 function didShowScriptSource(sourceFrame) | 186 function didShowScriptSource(sourceFrame) |
| 187 { | 187 { |
| 188 javaScriptSourceFrame = sourceFrame; | 188 javaScriptSourceFrame = sourceFrame; |
| 189 uiSourceCode = sourceFrame._uiSourceCode; | 189 uiSourceCode = sourceFrame._uiSourceCode; |
| 190 | 190 |
| 191 InspectorTest.addResult("Setting breakpoint:"); | 191 InspectorTest.addResult("Setting breakpoint:"); |
| 192 InspectorTest.addSniffer(WebInspector.BreakpointManager.Breakpoi
nt.prototype, "_addResolvedLocation", breakpointResolved); | 192 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBr
eakpoint.prototype, "_addResolvedLocation", breakpointResolved); |
| 193 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); | 193 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); |
| 194 } | 194 } |
| 195 | 195 |
| 196 function breakpointResolved(location) | 196 function breakpointResolved(location) |
| 197 { | 197 { |
| 198 script = WebInspector.debuggerModel.scriptForId(location.scriptI
d); | 198 script = WebInspector.debuggerModel.scriptForId(location.scriptI
d); |
| 199 | 199 |
| 200 dumpBreakpointStorageAndLocations(); | 200 dumpBreakpointStorageAndLocations(); |
| 201 InspectorTest.addResult("Editing source:"); | 201 InspectorTest.addResult("Editing source:"); |
| 202 InspectorTest.replaceInSource(javaScriptSourceFrame, "}", "//}")
; | 202 InspectorTest.replaceInSource(javaScriptSourceFrame, "}", "//}")
; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 219 | 219 |
| 220 function commitFailed(error) | 220 function commitFailed(error) |
| 221 { | 221 { |
| 222 InspectorTest.assertTrue(!!error, "Commit should have failed."); | 222 InspectorTest.assertTrue(!!error, "Commit should have failed."); |
| 223 dumpBreakpointStorageAndLocations(); | 223 dumpBreakpointStorageAndLocations(); |
| 224 InspectorTest.addResult("Editing source again so that live edit
could succeed:"); | 224 InspectorTest.addResult("Editing source again so that live edit
could succeed:"); |
| 225 InspectorTest.replaceInSource(javaScriptSourceFrame, "//}", "}//
"); | 225 InspectorTest.replaceInSource(javaScriptSourceFrame, "//}", "}//
"); |
| 226 | 226 |
| 227 dumpBreakpointStorageAndLocations(); | 227 dumpBreakpointStorageAndLocations(); |
| 228 InspectorTest.addResult("Committing edited source again:"); | 228 InspectorTest.addResult("Committing edited source again:"); |
| 229 InspectorTest.addSniffer(WebInspector.BreakpointManager.Breakpoi
nt.prototype, "_addResolvedLocation", breakpointResolvedAgain); | 229 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBr
eakpoint.prototype, "_addResolvedLocation", breakpointResolvedAgain); |
| 230 InspectorTest.commitSource(javaScriptSourceFrame); | 230 InspectorTest.commitSource(javaScriptSourceFrame); |
| 231 } | 231 } |
| 232 | 232 |
| 233 function breakpointResolvedAgain() | 233 function breakpointResolvedAgain() |
| 234 { | 234 { |
| 235 dumpBreakpointStorageAndLocations(); | 235 dumpBreakpointStorageAndLocations(); |
| 236 InspectorTest.addResult("Finally removing breakpoint:"); | 236 InspectorTest.addResult("Finally removing breakpoint:"); |
| 237 InspectorTest.removeBreakpoint(javaScriptSourceFrame, 2); | 237 InspectorTest.removeBreakpoint(javaScriptSourceFrame, 2); |
| 238 | 238 |
| 239 dumpBreakpointStorageAndLocations(); | 239 dumpBreakpointStorageAndLocations(); |
| 240 next(); | 240 next(); |
| 241 } | 241 } |
| 242 }, | 242 }, |
| 243 | 243 |
| 244 function testEditCommitFailUndoCommit(next) | 244 function testEditCommitFailUndoCommit(next) |
| 245 { | 245 { |
| 246 var javaScriptSourceFrame, uiSourceCode, script, originalJavaScriptS
ourceFrame, originalUISourceCode; | 246 var javaScriptSourceFrame, uiSourceCode, script, originalJavaScriptS
ourceFrame, originalUISourceCode; |
| 247 | 247 |
| 248 InspectorTest.showScriptSource("edit-me-breakpoints.js", didShowScri
ptSource); | 248 InspectorTest.showScriptSource("edit-me-breakpoints.js", didShowScri
ptSource); |
| 249 | 249 |
| 250 function didShowScriptSource(sourceFrame) | 250 function didShowScriptSource(sourceFrame) |
| 251 { | 251 { |
| 252 javaScriptSourceFrame = sourceFrame; | 252 javaScriptSourceFrame = sourceFrame; |
| 253 uiSourceCode = sourceFrame._uiSourceCode; | 253 uiSourceCode = sourceFrame._uiSourceCode; |
| 254 | 254 |
| 255 InspectorTest.addResult("Setting breakpoint:"); | 255 InspectorTest.addResult("Setting breakpoint:"); |
| 256 InspectorTest.addSniffer(WebInspector.BreakpointManager.Breakpoi
nt.prototype, "_addResolvedLocation", breakpointResolved); | 256 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBr
eakpoint.prototype, "_addResolvedLocation", breakpointResolved); |
| 257 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); | 257 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); |
| 258 } | 258 } |
| 259 | 259 |
| 260 function breakpointResolved(location) | 260 function breakpointResolved(location) |
| 261 { | 261 { |
| 262 script = WebInspector.debuggerModel.scriptForId(location.scriptI
d); | 262 script = WebInspector.debuggerModel.scriptForId(location.scriptI
d); |
| 263 | 263 |
| 264 dumpBreakpointStorageAndLocations(); | 264 dumpBreakpointStorageAndLocations(); |
| 265 InspectorTest.addResult("Editing source:"); | 265 InspectorTest.addResult("Editing source:"); |
| 266 InspectorTest.replaceInSource(javaScriptSourceFrame, "}", "//}")
; | 266 InspectorTest.replaceInSource(javaScriptSourceFrame, "}", "//}")
; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 283 | 283 |
| 284 function commitFailed(error) | 284 function commitFailed(error) |
| 285 { | 285 { |
| 286 InspectorTest.assertTrue(!!error, "Commit should have failed."); | 286 InspectorTest.assertTrue(!!error, "Commit should have failed."); |
| 287 dumpBreakpointStorageAndLocations(); | 287 dumpBreakpointStorageAndLocations(); |
| 288 InspectorTest.addResult("Undoing source editing:"); | 288 InspectorTest.addResult("Undoing source editing:"); |
| 289 InspectorTest.undoSourceEditing(javaScriptSourceFrame); | 289 InspectorTest.undoSourceEditing(javaScriptSourceFrame); |
| 290 | 290 |
| 291 dumpBreakpointStorageAndLocations(); | 291 dumpBreakpointStorageAndLocations(); |
| 292 InspectorTest.addResult("Committing edited source again:"); | 292 InspectorTest.addResult("Committing edited source again:"); |
| 293 InspectorTest.addSniffer(WebInspector.BreakpointManager.Breakpoi
nt.prototype, "_addResolvedLocation", breakpointResolvedAgain); | 293 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBr
eakpoint.prototype, "_addResolvedLocation", breakpointResolvedAgain); |
| 294 InspectorTest.commitSource(javaScriptSourceFrame); | 294 InspectorTest.commitSource(javaScriptSourceFrame); |
| 295 } | 295 } |
| 296 | 296 |
| 297 function breakpointResolvedAgain() | 297 function breakpointResolvedAgain() |
| 298 { | 298 { |
| 299 dumpBreakpointStorageAndLocations(); | 299 dumpBreakpointStorageAndLocations(); |
| 300 InspectorTest.addResult("Finally removing breakpoint:"); | 300 InspectorTest.addResult("Finally removing breakpoint:"); |
| 301 InspectorTest.removeBreakpoint(javaScriptSourceFrame, 2); | 301 InspectorTest.removeBreakpoint(javaScriptSourceFrame, 2); |
| 302 | 302 |
| 303 dumpBreakpointStorageAndLocations(); | 303 dumpBreakpointStorageAndLocations(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 324 InspectorTest.addResult("Showing script source:"); | 324 InspectorTest.addResult("Showing script source:"); |
| 325 InspectorTest.showUISourceCode(panel.visibleView._uiSourceCode,
didShowScriptSource); | 325 InspectorTest.showUISourceCode(panel.visibleView._uiSourceCode,
didShowScriptSource); |
| 326 } | 326 } |
| 327 | 327 |
| 328 function didShowScriptSource(sourceFrame) | 328 function didShowScriptSource(sourceFrame) |
| 329 { | 329 { |
| 330 javaScriptSourceFrame = sourceFrame; | 330 javaScriptSourceFrame = sourceFrame; |
| 331 uiSourceCode = sourceFrame._uiSourceCode; | 331 uiSourceCode = sourceFrame._uiSourceCode; |
| 332 | 332 |
| 333 InspectorTest.addResult("Setting breakpoint:"); | 333 InspectorTest.addResult("Setting breakpoint:"); |
| 334 InspectorTest.addSniffer(WebInspector.BreakpointManager.Breakpoi
nt.prototype, "_addResolvedLocation", breakpointResolved); | 334 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBr
eakpoint.prototype, "_addResolvedLocation", breakpointResolved); |
| 335 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); | 335 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); |
| 336 } | 336 } |
| 337 | 337 |
| 338 function breakpointResolved(location) | 338 function breakpointResolved(location) |
| 339 { | 339 { |
| 340 script = WebInspector.debuggerModel.scriptForId(location.scriptI
d); | 340 script = WebInspector.debuggerModel.scriptForId(location.scriptI
d); |
| 341 | 341 |
| 342 dumpBreakpointStorageAndLocations(); | 342 dumpBreakpointStorageAndLocations(); |
| 343 liveEditUISourceCode = WebInspector.liveEditSupport.uiSourceCode
ForLiveEdit(uiSourceCode); | 343 liveEditUISourceCode = WebInspector.liveEditSupport.uiSourceCode
ForLiveEdit(uiSourceCode); |
| 344 InspectorTest.showUISourceCode(liveEditUISourceCode, didShowLive
EditScriptSource); | 344 InspectorTest.showUISourceCode(liveEditUISourceCode, didShowLive
EditScriptSource); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 InspectorTest.addResult("Showing script source:"); | 386 InspectorTest.addResult("Showing script source:"); |
| 387 InspectorTest.showUISourceCode(panel.visibleView._uiSourceCode,
didShowScriptSource); | 387 InspectorTest.showUISourceCode(panel.visibleView._uiSourceCode,
didShowScriptSource); |
| 388 } | 388 } |
| 389 | 389 |
| 390 function didShowScriptSource(sourceFrame) | 390 function didShowScriptSource(sourceFrame) |
| 391 { | 391 { |
| 392 javaScriptSourceFrame = sourceFrame; | 392 javaScriptSourceFrame = sourceFrame; |
| 393 uiSourceCode = sourceFrame._uiSourceCode; | 393 uiSourceCode = sourceFrame._uiSourceCode; |
| 394 | 394 |
| 395 InspectorTest.addResult("Setting breakpoint:"); | 395 InspectorTest.addResult("Setting breakpoint:"); |
| 396 InspectorTest.addSniffer(WebInspector.BreakpointManager.Breakpoi
nt.prototype, "_addResolvedLocation", breakpointResolved); | 396 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBr
eakpoint.prototype, "_addResolvedLocation", breakpointResolved); |
| 397 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); | 397 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); |
| 398 } | 398 } |
| 399 | 399 |
| 400 function breakpointResolved(location) | 400 function breakpointResolved(location) |
| 401 { | 401 { |
| 402 script = WebInspector.debuggerModel.scriptForId(location.scriptI
d); | 402 script = WebInspector.debuggerModel.scriptForId(location.scriptI
d); |
| 403 | 403 |
| 404 dumpBreakpointStorageAndLocations(); | 404 dumpBreakpointStorageAndLocations(); |
| 405 liveEditUISourceCode = WebInspector.liveEditSupport.uiSourceCode
ForLiveEdit(uiSourceCode); | 405 liveEditUISourceCode = WebInspector.liveEditSupport.uiSourceCode
ForLiveEdit(uiSourceCode); |
| 406 InspectorTest.showUISourceCode(liveEditUISourceCode, didShowLive
EditScriptSource); | 406 InspectorTest.showUISourceCode(liveEditUISourceCode, didShowLive
EditScriptSource); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 435 ]); | 435 ]); |
| 436 }; | 436 }; |
| 437 | 437 |
| 438 </script> | 438 </script> |
| 439 </head> | 439 </head> |
| 440 <body onload="runTest()"> | 440 <body onload="runTest()"> |
| 441 <p>Tests breakpoints are correctly dimmed and restored in JavaScriptSourceFrame
during live edit.</p> | 441 <p>Tests breakpoints are correctly dimmed and restored in JavaScriptSourceFrame
during live edit.</p> |
| 442 <a href="https://bugs.webkit.org/show_bug.cgi?id=99598">Bug 99598</a> | 442 <a href="https://bugs.webkit.org/show_bug.cgi?id=99598">Bug 99598</a> |
| 443 </body> | 443 </body> |
| 444 </html> | 444 </html> |
| OLD | NEW |