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