3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="resources/obfuscated.js"></script>
10 var worker = new Worker("ScriptFormatterWorker.js");
11 var parsedScript = "function first(x,y) { }\n var second = function(y \n , \nz) { }\n Object = function(arg) {\n}\n Object.prototype.functionOnPrototype = function ( a, b , \n c, d , \n e , f ) { function innerFunction1() {\n var innerFunction2 = function(arg1,arg2) {} } }";
13 worker.onmessage = InspectorTest.safeWrap(function(event)
15 InspectorTest.addObject(event.data);
16 InspectorTest.completeTest();
19 worker.onerror = function(event)
21 InspectorTest.addResult("Error in worker: " + event.data);
22 InspectorTest.completeTest();
25 worker.postMessage({ method: "outline", params: { content: parsedScript } });
32 <body onload="runTest()">
33 <p>Tests the script outline extraction functionality.