| 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/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 var foo = 'fooValue'; | 6 function startWorker() |
| 7 | 7 { |
| 8 window.eval = "Non-function"; | 8 var worker = new Worker("resources/importScripts-1.js"); |
| 9 } |
| 9 | 10 |
| 10 function test() | 11 function test() |
| 11 { | 12 { |
| 12 InspectorTest.evaluateInConsole("foo", step1); | 13 InspectorTest.waitForConsoleMessages(1, step1); |
| 14 InspectorTest.evaluateInPage("startWorker();"); |
| 13 | 15 |
| 14 function step1() | 16 function step1() |
| 15 { | 17 { |
| 16 InspectorTest.dumpConsoleMessages(); | 18 InspectorTest.dumpConsoleMessages(); |
| 17 InspectorTest.completeTest(); | 19 InspectorTest.completeTest(); |
| 18 } | 20 } |
| 19 } | 21 } |
| 22 |
| 20 </script> | 23 </script> |
| 21 </head> | 24 </head> |
| 22 | |
| 23 <body onload="runTest()"> | 25 <body onload="runTest()"> |
| 24 <p> | 26 <p> |
| 25 Tests that overriding window.eval does not break inspector. | 27 Tests that nested import scripts in worker show correct stack on syntax error. |
| 26 </p> | 28 </p> |
| 27 | |
| 28 </body> | 29 </body> |
| 29 </html> | 30 </html> |
| OLD | NEW |