summaryrefslogtreecommitdiff
path: root/tests/auto/client
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-10-01 03:02:06 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-10-01 03:02:06 +0200
commit486c51912393bf56cae0e45931fb135579a930d3 (patch)
tree9e4c32ef3c9b4d5f4a44504447e31f92f33f1252 /tests/auto/client
parent03e160cfd286bb336e875a180efd83635be7a27f (diff)
parent1ed0782e93dafb0a3d5ef3a02c9c3999825817ee (diff)
downloadqtwayland-486c51912393bf56cae0e45931fb135579a930d3.tar.gz
Merge remote-tracking branch 'origin/5.13' into 5.14v5.14.0-beta1
Change-Id: Ie236fa47c23456b15414c3b3e89568b915979ebe
Diffstat (limited to 'tests/auto/client')
-rw-r--r--tests/auto/client/client/tst_client.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/client/client/tst_client.cpp b/tests/auto/client/client/tst_client.cpp
index e9ae5e4b..e19acff7 100644
--- a/tests/auto/client/client/tst_client.cpp
+++ b/tests/auto/client/client/tst_client.cpp
@@ -184,6 +184,7 @@ private slots:
void glWindow();
#endif // QT_CONFIG(opengl)
void longWindowTitle();
+ void longWindowTitleWithUtf16Characters();
private:
MockCompositor *compositor = nullptr;
@@ -502,6 +503,16 @@ void tst_WaylandClient::longWindowTitle()
QTRY_VERIFY(compositor->surface());
}
+void tst_WaylandClient::longWindowTitleWithUtf16Characters()
+{
+ QWindow window;
+ QString absurdlyLongTitle = QString("δΈ‰").repeated(10000);
+ Q_ASSERT(absurdlyLongTitle.length() == 10000); // just making sure the test isn't broken
+ window.setTitle(absurdlyLongTitle);
+ window.show();
+ QTRY_VERIFY(compositor->surface());
+}
+
int main(int argc, char **argv)
{
setenv("XDG_RUNTIME_DIR", ".", 1);