| 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.js"></script> | 6 <script src="resources/edit-me.js"></script> |
| 7 <script src="resources/edit-me-when-paused.js"></script> | 7 <script src="resources/edit-me-when-paused.js"></script> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 function loadScriptWithSyntaxError() | 10 function loadScriptWithSyntaxError() |
| 11 { | 11 { |
| 12 var script = document.createElement("script"); | 12 var script = document.createElement("script"); |
| 13 script.src = "resources/edit-me-syntax-error.js"; | 13 script.src = "resources/edit-me-syntax-error.js"; |
| 14 document.head.appendChild(script); | 14 document.head.appendChild(script); |
| 15 } | 15 } |
| 16 | 16 |
| 17 function test() | 17 function test() |
| 18 { | 18 { |
| 19 var panel = WebInspector.panels.sources; | 19 var panel = UI.panels.sources; |
| 20 | 20 |
| 21 InspectorTest.runDebuggerTestSuite([ | 21 InspectorTest.runDebuggerTestSuite([ |
| 22 function testLiveEdit(next) | 22 function testLiveEdit(next) |
| 23 { | 23 { |
| 24 InspectorTest.showScriptSource("edit-me.js", didShowScriptSource); | 24 InspectorTest.showScriptSource("edit-me.js", didShowScriptSource); |
| 25 | 25 |
| 26 function didShowScriptSource(sourceFrame) | 26 function didShowScriptSource(sourceFrame) |
| 27 { | 27 { |
| 28 replaceInSource(sourceFrame, "return 0;", "return \"live-edited
string\";", didEditScriptSource); | 28 replaceInSource(sourceFrame, "return 0;", "return \"live-edited
string\";", didEditScriptSource); |
| 29 } | 29 } |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 </script> | 182 </script> |
| 183 | 183 |
| 184 </head> | 184 </head> |
| 185 | 185 |
| 186 <body onload="runTest()"> | 186 <body onload="runTest()"> |
| 187 <p>Tests live edit feature.</p> | 187 <p>Tests live edit feature.</p> |
| 188 | 188 |
| 189 </body> | 189 </body> |
| 190 </html> | 190 </html> |
| OLD | NEW |