Unreviewed, rolling out r250114.
[WebKit-https.git] / LayoutTests / inspector / canvas / recording-webgl-frameCount.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../http/tests/inspector/resources/inspector-test.js"></script>
5 <script src="resources/recording-utilities.js"></script>
6 <script src="resources/shaderProgram-utilities.js"></script>
7 <script id="vertex-shader" type="x-shader/x-vertex">
8     attribute vec4 test;
9     void main(void) {
10         gl_Position = test;
11     }
12 </script>
13 <script id="fragment-shader" type="x-shader/x-fragment">
14     precision mediump float;
15
16     void main(void) {
17         gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
18     }
19 </script>
20 <script src="resources/recording-webgl.js"></script>
21 <script>
22 function test() {
23     let suite = InspectorTest.createAsyncSuite("Canvas.recordingWebGL");
24
25     suite.addTestCase({
26         name: "Canvas.recordingWebGL.singleFrame",
27         description: "Check that the recording is stopped after a single frame.",
28         test(resolve, reject) {
29             startRecording(WI.Canvas.ContextType.WebGL, resolve, reject, {frameCount: 1});
30         },
31         timeout: -1,
32     });
33
34     suite.runTestCasesAndFinish();
35 }
36 </script>
37 </head>
38 <body onload="load()">
39     <p>Test that CanvasManager is able to record actions made to WebGL canvas contexts.</p>
40 </body>
41 </html>