Files
DankMaterialShell/quickshell/tests/settings-widget-padding.test.mjs
bbedward bb20528f68 popouts: grow surfaces at their origin
cc: slide grid with the detail page
settings: tweak appearance header style
settings: tweak sidebar profile style
2026-09-21 15:47:01 -04:00

15 lines
706 B
JavaScript

import assert from "node:assert/strict";
import test from "node:test";
import { loadScript } from "./qml-script.mjs";
const store = loadScript(new URL("../Common/settings/SettingsStore.js", import.meta.url));
test("removed widget padding becomes zero padding", () => {
const migrated = store.migrateToVersion({
configVersion: 24,
barConfigs: [{ id: "a", removeWidgetPadding: true, widgetPadding: 12 }, { id: "b", removeWidgetPadding: false, widgetPadding: 6 }, { id: "c" }]
}, 27);
assert.equal(migrated.configVersion, 27);
assert.deepEqual(JSON.parse(JSON.stringify(migrated.barConfigs)), [{ id: "a", widgetPadding: 0 }, { id: "b", widgetPadding: 6 }, { id: "c" }]);
});