Sha256: bccc5ae326dd18b46b7c765a2d2fd00e60f3e5073de0ceb948ee4ad9677abe33

Contents?: true

Size: 564 Bytes

Versions: 3

Compression:

Stored size: 564 Bytes

Contents

require 'spec_helper'
require 'swing/shared'

describe Swing::JSplitPane do

  context 'creation' do
    let(:new_args) { [] }

    it_behaves_like 'enhanced awt component'
    it_behaves_like 'tool tipped component'

    it 'is possible to use constructor with two children' do
      b1 = Swing::JButton.new 'First'
      b2 = Swing::JButton.new 'Second'
      pane = Swing::JSplitPane.new b1, b2, :tool_tip_text => 'Blah'
      pane.tool_tip_text.should == 'Blah'
      pane.left_component.should == b1
      pane.right_component.should == b2
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
swing-0.1.8 spec/swing/j_split_pane_spec.rb
swing-0.1.7 spec/swing/j_split_pane_spec.rb
swing-0.1.5 spec/swing/j_split_pane_spec.rb