Release v2.16.6: fix slide animation controls
This commit is contained in:
1 parent
5b5d5da511
commit
03a27c8e25
8 files changed
+30
-5
No files matched your search
@@ -268,6 +268,7 @@ test('layout and animation modals use the same preview and properties column siz
|
||||
assert.match(css, /\.slide-layout-body\s*\{[^}]*grid-template-columns:\s*minmax\(0,\s*1fr\)\s+21rem;/);
|
||||
assert.match(css, /\.slide-animation-body\s*\{[^}]*grid-template-columns:\s*minmax\(0,\s*1fr\)\s+21rem;/);
|
||||
assert.match(css, /\.slide-animation-body\s*\{[^}]*gap:\s*1\.25rem;/);
|
||||
assert.match(css, /\.region-field-grid--animation\s+\[data-animation-preset\]\[hidden\]\s*\{\s*display:\s*none\s*!important;/);
|
||||
assert.match(css, /\.slide-animation-preview-panel\s*\{[^}]*container-type:\s*size;[^}]*min-height:\s*0;/);
|
||||
assert.match(css, /#slide-animation-preview\s*\{[^}]*height:\s*100%;/);
|
||||
assert.match(css, /#slide-animation-preview \.slide-preview-stage\s*\{[^}]*width:\s*min\(100%,\s*calc\(100cqh\s*\*\s*var\(--slide-layout-ratio,/);
|
||||
@@ -281,6 +282,10 @@ test('advanced animation section uses compact heading and card spacing', functio
|
||||
});
|
||||
|
||||
test('shared animation controls round-trip advanced settings with template normalization', function () {
|
||||
const animationPresets = require('../src/web/public/js/templates/animation-presets.js');
|
||||
assert.ok(animationPresets.advanced.outro.some((preset) => preset.value === 'hinge'));
|
||||
assert.ok(!animationPresets.advanced.attentionSeekers.some((preset) => preset.value === 'hinge'));
|
||||
|
||||
const context = { window: {} };
|
||||
for (const file of ['templates/animation-presets.js', 'templates/template-designer-utils.js', 'shared/region-animation-controls.js']) {
|
||||
vm.runInNewContext(fs.readFileSync(require.resolve('../src/web/public/js/' + file), 'utf8'), context);
|
||||
|
||||
Reference in new issue
Block a user