Codebase list ruby-fxruby / 3ac7152a-ab2f-4628-b250-ba7cef029b84/upstream/1.6.45+git20230116.1.57f414d test / TC_FXId.rb
3ac7152a-ab2f-4628-b250-ba7cef029b84/upstream/1.6.45+git20230116.1.57f414d

Tree @3ac7152a-ab2f-4628-b250-ba7cef029b84/upstream/1.6.45+git20230116.1.57f414d (Download .tar.gz)

TC_FXId.rb @3ac7152a-ab2f-4628-b250-ba7cef029b84/upstream/1.6.45+git20230116.1.57f414draw · 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