mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-11-26 21:53:43 +01:00
test: allow 1px dialog edge
This commit is contained in:
1 parent
00824e0215
commit
6ef9cb66a8
1 file changed
+6
-2
@@ -222,8 +222,12 @@ test("profile creation stays compact and saves basic, protected, and ephemeral p
|
||||
assert.equal(chrome.rowTops.length, 4, JSON.stringify(chrome));
|
||||
assert.equal(new Set(chrome.rowTops).size, 1, JSON.stringify(chrome));
|
||||
// The options fill the row, and the close button ends the header row at
|
||||
// the same edge, centred on the title and the template picker.
|
||||
assert.equal(new Set(chrome.edges).size, 1, JSON.stringify(chrome));
|
||||
// the same edge, centred on the title and the template picker. The
|
||||
// entry scale can still be running here, so edges round within 1px.
|
||||
assert.ok(
|
||||
Math.max(...chrome.edges) - Math.min(...chrome.edges) <= 1,
|
||||
JSON.stringify(chrome),
|
||||
);
|
||||
assert.ok(
|
||||
Math.max(...chrome.headerMiddles) - Math.min(...chrome.headerMiddles) <=
|
||||
1,
|
||||
|
||||
Reference in new issue
Block a user