Sha256: 11d29f50c2ee4481d5f4a2d2d68cbb74fddf9ef37379f98eb3ab91025dca3fe5

Contents?: true

Size: 424 Bytes

Versions: 2

Compression:

Stored size: 424 Bytes

Contents

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

include Fox

class TC_FXGLViewer < TestCase
  def setup
    super(self.class.name)
    vis = FXGLVisual.new(app, VISUAL_DOUBLEBUFFER)
    @viewer = FXGLViewer.new(mainWindow, vis)
  end
  def test_readPixels
    pixels = @viewer.readPixels(0, 0, @viewer.width, @viewer.height)
    assert(pixels)
    assert_equal(3*@viewer.width*@viewer.height, pixels.size)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fxruby-1.6.0 tests/TC_FXGLViewer.rb
fxruby-1.6.1 tests/TC_FXGLViewer.rb