Sha256: 0b47b1925bfbee1144edd90cb2fa31871a7e9aa55fbe1e7d3bb23530c2b89995
Contents?: true
Size: 634 Bytes
Versions: 6
Compression:
Stored size: 634 Bytes
Contents
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require 'test/unit' require 'wx' class TestApp < Test::Unit::TestCase class TestFrame < Wx::Frame def initialize super(nil, -1, '') evt_paint { on_paint } end def on_paint paint {} close end end class TestApp < Wx::App def on_init TestFrame.new.show end def on_exit raise RuntimeError, 'on_exit exception' end end def test_self_closing_frame assert_raise_kind_of(RuntimeError) { TestApp.run } end end
Version data entries
6 entries across 6 versions & 1 rubygems