Sha256: cf56fc2eea653c134511a6529b32eeab862fa3cc8115d236057568f6cd2d7fb8

Contents?: true

Size: 506 Bytes

Versions: 5

Compression:

Stored size: 506 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

5 entries across 5 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.beta.10-x64-mingw-ucrt tests/test_dialog.rb
wxruby3-0.9.0.pre.beta.9-x64-mingw-ucrt tests/test_dialog.rb
wxruby3-0.9.0.pre.beta.8-x64-mingw-ucrt tests/test_dialog.rb
wxruby3-0.9.0.pre.beta.2-x64-mingw-ucrt-3.2-3.2.2 tests/test_dialog.rb
wxruby3-0.9.0.pre.beta.1-x64-mingw-ucrt-3.2 tests/test_dialog.rb