Sha256: 11a30b82c7a28f43534a97743d5cc0a778257980f5147df566301e10ecf050b4

Contents?: true

Size: 478 Bytes

Versions: 3

Compression:

Stored size: 478 Bytes

Contents

require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'wx'

class DialogTests < Test::Unit::TestCase

  class TestDialog < Wx::Dialog
    def initialize
      super()
    end
  end

  def test_dialog_inheritance
    dlg = TestDialog.new
    assert_kind_of(Wx::Dialog, dlg)
    assert_kind_of(Wx::Window, dlg)
  end
end

class TestApp < Wx::App
  def on_init
    Test::Unit::UI::Console::TestRunner.run(DialogTests)
    false
  end
end

app = TestApp.new
app.run

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.beta.10 tests/test_dialog.rb
wxruby3-0.9.0.pre.beta.9 tests/test_dialog.rb
wxruby3-0.9.0.pre.beta.8 tests/test_dialog.rb