Codebase list ruby-fxruby / d257dcbe-9b65-42aa-abfd-4b333409080e/upstream/1.6.45+git20221125.1.7d76b2a test / TC_FXId.rb
d257dcbe-9b65-42aa-abfd-4b333409080e/upstream/1.6.45+git20221125.1.7d76b2a

Tree @d257dcbe-9b65-42aa-abfd-4b333409080e/upstream/1.6.45+git20221125.1.7d76b2a (Download .tar.gz)

TC_FXId.rb @d257dcbe-9b65-42aa-abfd-4b333409080e/upstream/1.6.45+git20221125.1.7d76b2araw · history · blame

require 'test/unit'
require 'fox16'
require 'testcase'

class TC_FXId < Fox::TestCase
  include Fox

  def setup
    super(self.class.name)
  end

  def test_created?
    assert !mainWindow.created?
    mainWindow.create
    assert mainWindow.created?, "main window should be created after call to FXApp#create"
    mainWindow.destroy
    assert !mainWindow.created?
  end
end