mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
release: prepare v0.2.8
This commit is contained in:
1 parent
4375f01d05
commit
54e154be1a
36 files changed
+1158
-195
No files matched your search
@@ -34,6 +34,30 @@ test("device menu width stays inside narrow viewport bounds", () => {
|
||||
);
|
||||
});
|
||||
|
||||
test("device menu grows to fit long device labels when there is room", () => {
|
||||
assert.deepEqual(
|
||||
placeAudioDeviceMenu(
|
||||
{ top: 20, bottom: 40, left: 40, width: 180 },
|
||||
{ width: 1280, height: 720 },
|
||||
120,
|
||||
420,
|
||||
),
|
||||
{ top: 44, left: 40, width: 420, maxHeight: 120 },
|
||||
);
|
||||
});
|
||||
|
||||
test("device menu caps long labels to the viewport and allows them to wrap", () => {
|
||||
assert.deepEqual(
|
||||
placeAudioDeviceMenu(
|
||||
{ top: 20, bottom: 40, left: 200, width: 90 },
|
||||
{ width: 300, height: 720 },
|
||||
320,
|
||||
600,
|
||||
),
|
||||
{ top: 44, left: 8, width: 284, maxHeight: 240 },
|
||||
);
|
||||
});
|
||||
|
||||
test("device menu preserves the skin-defined natural height for short lists", () => {
|
||||
assert.deepEqual(
|
||||
placeAudioDeviceMenu({ top: 80, bottom: 120, left: 40, width: 280 }, { width: 1280, height: 720 }, 84),
|
||||
|
||||
Reference in new issue
Block a user