MCPcopy Create free account
hub / github.com/KLayout/klayout / test_9

Method test_9

testdata/ruby/layLayoutView.rb:579–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577 end
578
579 def test_9
580
581 if !RBA.constants.member?(:Application)
582 return
583 end
584
585 app = RBA::Application.instance
586 mw = app.main_window
587 mw.close_all
588
589 mw.create_layout(1)
590 assert_equal(false, mw.current_view.is_dirty?)
591
592 cv = mw.current_view.cellview(0)
593 cv.cell = cv.layout.create_cell("TOP")
594
595 assert_equal(true, mw.current_view.cellview(0).is_dirty?)
596
597 if cv.layout.is_editable?
598 assert_equal(true, mw.current_view.is_dirty?)
599 end
600
601 end
602
603 # private config
604 def test_10

Callers

nothing calls this directly

Calls 9

main_windowMethod · 0.80
cellviewMethod · 0.80
instanceMethod · 0.45
close_allMethod · 0.45
create_layoutMethod · 0.45
current_viewMethod · 0.45
cellMethod · 0.45
create_cellMethod · 0.45
layoutMethod · 0.45

Tested by

no test coverage detected