Skip to content

176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.

test: check that the player switches start unchecked

matinef4970253dcc
diff --git a/tests/pages.test.js b/tests/pages.test.js
index 057870a2..0e00938d 100644
--- a/tests/pages.test.js
+++ b/tests/pages.test.js
@@ -94,6 +94,8 @@ for (const d of steps) {
for (const marker of ['data-hb-loop', 'data-hb-slowmo']) {
assert.ok(count(html, marker) <= 1, `at most one ${marker}`);
assert.equal(count(player, marker), count(html, marker), `${marker} is in the player bar`);
+ const input = (html.match(new RegExp(`<input[^>]*${marker}[^>]*>`)) || [''])[0];
+ assert.ok(!/\schecked\b/.test(input), `${marker} switch starts unchecked`);
}
const tryIt = between(html, '<section class="hb-step hb-try"', '<section class="hb-step hb-prompt-step"');
const main = between(tryIt, '<div class="hb-settings">', '<details class="hb-options">');