mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-02 10:57:51 +02:00
Merge pull request #1761 from KLayout/feature/issue-1655
Feature/issue 1655
This commit is contained in:
Vendored
+23
@@ -77,6 +77,29 @@ class LAYMarkers_TestClass < TestBase
|
||||
|
||||
end
|
||||
|
||||
# persistent markers
|
||||
def test_2
|
||||
|
||||
if !RBA.constants.member?(:Application)
|
||||
return
|
||||
end
|
||||
|
||||
app = RBA::Application.instance
|
||||
mw = app.main_window
|
||||
mw.create_layout(0)
|
||||
cv = mw.current_view
|
||||
|
||||
m = RBA::Marker.new
|
||||
m.set(RBA::DBox.new(1, 2, 3, 4))
|
||||
m.vertex_size = 3
|
||||
cv.add_marker(m)
|
||||
|
||||
cv.clear_markers
|
||||
|
||||
assert_equal(m.destroyed?, true)
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
load("test_epilogue.rb")
|
||||
|
||||
Reference in New Issue
Block a user