blob: 1319def7ad99dad5b8cacceb6ec3432e0d1f1c04 [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-2d.js"></script>
<script>
function test() {
let suite = InspectorTest.createAsyncSuite("Canvas.recording2D");
suite.addTestCase({
name: "Canvas.recording2D.singleFrame",
description: "Check that the recording is stopped after a single frame.",
test(resolve, reject) {
startRecording(WI.Canvas.ContextType.Canvas2D, resolve, reject, {frameCount: 1});
},
timeout: -1,
});
suite.runTestCasesAndFinish();
}
</script>
</head>
<body onload="load()">
<p>Test that CanvasManager is able to record actions made to 2D canvas contexts.</p>
</body>
</html>