diff options
Diffstat (limited to 'scripts/theme-studio/test-app-core.mjs')
| -rw-r--r-- | scripts/theme-studio/test-app-core.mjs | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/scripts/theme-studio/test-app-core.mjs b/scripts/theme-studio/test-app-core.mjs index b39eb44d3..d5f015d93 100644 --- a/scripts/theme-studio/test-app-core.mjs +++ b/scripts/theme-studio/test-app-core.mjs @@ -7,7 +7,7 @@ import assert from 'node:assert/strict'; import { readFileSync } from 'node:fs'; import { fileURLToPath } from 'node:url'; import { - nameToHex, migrateLegacyFace, legacyStyleOn, toggleLegacyStyle, normalizePkgFace, buildPkgmap, packagesForExport, mergePackagesInto, effResolve, resolveSyntaxFg, resolveUiAttr, dropdownRowTextColor, paletteOptionList, spanNeighborHex, slugify, + nameToHex, migrateLegacyFace, normalizePkgFace, buildPkgmap, packagesForExport, mergePackagesInto, effResolve, resolveSyntaxFg, resolveUiAttr, dropdownRowTextColor, paletteOptionList, spanNeighborHex, slugify, clearPalettePlan, deletePaletteColumnPlan, groundColumnMembersFromPalette, areAllLocked, lockToggleLabel, toggleLockSet, galleryModel, appViewKeysSorted, faceBoxNonDefaults, stepViewIndex, } from './app-core.js'; @@ -662,21 +662,6 @@ test('migrateLegacyFace: Boundary — a new-shape face passes through unchanged assert.deepEqual(migrateLegacyFace(migrateLegacyFace(f)), f); }); -test('legacyStyleOn / toggleLegacyStyle: Normal — bridge the B/I/U/S buttons to the model', () => { - const f = { weight: null, slant: null, underline: null, strike: null }; - assert.equal(legacyStyleOn(f, 'bold'), false); - toggleLegacyStyle(f, 'bold'); assert.equal(f.weight, 'bold'); assert.equal(legacyStyleOn(f, 'bold'), true); - toggleLegacyStyle(f, 'bold'); assert.equal(f.weight, null); - toggleLegacyStyle(f, 'italic'); assert.equal(f.slant, 'italic'); - toggleLegacyStyle(f, 'underline'); assert.deepEqual(f.underline, { style: 'line', color: null }); - toggleLegacyStyle(f, 'underline'); assert.equal(f.underline, null); - toggleLegacyStyle(f, 'strike'); assert.deepEqual(f.strike, { color: null }); -}); - -test('legacyStyleOn: Boundary — a non-bold weight reads the bold button as off', () => { - assert.equal(legacyStyleOn({ weight: 'semibold' }, 'bold'), false); -}); - test('normalizePkgFace: Normal — carries the additive attribute model', () => { const f = normalizePkgFace({ fg: 'blue', 'distant-fg': '#222222', family: 'Iosevka', |
