Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / sources / debugger / script-extract-outline.html
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="resources/obfuscated.js"></script>
5
6 <script>
7
8 var test = function()
9 {
10     var worker = Runtime.startWorker("script_formatter_worker");
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) {} } }";
12
13     worker.onmessage = InspectorTest.safeWrap(function(event)
14     {
15         InspectorTest.addObject(event.data);
16         InspectorTest.completeTest();
17     });
18
19     worker.onerror = function(event)
20     {
21         InspectorTest.addResult("Error in worker: " + event.data);
22         InspectorTest.completeTest();
23     };
24
25     worker.postMessage({ method: "javaScriptOutline", params: { content: parsedScript } });
26 }
27
28 </script>
29
30 </head>
31
32 <body onload="runTest()">
33 <p>Tests the script outline extraction functionality.
34 </p>
35
36 </body>
37 </html>