Codebase list ruby-fxruby / run/58ea0207-4aab-45e9-bc04-849c8b3df19d/upstream test / TC_FXId.rb
run/58ea0207-4aab-45e9-bc04-849c8b3df19d/upstream

Tree @run/58ea0207-4aab-45e9-bc04-849c8b3df19d/upstream (Download .tar.gz)

TC_FXId.rb @run/58ea0207-4aab-45e9-bc04-849c8b3df19d/upstreamraw · 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