summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-07-12 04:35:24 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-07-12 04:35:24 (GMT)
commitd69671cf3fc6bf51e7cbb322dce51fa0719ae6bc (patch)
treeee89001c74e75e5a5e1edf66e35825eeb6c4f5cc /tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
parent0fdf5122c72eb86d49cba2b69f80d3a9c5949da6 (diff)
downloadQt-d69671cf3fc6bf51e7cbb322dce51fa0719ae6bc.zip
Qt-d69671cf3fc6bf51e7cbb322dce51fa0719ae6bc.tar.gz
Qt-d69671cf3fc6bf51e7cbb322dce51fa0719ae6bc.tar.bz2
Fix Mac CI
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
index c8767b5..a48bc39 100644
--- a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
+++ b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
@@ -700,6 +700,18 @@ void tst_qdeclarativetextinput::navigation()
void tst_qdeclarativetextinput::copyAndPaste() {
#ifndef QT_NO_CLIPBOARD
+
+#ifdef Q_WS_MAC
+ {
+ PasteboardRef pasteboard;
+ OSStatus status = PasteboardCreate(0, &pasteboard);
+ if (status == noErr)
+ CFRelease(pasteboard);
+ else
+ QSKIP("This machine doesn't support the clipboard", SkipAll);
+ }
+#endif
+
QString componentStr = "import Qt 4.7\nTextInput { text: \"Hello world!\" }";
QDeclarativeComponent textInputComponent(&engine);
textInputComponent.setData(componentStr.toLatin1(), QUrl());