mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-05 14:35:26 +00:00
make the frontend resume when an sdr device becomes present
This commit is contained in:
parent
8fa1796037
commit
acee318dae
4 changed files with 25 additions and 0 deletions
|
|
@ -42,6 +42,18 @@ class PropertyStackTest(TestCase):
|
|||
om.removeLayer(high_pm)
|
||||
self.assertEqual(om["testkey"], "low value")
|
||||
|
||||
def testLayerRemovalByPriority(self):
|
||||
om = PropertyStack()
|
||||
low_pm = PropertyLayer()
|
||||
high_pm = PropertyLayer()
|
||||
low_pm["testkey"] = "low value"
|
||||
high_pm["testkey"] = "high value"
|
||||
om.addLayer(1, low_pm)
|
||||
om.addLayer(0, high_pm)
|
||||
self.assertEqual(om["testkey"], "high value")
|
||||
om.removeLayerByPriority(0)
|
||||
self.assertEqual(om["testkey"], "low value")
|
||||
|
||||
def testPropertyChange(self):
|
||||
layer = PropertyLayer()
|
||||
stack = PropertyStack()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue