mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-07-26 12:08:15 +00:00
Update theme test after film bird removal
The test still required 4 foreground film birds, but commit 16cb138
deliberately removed them all; now it guards against remnants instead.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -55,15 +55,9 @@ for (const [file, source] of runtimeCssActivation) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const heroBirds = template.match(/class="film-hero-bird"/g) || [];
|
// Film birds were removed entirely (commit 16cb138); guard against remnants
|
||||||
const leftWings = template.match(/class="film-bird-wing film-bird-wing-left"/g) || [];
|
if (/film-hero-bird|film-bird-wing|film-birds/.test(template) || /filmBirdGlide|filmWingFlap/.test(demoCss)) {
|
||||||
const rightWings = template.match(/class="film-bird-wing film-bird-wing-right"/g) || [];
|
throw new Error('Film birds were removed from the demo mockups; no bird markup or animations may remain');
|
||||||
if (heroBirds.length !== 4 || leftWings.length !== heroBirds.length || rightWings.length !== heroBirds.length) {
|
|
||||||
throw new Error('Every foreground film bird must have independently animated left and right wings');
|
|
||||||
}
|
|
||||||
if (!/\.film-hero-bird-drift\s*\{[^}]*animation:\s*filmBirdGlide/s.test(demoCss) ||
|
|
||||||
!/\.film-bird-wing\s*\{[^}]*animation:\s*filmWingFlap/s.test(demoCss)) {
|
|
||||||
throw new Error('Foreground film birds must glide and flap without waiting for video playback');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const gettingStartedLightSurfaces = [
|
const gettingStartedLightSurfaces = [
|
||||||
|
|||||||
Reference in New Issue
Block a user