mirror of https://github.com/KLayout/klayout.git
Make Ruby LayoutView test robust against display properties of the virtual layout view
This commit is contained in:
parent
31aa45dce4
commit
494d52b40f
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue