| 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="resources/obfuscated.js"></script> | 4 <script src="resources/obfuscated.js"></script> |
| 5 | 5 |
| 6 <script id="outline">function first(x,y) { } | 6 <script id="outline">function first(x,y) { } |
| 7 var second = function(y | 7 var second = function(y |
| 8 , | 8 , |
| 9 z) { } | 9 z) { } |
| 10 Object = function(arg) { | 10 Object = function(arg) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 <script> | 48 <script> |
| 49 | 49 |
| 50 function getScriptText() | 50 function getScriptText() |
| 51 { | 51 { |
| 52 return document.querySelector("#outline").textContent; | 52 return document.querySelector("#outline").textContent; |
| 53 } | 53 } |
| 54 | 54 |
| 55 function test() | 55 function test() |
| 56 { | 56 { |
| 57 | 57 |
| 58 var worker = Runtime.startWorker("script_formatter_worker"); | 58 var worker = new WorkerRuntime.Worker("script_formatter_worker"); |
| 59 | 59 |
| 60 worker.onmessage = InspectorTest.safeWrap(function(event) | 60 worker.onmessage = InspectorTest.safeWrap(function(event) |
| 61 { | 61 { |
| 62 InspectorTest.addObject(event.data); | 62 InspectorTest.addObject(event.data); |
| 63 InspectorTest.completeTest(); | 63 InspectorTest.completeTest(); |
| 64 }); | 64 }); |
| 65 | 65 |
| 66 worker.onerror = function(event) | 66 worker.onerror = function(event) |
| 67 { | 67 { |
| 68 InspectorTest.addResult("Error in worker: " + event.data); | 68 InspectorTest.addResult("Error in worker: " + event.data); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 79 </script> | 79 </script> |
| 80 | 80 |
| 81 </head> | 81 </head> |
| 82 | 82 |
| 83 <body onload="runTest()"> | 83 <body onload="runTest()"> |
| 84 <p>Tests the script outline extraction functionality. | 84 <p>Tests the script outline extraction functionality. |
| 85 </p> | 85 </p> |
| 86 | 86 |
| 87 </body> | 87 </body> |
| 88 </html> | 88 </html> |
| OLD | NEW |