From 53b8bbb732149a8c64fe695272942048a751dbfb Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Tue, 22 Oct 2024 22:27:57 +0200 Subject: [PATCH] snapshot + add markcss in test runtime --- test/__snapshots__/examples.test.mjs.snap | 21 +++++++++++++++++++++ test/runtime.mjs | 3 +++ 2 files changed, 24 insertions(+) diff --git a/test/__snapshots__/examples.test.mjs.snap b/test/__snapshots__/examples.test.mjs.snap index a3419e98d..3ad6ea01e 100644 --- a/test/__snapshots__/examples.test.mjs.snap +++ b/test/__snapshots__/examples.test.mjs.snap @@ -4551,6 +4551,27 @@ exports[`runs examples > example "lsize" example index 0 1`] = ` ] `; +exports[`runs examples > example "markcss" example index 0 1`] = ` +[ + "[ 0/1 → 1/4 | note:c ]", + "[ 1/4 → 1/2 | note:a ]", + "[ 1/2 → 3/4 | note:f ]", + "[ 3/4 → 1/1 | note:e ]", + "[ 1/1 → 5/4 | note:c ]", + "[ 5/4 → 3/2 | note:a ]", + "[ 3/2 → 7/4 | note:f ]", + "[ 7/4 → 2/1 | note:e ]", + "[ 2/1 → 9/4 | note:c ]", + "[ 9/4 → 5/2 | note:a ]", + "[ 5/2 → 11/4 | note:f ]", + "[ 11/4 → 3/1 | note:e ]", + "[ 3/1 → 13/4 | note:c ]", + "[ 13/4 → 7/2 | note:a ]", + "[ 7/2 → 15/4 | note:f ]", + "[ 15/4 → 4/1 | note:e ]", +] +`; + exports[`runs examples > example "mask" example index 0 1`] = ` [ "[ 0/1 → 1/4 | note:c ]", diff --git a/test/runtime.mjs b/test/runtime.mjs index 19b716274..a8f37a34e 100644 --- a/test/runtime.mjs +++ b/test/runtime.mjs @@ -134,6 +134,9 @@ strudel.Pattern.prototype._pitchwheel = function () { strudel.Pattern.prototype._pianoroll = function () { return this; }; +strudel.Pattern.prototype.markcss = function () { + return this; +}; const uiHelpersMocked = { backgroundImage: id,