diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-07-12 04:35:24 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-07-12 04:35:24 (GMT) |
commit | d69671cf3fc6bf51e7cbb322dce51fa0719ae6bc (patch) | |
tree | ee89001c74e75e5a5e1edf66e35825eeb6c4f5cc /tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp | |
parent | 0fdf5122c72eb86d49cba2b69f80d3a9c5949da6 (diff) | |
download | Qt-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.cpp | 12 |
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()); |