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