mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-12 04:26:57 +00:00
fix(ui): harden download properties window
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import {
|
||||
getWindowControlRailWidth,
|
||||
getWindowControlRevealOffset,
|
||||
resolveWindowControlSide,
|
||||
resolveWindowControlStyle,
|
||||
@@ -37,6 +38,13 @@ describe('resolveWindowControlStyle', () => {
|
||||
expect(getWindowControlRevealOffset('minimal')).toBe(104);
|
||||
});
|
||||
|
||||
it('reports the shared titlebar rail width for each control style', () => {
|
||||
expect(getWindowControlRailWidth('macos')).toBe(60);
|
||||
expect(getWindowControlRailWidth('windows')).toBe(138);
|
||||
expect(getWindowControlRailWidth('gnome')).toBe(104);
|
||||
expect(getWindowControlRailWidth('minimal')).toBe(74);
|
||||
});
|
||||
|
||||
it('resolves automatic control placement from the effective document direction', () => {
|
||||
expect(resolveWindowControlSide('auto', 'ltr')).toBe('left');
|
||||
expect(resolveWindowControlSide('auto', 'rtl')).toBe('right');
|
||||
|
||||
Reference in New Issue
Block a user