Sha256: b6fd5832e26a6ef49d901cebd08f008f4819aba2d67398269a0d2347c9a7b3a3
Contents?: true
Size: 702 Bytes
Versions: 7
Compression:
Stored size: 702 Bytes
Contents
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './wxapp_runner' class ProcessEventHandlingExceptionTests < Test::Unit::TestCase class TestEvent < Wx::Event EVT_TEST_EVENT = Wx::EvtHandler.register_class(self, nil, 'evt_test_event', 0) def initialize(id=0) super(EVT_TEST_EVENT, id) end end class TestFrame < Wx::Frame def initialize super(nil, size: [300,300]) evt_test_event { |_evt| raise RuntimeError, 'Whatever' } end end def test_process_event win = TestFrame.new win.process_event(TestEvent.new) win.destroy 10.times { Wx.get_app.yield } end end
Version data entries
7 entries across 7 versions & 1 rubygems