Sha256: 9aa6eee670c115b63e07750c4b539cf7a79a051fac152bbecb0fc95631c4bdd7

Contents?: true

Size: 878 Bytes

Versions: 24

Compression:

Stored size: 878 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

24 entries across 24 versions & 2 rubygems

Version Path
fxruby-1.6.22.pre2-x86-mingw32 test/testcase.rb
fxruby-1.6.22.pre2 test/testcase.rb
fxrubi-1.6.22.pre1-x86-mingw32 test/testcase.rb
fxrubi-1.6.22.pre1 test/testcase.rb
fxruby-1.6.20-x86-mingw32 test/testcase.rb
fxruby-1.6.20-x86-linux test/testcase.rb
fxruby-1.6.20 test/testcase.rb
fxruby-1.6.20-universal-darwin-10 test/testcase.rb
fxruby-1.6.19-x86-mingw32 tests/testcase.rb
fxruby-1.6.15-universal-darwin-9 tests/testcase.rb
fxruby-1.6.15 tests/testcase.rb
fxruby-1.6.15-x86-mswin32-60 tests/testcase.rb
fxruby-1.6.16-universal-darwin-9 tests/testcase.rb
fxruby-1.6.16-x86-mswin32-60 tests/testcase.rb
fxruby-1.6.16 tests/testcase.rb
fxruby-1.6.17-universal-darwin-9 tests/testcase.rb
fxruby-1.6.17-x86-mswin32-60 tests/testcase.rb
fxruby-1.6.17 tests/testcase.rb
fxruby-1.6.18-universal-darwin-9 tests/testcase.rb
fxruby-1.6.18-x86-mswin32-60 tests/testcase.rb