OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 var worker1; | 6 var worker1; |
7 var worker2; | 7 var worker2; |
8 | 8 |
9 function startWorkers() | 9 function startWorkers() |
10 { | 10 { |
11 worker1 = new Worker("resources/worker-with-throw.js"); | 11 worker1 = new Worker("resources/worker-with-throw.js"); |
12 worker1.onerror = function(e) { | 12 worker1.onerror = function(e) { |
13 e.preventDefault(); | 13 e.preventDefault(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 InspectorTest.eventHandler["Target.detachedFromTarget"] = undefined; | 66 InspectorTest.eventHandler["Target.detachedFromTarget"] = undefined; |
67 workerTerminated = true; | 67 workerTerminated = true; |
68 if (messageReceived && workerTerminated) | 68 if (messageReceived && workerTerminated) |
69 InspectorTest.completeTest(); | 69 InspectorTest.completeTest(); |
70 } | 70 } |
71 } | 71 } |
72 </script> | 72 </script> |
73 </head> | 73 </head> |
74 <body onload="runTest()">Tests that console message from worker contains stack t
race.</body> | 74 <body onload="runTest()">Tests that console message from worker contains stack t
race.</body> |
75 </html> | 75 </html> |
OLD | NEW |