summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPiotr Wierciński <piotr.wiercinski@qt.io>2024-03-05 15:13:07 +0100
committerPiotr Wierciński <piotr.wiercinski@qt.io>2024-03-19 11:51:00 +0100
commitcd2e1b0b4bc2600e737d4becd825c639a689f2f7 (patch)
tree334fcbb7d1b22c77487643d2bb37de15fcbc7c16 /tests
parent476e503cfbc42b8ea9e94a1f536d443fc8ce69c0 (diff)
wasm: Fix minimum and default window sizesHEADdev
Remove minimum window size restriction. User should be able to change minimum window size if needed. Set default size to 160x160 to match other platforms. Change-Id: Ic199fc34982021ba38d631476fbb1c51370b2e8e Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/wasm/selenium/qwasmwindow.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/wasm/selenium/qwasmwindow.py b/tests/auto/wasm/selenium/qwasmwindow.py
index 69934b1db5..39147b7a0f 100644
--- a/tests/auto/wasm/selenium/qwasmwindow.py
+++ b/tests/auto/wasm/selenium/qwasmwindow.py
@@ -28,7 +28,6 @@ class WidgetTestCase(unittest.TestCase):
self.addTypeEqualityFunc(Rect, assert_rects_equal)
def test_window_resizing(self):
- defaultWindowMinSize = 100
screen = Screen(self._driver, ScreenPosition.FIXED,
x=0, y=0, width=600, height=600)
window = Window(parent=screen, rect=Rect(x=100, y=100, width=200, height=200))
@@ -59,7 +58,7 @@ class WidgetTestCase(unittest.TestCase):
self.assertEqual(window.rect, Rect(x=75, y=95, width=215, height=230))
window.drag(Handle.BOTTOM_RIGHT, direction=UP(150) + LEFT(150))
- self.assertEqual(window.rect, Rect(x=75, y=95, width=defaultWindowMinSize, height=defaultWindowMinSize))
+ self.assertEqual(window.rect, Rect(x=75, y=95, width=65, height=80))
def test_cannot_resize_over_screen_top_edge(self):
screen = Screen(self._driver, ScreenPosition.FIXED,