blob: 1dac3de59bc48ebca13db86e176f44538d4bdf7c [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 = InspectorTest.CreateContextUtilities.initializeTestSuite("Canvas.CreateContextBitmapRenderer");
InspectorTest.CreateContextUtilities.addSimpleTestCase({
name: "Attached",
expression: `createAttachedCanvas("bitmaprenderer")`,
contextType: WI.Canvas.ContextType.BitmapRenderer,
});
InspectorTest.CreateContextUtilities.addSimpleTestCase({
name: "Detached",
expression: `createDetachedCanvas("bitmaprenderer")`,
contextType: WI.Canvas.ContextType.BitmapRenderer,
});
suite.runTestCasesAndFinish();
}
</script>
</head>
<body onload="runTest()">
<p>Test that CanvasManager tracks creation and destruction of BitmapRenderer canvases.</p>
</body>
</html>