Codebase list ruby-fxruby / 4aa9b762-28ad-43f6-adae-3737db5bded3/upstream/1.6.45+git20221125.1.7d76b2a test / TC_FXDCWindow.rb
4aa9b762-28ad-43f6-adae-3737db5bded3/upstream/1.6.45+git20221125.1.7d76b2a

Tree @4aa9b762-28ad-43f6-adae-3737db5bded3/upstream/1.6.45+git20221125.1.7d76b2a (Download .tar.gz)

TC_FXDCWindow.rb @4aa9b762-28ad-43f6-adae-3737db5bded3/upstream/1.6.45+git20221125.1.7d76b2araw · history · blame

require 'test/unit'
require 'testcase'
require 'fox16'

class TC_FXDCWindow < Fox::TestCase
  include Fox

  def setup
    super(self.class.name)
    app.create
    mainWindow.create
  end

  def test_new
    dc = FXDCWindow.new(mainWindow)
    dc.drawPoint(0, 0)
    dc.end
  end

  def test_new_with_block
    FXDCWindow.new(mainWindow) do |dc|
      dc.drawPoint(0, 0)
    end
  end
end