summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsound/tst_qsound.cpp
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-01-15 05:35:55 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-01-15 05:35:55 (GMT)
commitd2fa5b80d4f40ac67a7a74552390332551563466 (patch)
tree1ef112b385dbbdd49abefd9b574573f7d21b69bf /tests/auto/qsound/tst_qsound.cpp
parentf0d24ba1eaa1079abef3a1da641b43437dc7df66 (diff)
parent6c5c2312ca5477a1ec33f43c1673ab65a0dce8bb (diff)
downloadQt-d2fa5b80d4f40ac67a7a74552390332551563466.zip
Qt-d2fa5b80d4f40ac67a7a74552390332551563466.tar.gz
Qt-d2fa5b80d4f40ac67a7a74552390332551563466.tar.bz2
Merge branch 'master' of ../../qt/master
Conflicts: examples/multimedia/audioinput/audioinput.cpp src/multimedia/audio/qaudiodeviceinfo.cpp src/multimedia/audio/qaudiodeviceinfo_win32_p.cpp src/multimedia/audio/qaudioformat.cpp src/multimedia/audio/qaudioinput_win32_p.cpp src/multimedia/audio/qaudiooutput_win32_p.cpp tests/auto/qaudioformat/tst_qaudioformat.cpp
Diffstat (limited to 'tests/auto/qsound/tst_qsound.cpp')
-rw-r--r--tests/auto/qsound/tst_qsound.cpp28
1 files changed, 20 insertions, 8 deletions
diff --git a/tests/auto/qsound/tst_qsound.cpp b/tests/auto/qsound/tst_qsound.cpp
index 56a330b..eda99a1 100644
--- a/tests/auto/qsound/tst_qsound.cpp
+++ b/tests/auto/qsound/tst_qsound.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
@@ -55,20 +55,32 @@ public:
tst_QSound( QObject* parent=0) : QObject(parent) {}
private slots:
- void checkFinished();
+ void checkFinished();
+
+ // Manual tests
+ void staticPlay();
};
void tst_QSound::checkFinished()
{
- QSound sound(SRCDIR"4.wav");
- sound.setLoops(3);
- sound.play();
- QTest::qWait(5000);
+ QSound sound(SRCDIR"4.wav");
+ sound.setLoops(3);
+ sound.play();
+ QTest::qWait(5000);
#if defined(Q_WS_QWS)
- QEXPECT_FAIL("", "QSound buggy on embedded (task QTBUG-157)", Abort);
+ QEXPECT_FAIL("", "QSound buggy on embedded (task QTBUG-157)", Abort);
#endif
- QVERIFY(sound.isFinished() );
+ QVERIFY(sound.isFinished() );
+}
+
+void tst_QSound::staticPlay()
+{
+ QSKIP("Test disabled -- only for manual purposes", SkipAll);
+
+ // Check that you hear sound with static play also.
+ QSound::play(SRCDIR"4.wav");
+ QTest::qWait(2000);
}
QTEST_MAIN(tst_QSound);