equal
deleted
inserted
replaced
53 |
53 |
54 public: |
54 public: |
55 tst_QSound( QObject* parent=0) : QObject(parent) {} |
55 tst_QSound( QObject* parent=0) : QObject(parent) {} |
56 |
56 |
57 private slots: |
57 private slots: |
58 void checkFinished(); |
58 void checkFinished(); |
|
59 |
|
60 // Manual tests |
|
61 void staticPlay(); |
59 }; |
62 }; |
60 |
63 |
61 void tst_QSound::checkFinished() |
64 void tst_QSound::checkFinished() |
62 { |
65 { |
63 QSound sound(SRCDIR"4.wav"); |
66 QSound sound(SRCDIR"4.wav"); |
64 sound.setLoops(3); |
67 sound.setLoops(3); |
65 sound.play(); |
68 sound.play(); |
66 QTest::qWait(5000); |
69 QTest::qWait(5000); |
67 |
70 |
68 #if defined(Q_WS_QWS) |
71 #if defined(Q_WS_QWS) |
69 QEXPECT_FAIL("", "QSound buggy on embedded (task 122221)", Abort); |
72 QEXPECT_FAIL("", "QSound buggy on embedded (task QTBUG-157)", Abort); |
70 #endif |
73 #endif |
71 QVERIFY(sound.isFinished() ); |
74 QVERIFY(sound.isFinished() ); |
|
75 } |
|
76 |
|
77 void tst_QSound::staticPlay() |
|
78 { |
|
79 QSKIP("Test disabled -- only for manual purposes", SkipAll); |
|
80 |
|
81 // Check that you hear sound with static play also. |
|
82 QSound::play(SRCDIR"4.wav"); |
|
83 QTest::qWait(2000); |
72 } |
84 } |
73 |
85 |
74 QTEST_MAIN(tst_QSound); |
86 QTEST_MAIN(tst_QSound); |
75 #include "tst_qsound.moc" |
87 #include "tst_qsound.moc" |