Work on sound positioning for objects. Enable in sounds in preferences.
This commit is contained in:
@@ -41,6 +41,7 @@ class SoundPreferencesBuilderTests(unittest.TestCase):
|
||||
self.assertIn("soundsTabLabel", objectIds)
|
||||
self.assertIn("enableSoundCheckButton", objectIds)
|
||||
self.assertIn("soundVolumeScale", objectIds)
|
||||
self.assertIn("spatializeObjectSoundsCheckButton", objectIds)
|
||||
self.assertIn("progressBarBeepIntervalSpinButton", objectIds)
|
||||
|
||||
def test_notebook_tab_positions_keep_sounds_page_and_label_aligned(self):
|
||||
@@ -90,6 +91,7 @@ class SoundPreferencesControllerTests(unittest.TestCase):
|
||||
"playSoundForState": True,
|
||||
"playSoundForPositionInSet": False,
|
||||
"playSoundForValue": False,
|
||||
"spatializeObjectSounds": True,
|
||||
}
|
||||
widgets = {
|
||||
"soundSinkCombo": mock.Mock(),
|
||||
@@ -102,6 +104,7 @@ class SoundPreferencesControllerTests(unittest.TestCase):
|
||||
"playSoundForStateCheckButton": mock.Mock(),
|
||||
"playSoundForPositionInSetCheckButton": mock.Mock(),
|
||||
"playSoundForValueCheckButton": mock.Mock(),
|
||||
"spatializeObjectSoundsCheckButton": mock.Mock(),
|
||||
"beepProgressBarUpdatesCheckButton": mock.Mock(),
|
||||
}
|
||||
gui.get_widget = widgets.__getitem__
|
||||
@@ -128,6 +131,7 @@ class SoundPreferencesControllerTests(unittest.TestCase):
|
||||
widgets["playSoundForStateCheckButton"].set_active.assert_called_once_with(True)
|
||||
widgets["playSoundForPositionInSetCheckButton"].set_active.assert_called_once_with(False)
|
||||
widgets["playSoundForValueCheckButton"].set_active.assert_called_once_with(False)
|
||||
widgets["spatializeObjectSoundsCheckButton"].set_active.assert_called_once_with(True)
|
||||
widgets["beepProgressBarUpdatesCheckButton"].set_active.assert_called_once_with(True)
|
||||
widgets["progressBarBeepIntervalSpinButton"].set_value.assert_called_once_with(0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user