From bdd43b239cd771dea1ea1a4ad2bb21d13d11dab6 Mon Sep 17 00:00:00 2001 From: Anton Lavrevov Date: Thu, 20 Mar 2025 14:27:08 -0500 Subject: [PATCH] fix test --- test/unit/Text-test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/unit/Text-test.ts b/test/unit/Text-test.ts index eba4159f..f7f76926 100644 --- a/test/unit/Text-test.ts +++ b/test/unit/Text-test.ts @@ -545,7 +545,7 @@ describe('Text', function () { }); // ====================================================== - it.only('multiline with ellipsis', function () { + it('multiline with ellipsis', function () { var stage = addStage(); var layer = new Konva.Layer(); @@ -569,11 +569,10 @@ describe('Text', function () { assert.equal(text.textArr.length, 7); assert.equal(text.textArr[6].text.slice(-1), '…'); - console.log(ayer.getContext().getTrace(false, true)); if (isBrowser) { assert.equal( layer.getContext().getTrace(false, true), - "clearRect(0,0,578,200);save();transform(1,0,0,1,10,10);font=normal normal 14px Arial;textBaseline=middle;textAlign=left;translate(0,0);save();fillStyle=black;fillText(HEADING,18,7);restore();save();fillStyle=black;fillText(,50,21);restore();save();fillStyle=black;fillText(All the world's,7,35);restore();save();fillStyle=black;fillText(a stage,,25,49);restore();save();fillStyle=black;fillText(merely,28,63);restore();save();fillStyle=black;fillText(players. They,7,77);restore();save();fillStyle=black;fillText(have…,27,91);restore();restore();" + "clearRect(0,0,578,200);save();transform(1,0,0,1,10,10);font=normal normal 14px Arial;textBaseline=middle;textAlign=left;translate(0,0);save();fillStyle=black;fillText(HEADING,18,7);restore();save();fillStyle=black;fillText(,50,21);restore();save();fillStyle=black;fillText(All the world's a,1,35);restore();save();fillStyle=black;fillText(stage, merely,7,49);restore();save();fillStyle=black;fillText(players. They,7,63);restore();save();fillStyle=black;fillText(have theirrrrrrr,5,77);restore();save();fillStyle=black;fillText(exits and…,14,91);restore();restore();" ); } });