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 function importWorklet() | 6 function importWorklet() |
7 { | 7 { |
8 paintWorklet.import('console-worklet-script.js'); | 8 paintWorklet.addModule('console-worklet-script.js'); |
9 } | 9 } |
10 | 10 |
11 function test() | 11 function test() |
12 { | 12 { |
13 InspectorTest.waitForConsoleMessages(3, finish); | 13 InspectorTest.waitForConsoleMessages(3, finish); |
14 InspectorTest.evaluateInPage("importWorklet();"); | 14 InspectorTest.evaluateInPage("importWorklet();"); |
15 | 15 |
16 function finish() | 16 function finish() |
17 { | 17 { |
18 InspectorTest.dumpConsoleMessages(); | 18 InspectorTest.dumpConsoleMessages(); |
19 InspectorTest.completeTest(); | 19 InspectorTest.completeTest(); |
20 } | 20 } |
21 } | 21 } |
22 </script> | 22 </script> |
23 </head> | 23 </head> |
24 <body onload="runTest()"> | 24 <body onload="runTest()"> |
25 <p>Tests console output from PaintWorklet.</p> | 25 <p>Tests console output from PaintWorklet.</p> |
26 </body> | 26 </body> |
27 </html> | 27 </html> |
OLD | NEW |