diff options
author | Andras Becsi <andras.becsi@digia.com> | 2013-08-23 14:08:57 +0200 |
---|---|---|
committer | Andras Becsi <andras.becsi@digia.com> | 2013-08-23 14:21:46 +0200 |
commit | c79c9fd7ca4fcb814b74013667229aec001d29b8 (patch) | |
tree | d58a8cd3981a229755b8a356926a0dc2e0845ea2 /tests | |
parent | fd661fe6e07fc6771a9e3e936ca955a88004fd03 (diff) |
Fix the linking of tst_qwebenginepage on Mac
Skip Mac specific tst_QWebEnginePage::macCopyUnicodeToClipboard()
which uses the unimplemented QWebEnginePage::setHtml.
Change-Id: I39c2d0d7b61517646e1702ca4f1ac119daef1585
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/widgets/qwebenginepage/tst_qwebenginepage.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/widgets/qwebenginepage/tst_qwebenginepage.cpp b/tests/widgets/qwebenginepage/tst_qwebenginepage.cpp index 562afcf55..e5fa60e32 100644 --- a/tests/widgets/qwebenginepage/tst_qwebenginepage.cpp +++ b/tests/widgets/qwebenginepage/tst_qwebenginepage.cpp @@ -3321,6 +3321,9 @@ void tst_QWebEnginePage::thirdPartyCookiePolicy() #ifdef Q_OS_MAC void tst_QWebEnginePage::macCopyUnicodeToClipboard() { +#if !defined(QWEBENGINEPAGE_SETHTML) + QSKIP("QWEBENGINEPAGE_SETHTML"); +#else QString unicodeText = QString::fromUtf8("αβγδεζηθικλμπ"); m_page->setHtml(QString("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /></head><body>%1</body></html>").arg(unicodeText)); m_page->triggerAction(QWebEnginePage::SelectAll); @@ -3330,6 +3333,7 @@ void tst_QWebEnginePage::macCopyUnicodeToClipboard() QVERIFY(clipboardData.contains(QLatin1String("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />"))); QVERIFY(clipboardData.contains(unicodeText)); +#endif } #endif |