aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/phonon/CMakeLists.txt1
-rw-r--r--tests/phonon/bug_786.py21
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/phonon/CMakeLists.txt b/tests/phonon/CMakeLists.txt
index 85675155d..b325b5972 100644
--- a/tests/phonon/CMakeLists.txt
+++ b/tests/phonon/CMakeLists.txt
@@ -4,5 +4,6 @@ if (NOT WIN32 OR NOT ${QTVERSION} VERSION_EQUAL 4.7.1)
PYSIDE_TEST(basic_playing_test.py)
endif()
PYSIDE_TEST(bug_328.py)
+PYSIDE_TEST(bug_786.py)
PYSIDE_TEST(capabilities_test.py)
PYSIDE_TEST(qobjectdescription_test.py)
diff --git a/tests/phonon/bug_786.py b/tests/phonon/bug_786.py
new file mode 100644
index 000000000..b1e0070ad
--- /dev/null
+++ b/tests/phonon/bug_786.py
@@ -0,0 +1,21 @@
+import unittest
+from PySide.QtGui import *
+from PySide.phonon import *
+
+
+class TestBug786 (unittest.TestCase):
+
+ def testIt(self):
+ app = QApplication([])
+ devices = Phonon.BackendCapabilities.availableAudioOutputDevices()
+ if len(devices) > 1:
+ self.assertNotEqual(devices[0], devices[1])
+ self.assertEqual(devices[0], devices[0])
+
+ effects = Phonon.BackendCapabilities.availableAudioEffects()
+ if len(effects) > 1:
+ self.assertNotEqual(effects[0], effects[1])
+ self.assertEqual(effects[0], effects[0])
+
+if __name__ == '__main__':
+ unittest.main()