Codebase list ruby-fxruby / 40768d70-2f6c-426c-9ba3-c4f02433a71b/main test / TC_FXId.rb
40768d70-2f6c-426c-9ba3-c4f02433a71b/main

Tree @40768d70-2f6c-426c-9ba3-c4f02433a71b/main (Download .tar.gz)

TC_FXId.rb @40768d70-2f6c-426c-9ba3-c4f02433a71b/mainraw · 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?
    app.create
    assert mainWindow.created?, "main window should be created after call to FXApp#create"
    mainWindow.destroy
    assert !mainWindow.created?
  end
end