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-syntax-error.js"></script> | 7 <script src="resources/edit-me-syntax-error.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 | 11 |
12 function test() | 12 function test() |
13 { | 13 { |
14 var panel = WebInspector.showPanel("scripts"); | 14 var panel = WebInspector.showPanel("sources"); |
15 | 15 |
16 InspectorTest.runDebuggerTestSuite([ | 16 InspectorTest.runDebuggerTestSuite([ |
17 function testLiveEdit(next) | 17 function testLiveEdit(next) |
18 { | 18 { |
19 InspectorTest.showScriptSource("edit-me.js", didShowScriptSource); | 19 InspectorTest.showScriptSource("edit-me.js", didShowScriptSource); |
20 | 20 |
21 function didShowScriptSource(sourceFrame) | 21 function didShowScriptSource(sourceFrame) |
22 { | 22 { |
23 replaceInSource(sourceFrame, "return 0;", "return \"live-edited
string\";", didEditScriptSource); | 23 replaceInSource(sourceFrame, "return 0;", "return \"live-edited
string\";", didEditScriptSource); |
24 } | 24 } |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 </script> | 134 </script> |
135 | 135 |
136 </head> | 136 </head> |
137 | 137 |
138 <body onload="runTest()"> | 138 <body onload="runTest()"> |
139 <p>Tests live edit feature.</p> | 139 <p>Tests live edit feature.</p> |
140 | 140 |
141 </body> | 141 </body> |
142 </html> | 142 </html> |
OLD | NEW |