Sha256: b5f0e5963c50a990eca57b8ef84783eafbcb3845c94783517469f272603e530c

Contents?: true

Size: 572 Bytes

Versions: 7

Compression:

Stored size: 572 Bytes

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.

require_relative './wxframe_runner'

class DirectorTypeExceptionTests < WxRuby::Test::GUITests

  class InvalidOutputSizer < Wx::BoxSizer

    def calc_min
      nil #Wx::Point.new(1,1) # expects Wx::Size
    end

  end

  def test_invalid_output
    szr = InvalidOutputSizer.new(Wx::Orientation::VERTICAL)
    szr.add(Wx::Button.new(frame_win, name: 'button'), Wx::Direction::TOP)
    frame_win.sizer = szr
    frame_win.layout
    frame_win.sizer = nil
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wxruby3-1.5.1 tests/lib/overload_type_exception_test.rb
wxruby3-1.5.0 tests/lib/overload_type_exception_test.rb
wxruby3-1.4.2 tests/lib/overload_type_exception_test.rb
wxruby3-1.4.1 tests/lib/overload_type_exception_test.rb
wxruby3-1.4.0 tests/lib/overload_type_exception_test.rb
wxruby3-1.3.1 tests/lib/overload_type_exception_test.rb
wxruby3-1.3.0 tests/lib/overload_type_exception_test.rb