summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Negyokru <negyokru@inf.u-szeged.hu>2023-06-28 16:13:27 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-09-12 13:58:02 +0000
commit9a959bd6225b13eff75da8e759ccbffa574c1efd (patch)
treed217de451efcefc35af0445a22e1a9417d2bdb5d
parent015b5fb169d867ef6b453cd45b2c8a8be30c9fde (diff)
Fix invalid html in tst_touchinput
With the invalid 'width' attribute the input element defaults to a size that depends on the system (charmap) settings. It may result in failing tests that depend on the size of the element e.g. tests that use 'elementCenter'. Task-number: QTBUG-105342 Change-Id: I508d365fc4240d67d3e2240e8e33495c1de6ee4c Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 17bafdc301a057ed4b28dc3acc9bd636183683d0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/widgets/touchinput/tst_touchinput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/touchinput/tst_touchinput.cpp b/tests/auto/widgets/touchinput/tst_touchinput.cpp
index 562ccfcef..de3712370 100644
--- a/tests/auto/widgets/touchinput/tst_touchinput.cpp
+++ b/tests/auto/widgets/touchinput/tst_touchinput.cpp
@@ -130,7 +130,7 @@ void TouchInputTest::initTestCase()
view.setHtml("<html><head><style>.rect { min-width: 240px; min-height: 120px; }</style></head><body>"
"<p id='text' style='width: 150px;'>The Qt Company</p>"
"<div id='notext' style='width: 150px; height: 100px; background-color: #f00;'></div>"
- "<form><input id='input' width='150px' type='text' value='The Qt Company2' /></form>"
+ "<form><input id='input' style='width: 150px;' type='text' value='The Qt Company2' /></form>"
"<button id='btn' type='button' onclick='alert(\"button clicked!\")'>Click Me!</button>"
"<select id='select' onchange='alert(\"option changed to: \" + this.value)'>"
"<option value='O1'>O1</option><option value='O2'>O2</option><option value='O3'>O3</option></select>"