blob: 4c59efc456779802303c967ecbed4e7c5ad8b899 [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/recording-bitmaprenderer.js"></script>
<script>
function test() {
let suite = InspectorTest.createAsyncSuite("Canvas.recordingBitmapRenderer");
suite.addTestCase({
name: "Canvas.recordingBitmapRenderer.memoryLimit",
description: "Check that the recording is stopped when it reaches the memory limit.",
test(resolve, reject) {
startRecording(WI.Canvas.ContextType.BitmapRenderer, resolve, reject, {memoryLimit: 10});
},
});
suite.runTestCasesAndFinish();
}
</script>
</head>
<body onload="load()">
<p>Test that CanvasManager is able to record actions made to BitmapRenderer canvas contexts.</p>
</body>
</html>