动态缩略图修改
This commit is contained in:
1 parent
a429ebbe6b
commit
4ff35ce352
12 files changed
+19
-15
No files matched your search
@@ -49,6 +49,10 @@ for (const root of ['.', 'release/UNIVERSAL_SpineViewer']) {
|
||||
assert.match(script, /const targetBytes = maxKilobytes \* 1024/);
|
||||
assert.match(script, /if \(buffer\.length <= targetBytes\) return/);
|
||||
assert.match(script, /count: 2, bits: 3, block: 12/);
|
||||
assert.match(script, /count: 2, bits: 2, block: 1, size: 32/);
|
||||
assert.match(script, /const outputSize = profile\.size \|\| size/);
|
||||
assert.match(script, /return smallest;/);
|
||||
assert.doesNotMatch(script, /throw new Error\(t\('viewer\.animatedCannotFit'/);
|
||||
assert.match(script, /extension: '\.png'/);
|
||||
assert.match(script, /const totalFrames = Math\.max\(1, frameOf\(animationLength\)\)/);
|
||||
assert.match(script, /start: startFrame \/ FPS/);
|
||||
@@ -61,4 +65,4 @@ for (const root of ['.', 'release/UNIVERSAL_SpineViewer']) {
|
||||
assert.match(html, /id="animatedThumbDialog"/);
|
||||
}
|
||||
|
||||
console.log('PASS: APNG structure, fixed 400x400 output, quality profiles and right-click wiring');
|
||||
console.log('PASS: APNG structure, 400px maximum with size fallback, byte limit and right-click wiring');
|
||||
Reference in new issue
Block a user