| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../inspector-test.js"></script> | 3 <script src="../../inspector-test.js"></script> |
| 4 <script src="../../debugger-test.js"></script> | 4 <script src="../../debugger-test.js"></script> |
| 5 <script src="../../console-test.js"></script> | 5 <script src="../../console-test.js"></script> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function installWorker() | 9 function importWorklet() |
| 10 { | 10 { |
| 11 new Worker("resources/worker-source.js"); | 11 animationWorklet.import("resources/worker-source.js"); |
| 12 } | 12 } |
| 13 | 13 |
| 14 function test() | 14 function test() |
| 15 { | 15 { |
| 16 InspectorTest.startDebuggerTest(step1); | 16 InspectorTest.startDebuggerTest(step1); |
| 17 | 17 |
| 18 function step1() | 18 function step1() |
| 19 { | 19 { |
| 20 InspectorTest.evaluateInPage("installWorker()"); | 20 InspectorTest.evaluateInPage("importWorklet()"); |
| 21 InspectorTest.waitUntilPaused(paused); | 21 InspectorTest.waitUntilPaused(paused); |
| 22 } | 22 } |
| 23 | 23 |
| 24 function paused(callFrames) | 24 function paused(callFrames) |
| 25 { | 25 { |
| 26 InspectorTest.captureStackTrace(callFrames); | 26 InspectorTest.captureStackTrace(callFrames); |
| 27 InspectorTest.resumeExecution(InspectorTest.completeDebuggerTest); | 27 InspectorTest.resumeExecution(InspectorTest.completeDebuggerTest); |
| 28 } | 28 } |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 </script> | 31 </script> |
| 32 | 32 |
| 33 </head> | 33 </head> |
| 34 | 34 |
| 35 <body onload="runTest()"> | 35 <body onload="runTest()"> |
| 36 <p>Tests stopping in debugger in the worker.</p> | 36 <p>Tests stopping in debugger in the animation worklet.</p> |
| 37 </body> | 37 </body> |
| 38 </html> | 38 </html> |
| OLD | NEW |