Assertion failed in JSC::createError
[WebKit-https.git] / LayoutTests / inspector / canvas / create-context-webmetal.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="stylesheet" href="resources/create-context-utilities.css">
5 <script src="../../http/tests/inspector/resources/inspector-test.js"></script>
6 <script src="resources/create-context-utilities.js"></script>
7 <script>
8 if (window.internals)
9     window.internals.settings.setWebMetalEnabled(true);
10
11 function test() {
12     let suite = initializeTestSuite("Canvas.CreateContextWebMetal");
13
14     addSimpleTestCase({
15         name: "Attached",
16         expression: `createAttachedCanvas("webmetal")`,
17         contextType: WI.Canvas.ContextType.WebMetal,
18     });
19
20     addSimpleTestCase({
21         name: "Detached",
22         expression: `createDetachedCanvas("webmetal")`,
23         contextType: WI.Canvas.ContextType.WebMetal,
24     });
25
26     addCSSCanvasTestCase(WI.Canvas.ContextType.WebMetal);
27
28     suite.runTestCasesAndFinish();
29 }
30 </script>
31 </head>
32 <body onload="runTest()">
33     <p>Test that CanvasManager tracks creation and destruction of WebMetal canvases.</p>
34 </body>
35 </html>