Web Inspector: Canvas: show WebGPU shader pipelines
[WebKit-https.git] / LayoutTests / inspector / canvas / requestShaderSource.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../http/tests/inspector/resources/inspector-test.js"></script>
5 <script>
6 function test() {
7     let suite = InspectorTest.createAsyncSuite("Canvas.requestShaderSource");
8
9     suite.addTestCase({
10         name: "Canvas.requestShaderSource.ProgramId.Invalid",
11         description: "Invalid program identifiers should cause an error.",
12         test(resolve, reject) {
13             const programId = "INVALID_PROGRAM_ID";
14             const shaderType = "INVALID_SHADER_TYPE";
15             CanvasAgent.requestShaderSource(programId, shaderType, (error) => {
16                 InspectorTest.expectThat(error, "Should produce an error.");
17                 InspectorTest.log("Error: " + error);
18                 resolve();
19             });
20         }
21     });
22
23     suite.runTestCasesAndFinish();
24 }
25 </script>
26 </head>
27 <body onload="runTest()">
28 <p>Common tests for Canvas.requestShaderSource command.</p>
29 </body>
30 </html>