Make Ruby LayoutView test robust against display properties of the virtual layout view

This commit is contained in:
Matthias Koefferlein 2023-03-26 00:18:24 +01:00
parent 31aa45dce4
commit 494d52b40f
1 changed files with 3 additions and 2 deletions

View File

@ -183,8 +183,9 @@ class LAYLayoutView_TestClass < TestBase
assert_equal(view.has_selection?, false)
assert_equal(view.selection_size, 0)
view.set_config("search-range-box", "5")
view.select_from(RBA::DBox::new(-1.0, -1.0, 1.0, 1.0))
view.set_config("search-range-box", "0") # so the selection becomes independent from resolution and size
view.set_config("search-range", "0")
view.select_from(RBA::DBox::new(-2.5, -2.5, 2.5, 2.5))
assert_equal(selection_changed, 1)
assert_equal(view.selection_size, 4)
assert_equal(view.has_selection?, true)