| 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-when-paused-no-reveal.js"></script> | 6 <script src="resources/edit-me-when-paused-no-reveal.js"></script> |
| 7 | 7 |
| 8 <script> | 8 <script> |
| 9 | 9 |
| 10 function test() | 10 function test() |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 } | 31 } |
| 32 | 32 |
| 33 function paused(callFrames) | 33 function paused(callFrames) |
| 34 { | 34 { |
| 35 sourceFrame = panel.visibleView; | 35 sourceFrame = panel.visibleView; |
| 36 InspectorTest.removeBreakpoint(sourceFrame, 8); | 36 InspectorTest.removeBreakpoint(sourceFrame, 8); |
| 37 InspectorTest.addSniffer(InspectorTest.debuggerModel, "_didEditScrip
tSource", didEditScriptSource); | 37 InspectorTest.addSniffer(InspectorTest.debuggerModel, "_didEditScrip
tSource", didEditScriptSource); |
| 38 panel._updateLastModificationTimeForTest(); | 38 panel._updateLastModificationTimeForTest(); |
| 39 InspectorTest.replaceInSource(sourceFrame, oldText, newText); | 39 InspectorTest.replaceInSource(sourceFrame, oldText, newText); |
| 40 InspectorTest.addResult("Moving cursor to (0, 0)."); | 40 InspectorTest.addResult("Moving cursor to (0, 0)."); |
| 41 sourceFrame.setSelection(Common.TextRange.createFromLocation(0, 0)); | 41 sourceFrame.setSelection(TextUtils.TextRange.createFromLocation(0, 0
)); |
| 42 InspectorTest.addResult("Committing live edit."); | 42 InspectorTest.addResult("Committing live edit."); |
| 43 InspectorTest.commitSource(sourceFrame); | 43 InspectorTest.commitSource(sourceFrame); |
| 44 } | 44 } |
| 45 | 45 |
| 46 function didEditScriptSource() | 46 function didEditScriptSource() |
| 47 { | 47 { |
| 48 InspectorTest.resumeExecution(); | 48 InspectorTest.resumeExecution(); |
| 49 } | 49 } |
| 50 | 50 |
| 51 function didEvaluateInPage(result) | 51 function didEvaluateInPage(result) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 70 } | 70 } |
| 71 | 71 |
| 72 function paused(callFrames) | 72 function paused(callFrames) |
| 73 { | 73 { |
| 74 sourceFrame = panel.visibleView; | 74 sourceFrame = panel.visibleView; |
| 75 InspectorTest.removeBreakpoint(sourceFrame, 8); | 75 InspectorTest.removeBreakpoint(sourceFrame, 8); |
| 76 InspectorTest.addSniffer(InspectorTest.debuggerModel, "_didEditScrip
tSource", didEditScriptSource); | 76 InspectorTest.addSniffer(InspectorTest.debuggerModel, "_didEditScrip
tSource", didEditScriptSource); |
| 77 panel._updateLastModificationTimeForTest(); | 77 panel._updateLastModificationTimeForTest(); |
| 78 InspectorTest.replaceInSource(sourceFrame, oldText, newText); | 78 InspectorTest.replaceInSource(sourceFrame, oldText, newText); |
| 79 InspectorTest.addResult("Moving cursor to (0, 0)."); | 79 InspectorTest.addResult("Moving cursor to (0, 0)."); |
| 80 sourceFrame.setSelection(Common.TextRange.createFromLocation(0, 0)); | 80 sourceFrame.setSelection(TextUtils.TextRange.createFromLocation(0, 0
)); |
| 81 InspectorTest.addResult("Committing live edit."); | 81 InspectorTest.addResult("Committing live edit."); |
| 82 InspectorTest.commitSource(sourceFrame); | 82 InspectorTest.commitSource(sourceFrame); |
| 83 } | 83 } |
| 84 | 84 |
| 85 function didEditScriptSource() | 85 function didEditScriptSource() |
| 86 { | 86 { |
| 87 InspectorTest.addResult("Stepping into..."); | 87 InspectorTest.addResult("Stepping into..."); |
| 88 InspectorTest.addSniffer(Sources.SourcesView.prototype, "showSourceL
ocation", didRevealAfterStepInto); | 88 InspectorTest.addSniffer(Sources.SourcesView.prototype, "showSourceL
ocation", didRevealAfterStepInto); |
| 89 panel._lastModificationTimeoutPassedForTest(); | 89 panel._lastModificationTimeoutPassedForTest(); |
| 90 InspectorTest.stepInto(); | 90 InspectorTest.stepInto(); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 </script> | 130 </script> |
| 131 | 131 |
| 132 </head> | 132 </head> |
| 133 | 133 |
| 134 <body onload="runTest()"> | 134 <body onload="runTest()"> |
| 135 <p>Tests live edit feature.</p> | 135 <p>Tests live edit feature.</p> |
| 136 | 136 |
| 137 </body> | 137 </body> |
| 138 </html> | 138 </html> |
| OLD | NEW |