Bug 1857032 [Linux] Test GtkWidget minimal window size range between 100 and 180 pixels on Linux due to CSD decorations size for test_sizetocontent_clamp.html r=ahal

Depends on D191172

Differential Revision: https://phabricator.services.mozilla.com/D191173
This commit is contained in:
stransky 2023-11-06 10:57:46 +00:00
parent fe713ef566
commit f34ff74915
2 changed files with 5 additions and 1 deletions

View File

@ -318,7 +318,6 @@ support-files = [
["test_sizetocontent_clamp.html"]
skip-if = [
"os == 'android'", #Windows can't change size on Android
"display == 'wayland' && os_version == '22.04'" # Bug 1857032
]
["test_toJSON.html"]

View File

@ -35,6 +35,11 @@ var isWin8 = (navigator.userAgent.includes("Windows NT 6.2"));
var innerWidthMin = (isWin8 ? 120 : 100);
var innerWidthMax = (isWin8 ? 125 : 100);
// Window size with CSD decorations is 180 pixels
if (navigator.platform.includes("Linux")) {
innerWidthMax = 180;
}
var isExecuted = false;
function test() {