Handle scaled output canvas correctly

This commit is contained in:
Andreas Hocevar
2020-04-29 17:47:05 +02:00
parent 0549951e9e
commit 781a5443cf
6 changed files with 30 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ function executeInstructions(
const executor = new Executor(0.02, 1, false, builder.finish());
sinon.spy(executor, 'drawLabelWithPointPlacement_');
const replayImageOrLabelStub = sinon.stub(executor, 'replayImageOrLabel_');
executor.execute(context, transform);
executor.execute(context, 1, transform);
expect(executor.drawLabelWithPointPlacement_.callCount).to.be(
expectedDrawTextImageCalls
);