| 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> | 5 <script> |
| 6 function startWorker() | 6 function startWorker() |
| 7 { | 7 { |
| 8 var workerScript = "postMessage('Done.');"; | 8 var workerScript = "postMessage('Done.');"; |
| 9 var blob = new Blob([workerScript], { type: "text/javascript" }); | 9 var blob = new Blob([workerScript], { type: "text/javascript" }); |
| 10 var worker = new Worker(URL.createObjectURL(blob)); | 10 var worker = new Worker(URL.createObjectURL(blob)); |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 workspace.removeEventListener(WebInspector.Workspace.Events.UISo
urceCodeRemoved, uiSourceCodeRemoved); | 156 workspace.removeEventListener(WebInspector.Workspace.Events.UISo
urceCodeRemoved, uiSourceCodeRemoved); |
| 157 | 157 |
| 158 next(); | 158 next(); |
| 159 } | 159 } |
| 160 }, | 160 }, |
| 161 | 161 |
| 162 function testEvaluate(next) | 162 function testEvaluate(next) |
| 163 { | 163 { |
| 164 var uiSourceCode1; | 164 var uiSourceCode1; |
| 165 var uiSourceCode2; | 165 var uiSourceCode2; |
| 166 var uiSoruceCode3; | 166 var uiSourceCode3; |
| 167 var context = WebInspector.context.flavor(WebInspector.ExecutionCont
ext); | 167 var context = WebInspector.context.flavor(WebInspector.ExecutionCont
ext); |
| 168 | 168 |
| 169 resetSnippetsSettings(); | 169 resetSnippetsSettings(); |
| 170 var snippetScriptMapping = WebInspector.scriptSnippetModel.snippetSc
riptMapping(WebInspector.targetManager.targets()[0]); | 170 var snippetScriptMapping = WebInspector.scriptSnippetModel.snippetSc
riptMapping(WebInspector.targetManager.targets()[0]); |
| 171 | 171 |
| 172 WebInspector.scriptSnippetModel.project().createFile("", null, "", s
tep2.bind(this)); | 172 WebInspector.scriptSnippetModel.project().createFile("", null, "", s
tep2.bind(this)); |
| 173 | 173 |
| 174 function step2(uiSourceCode) | 174 function step2(uiSourceCode) |
| 175 { | 175 { |
| 176 uiSourceCode1 = uiSourceCode; | 176 uiSourceCode1 = uiSourceCode; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 } | 306 } |
| 307 } | 307 } |
| 308 ]); | 308 ]); |
| 309 }; | 309 }; |
| 310 </script> | 310 </script> |
| 311 </head> | 311 </head> |
| 312 <body onload="runTest()"> | 312 <body onload="runTest()"> |
| 313 <p>Tests script snippet model.</p> | 313 <p>Tests script snippet model.</p> |
| 314 </body> | 314 </body> |
| 315 </html> | 315 </html> |
| OLD | NEW |