From f34ff74915cffc6f7c70ecac04887b6d0a9278a1 Mon Sep 17 00:00:00 2001 From: stransky Date: Mon, 6 Nov 2023 10:57:46 +0000 Subject: [PATCH] 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 --- dom/tests/mochitest/bugs/mochitest.toml | 1 - dom/tests/mochitest/bugs/test_sizetocontent_clamp.html | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dom/tests/mochitest/bugs/mochitest.toml b/dom/tests/mochitest/bugs/mochitest.toml index 5859283e5ce5..7484ce06c095 100644 --- a/dom/tests/mochitest/bugs/mochitest.toml +++ b/dom/tests/mochitest/bugs/mochitest.toml @@ -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"] diff --git a/dom/tests/mochitest/bugs/test_sizetocontent_clamp.html b/dom/tests/mochitest/bugs/test_sizetocontent_clamp.html index 745c96e6ccac..3ed3f55ec6db 100644 --- a/dom/tests/mochitest/bugs/test_sizetocontent_clamp.html +++ b/dom/tests/mochitest/bugs/test_sizetocontent_clamp.html @@ -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() {