Sha256: db6e4e01720340d913235a4aa4b8572c96b5747fc17314b2e6ae055d161c3a30

Contents?: true

Size: 860 Bytes

Versions: 100

Compression:

Stored size: 860 Bytes

Contents

require 'test/unit'
require 'fox16'

module Fox
  class TestCase < Test::Unit::TestCase
    #
    # Construct an application and main window for this test case's
    # use, based on the supplied application name.
    #
    def setup(*args)
      unless args.empty?
        appName = args[0]
      	if FXApp.instance.nil?
      	  @theApp = FXApp.new(appName, 'FXRuby')
      	  @theApp.init([])
      	else
      	  @theApp = FXApp.instance
      	end
      	@theMainWindow = FXMainWindow.new(@theApp, appName)
      end
    end

    # Return a reference to the application
    def app
      @theApp
    end

    # Return a reference to the main window
    def mainWindow
      @theMainWindow
    end

    # Override the base class version of default_test() so that
    # a test case with no tests doesn't trigger an error.
    def default_test; end
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
fxruby-1.6.37-x86-mingw32 test/testcase.rb
fxruby-1.6.37.rc1 test/testcase.rb
fxruby-1.6.37.rc1-x64-mingw32 test/testcase.rb
fxruby-1.6.37.rc1-x86-mingw32 test/testcase.rb
fxruby-1.6.36 test/testcase.rb
fxruby-1.6.36-x64-mingw32 test/testcase.rb
fxruby-1.6.36-x86-mingw32 test/testcase.rb
fxruby-1.6.35-x86-mingw32 test/testcase.rb
fxruby-1.6.35-x64-mingw32 test/testcase.rb
fxruby-1.6.35 test/testcase.rb
fxruby-1.6.34-x86-mingw32 test/testcase.rb
fxruby-1.6.34-x64-mingw32 test/testcase.rb
fxruby-1.6.34 test/testcase.rb
fxruby-1.6.33-x86-mingw32 test/testcase.rb
fxruby-1.6.33-x64-mingw32 test/testcase.rb
fxruby-1.6.33 test/testcase.rb
fxruby-1.6.32-x86-mingw32 test/testcase.rb
fxruby-1.6.32-x64-mingw32 test/testcase.rb
fxruby-1.6.32 test/testcase.rb
fxruby-1.6.32.pre2-x64-mingw32 test/testcase.rb