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