Resize method and tests

This commit is contained in:
Matthias Koefferlein
2022-05-07 22:12:36 +02:00
parent 7b85bf7de2
commit 42f0a79dee
8 changed files with 100 additions and 24 deletions
+17
View File
@@ -454,6 +454,23 @@ class LAYLayoutView_TestClass < TestBase
end
def test_5
lv = RBA::LayoutView::new
lv.load_layout(File.join($ut_testsrc, "testdata/gds/t10.gds"), true)
lv.resize(42, 117)
img = lv.get_screenshot_pixels
assert_equal(img.width, 42)
assert_equal(img.height, 117)
lv.resize(142, 217)
img = lv.get_screenshot_pixels
assert_equal(img.width, 142)
assert_equal(img.height, 217)
end
end
load("test_epilogue.rb")