blob: 2bd5d744a7b6174857628ca0c311e3b78d23478f [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="resources/create-context-utilities.css">
<script src="../../http/tests/inspector/resources/inspector-test.js"></script>
<script src="resources/create-context-utilities.js"></script>
<script>
function test() {
let suite = initializeTestSuite("Canvas.CreateContextWebGL");
addSimpleTestCase({
name: "Attached",
expression: `createAttachedCanvas("webgl")`,
contextType: WI.Canvas.ContextType.WebGL,
});
addSimpleTestCase({
name: "Detached",
expression: `createDetachedCanvas("webgl")`,
contextType: WI.Canvas.ContextType.WebGL,
});
addCSSCanvasTestCase(WI.Canvas.ContextType.WebGL);
suite.runTestCasesAndFinish();
}
</script>
</head>
<body onload="runTest()">
<p>Test that CanvasManager tracks creation and destruction of WebGL canvases.</p>
</body>
</html>