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="resources/obfuscated.js"></script> | 5 <script src="resources/obfuscated.js"></script> |
6 | 6 |
7 <script> | 7 <script> |
8 | 8 |
9 var test = function() | 9 var test = function() |
10 { | 10 { |
11 var panel = WebInspector.panels.sources; | 11 var panel = WebInspector.panels.sources; |
12 var worker = Runtime.startWorker("script_formatter_worker"); | 12 var worker = new Worker("script_formatter_worker/ScriptFormatterWorker.js"); |
13 | 13 |
14 InspectorTest.runDebuggerTestSuite([ | 14 InspectorTest.runDebuggerTestSuite([ |
15 function testScriptFormatterWorker(next) | 15 function testScriptFormatterWorker(next) |
16 { | 16 { |
17 worker.onmessage = InspectorTest.safeWrap(function(event) | 17 worker.onmessage = InspectorTest.safeWrap(function(event) |
18 { | 18 { |
19 InspectorTest.assertEquals("var x = 0\n", event.data.content); | 19 InspectorTest.assertEquals("var x = 0\n", event.data.content); |
20 next(); | 20 next(); |
21 }); | 21 }); |
22 | 22 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 </script> | 97 </script> |
98 | 98 |
99 </head> | 99 </head> |
100 | 100 |
101 <body onload="runTest()"> | 101 <body onload="runTest()"> |
102 <p>Tests the script formatting functionality. | 102 <p>Tests the script formatting functionality. |
103 </p> | 103 </p> |
104 | 104 |
105 </body> | 105 </body> |
106 </html> | 106 </html> |
OLD | NEW |