Sha256: 5f53d33b5607a0a2664632046c8bf2fd78cb43bdd12ac34e5464093358ea71be

Contents?: true

Size: 1.69 KB

Versions: 38

Compression:

Stored size: 1.69 KB

Contents

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

include Fox

class TC_FXGradientBar < TestCase
  def setup
    super(self.class.name)
    @gradientBar = FXGradientBar.new(mainWindow)
  end
  def test_getSegment
  end
  def test_getGrip
  end
  def test_getNumSegments
  end
  def test_setGradients
  end
  def test_getGradients
  end
  def test_setCurrentSegment
  end
  def test_getCurrentSegment
  end
  def test_setAnchorSegment
  end
  def test_getAnchorSegment
  end
  def test_selectSegments
  end
  def test_deselectSegments
  end
  def test_isSegmentSelected
  end
  def test_setSegmentLowerColor
  end
  def test_setSegmentUpperColor
  end
  def test_getSegmentLowerColor
  end
  def test_getSegmentUpperColor
  end
  def test_moveSegmentLower
  end
  def test_moveSegmentMiddle
  end
  def test_moveSegmentUpper
  end
  def test_moveSegments
  end
  def test_getSegmentLower
  end
  def test_getSegmentMiddle
  end
  def test_getSegmentUpper
  end
  def test_gradient
    emptyRamp = @gradientBar.gradient(0)
    assert_kind_of(Array, emptyRamp)
    assert(emptyRamp.empty?)
  end
  def test_getSegmentBlend
  end
  def test_splitSegments
  end
  def test_mergeSegments
  end
  def test_uniformSegments
  end
  def test_blendSegments
  end
  def test_barStyle
    @gradientBar.barStyle = 0
    assert_equal(0, @gradientBar.barStyle)
  end
  def test_selectColor
    @gradientBar.selectColor = FXRGB(255, 0, 255)
    assert_equal(FXRGB(255, 0, 255), @gradientBar.selectColor)
  end
  def test_helpText
    @gradientBar.helpText = "helpText"
    assert_equal("helpText", @gradientBar.helpText)
  end
  def test_tipText
    @gradientBar.tipText = "tipText"
    assert_equal("tipText", @gradientBar.tipText)
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
fxruby-1.6.20-x86-mingw32 test/TC_FXGradientBar.rb
fxruby-1.6.20-x86-linux test/TC_FXGradientBar.rb
fxruby-1.6.20 test/TC_FXGradientBar.rb
fxruby-1.6.20-universal-darwin-10 test/TC_FXGradientBar.rb
fxruby-1.6.19-x86-mingw32 tests/TC_FXGradientBar.rb
fxruby-1.6.14-mswin32 tests/TC_FXGradientBar.rb
fxruby-1.6.13-mswin32 tests/TC_FXGradientBar.rb
fxruby-1.6.0 tests/TC_FXGradientBar.rb
fxruby-1.6.1 tests/TC_FXGradientBar.rb
fxruby-1.6.10 tests/TC_FXGradientBar.rb
fxruby-1.6.11 tests/TC_FXGradientBar.rb
fxruby-1.6.12 tests/TC_FXGradientBar.rb
fxruby-1.6.13 tests/TC_FXGradientBar.rb
fxruby-1.6.14-universal-darwin-9 tests/TC_FXGradientBar.rb
fxruby-1.6.14 tests/TC_FXGradientBar.rb
fxruby-1.6.15-universal-darwin-9 tests/TC_FXGradientBar.rb
fxruby-1.6.15 tests/TC_FXGradientBar.rb
fxruby-1.6.15-x86-mswin32-60 tests/TC_FXGradientBar.rb
fxruby-1.6.16-universal-darwin-9 tests/TC_FXGradientBar.rb
fxruby-1.6.16-x86-mswin32-60 tests/TC_FXGradientBar.rb