blob: 3763709463ddc6985f118c00e00231c3b1f3e2dd [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../http/tests/inspector/resources/inspector-test.js"></script>
<script src="resources/recording-utilities.js"></script>
<script src="resources/shaderProgram-utilities-webgl.js"></script>
<script id="vertex-shader" type="x-shader/x-vertex">
attribute vec4 test;
void main(void) {
gl_Position = test;
}
</script>
<script id="fragment-shader" type="x-shader/x-fragment">
precision mediump float;
void main(void) {
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}
</script>
<script src="resources/recording-webgl2.js"></script>
<script>
function test() {
let suite = InspectorTest.createAsyncSuite("Canvas.recordingWebGL2");
suite.addTestCase({
name: "Canvas.recordingWebGL2.Console",
description: "Check that a recording can be triggered by console.record().",
test(resolve, reject) {
consoleRecord(WI.Canvas.ContextType.WebGL2, resolve, reject);
},
});
suite.runTestCasesAndFinish();
}
</script>
</head>
<body onload="load()">
<p>Test that CanvasManager is able to record actions made to WebGL2 canvas contexts.</p>
</body>
</html>