Sha256: 60273409ab4681c4d911f65a3b8302e5b37fbe469e62cbe22e94d560d85fb5f9

Contents?: true

Size: 570 Bytes

Versions: 5

Compression:

Stored size: 570 Bytes

Contents

require 'spec_helper'
require 'swing/shared'

describe Swing::JScrollPane do

  context 'creation' do
    let(:new_args) { [] }
    let(:layout) { Swing::ScrollPaneLayout.new }

    it_behaves_like 'enhanced Awt::Component'
    it_behaves_like 'enhanced Swing::JComponent'

    it 'can be constructed given an enclosed element' do
      list = Swing::JList.new

      @pane = Swing::JScrollPane.new list, :preferred_size => [700, 900]
      @pane.viewport.components[0].should == list
      @pane.preferred_size.should == Awt::Dimension.new(700, 900)
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
swing-0.1.16 spec/swing/j_scroll_pane_spec.rb
swing-0.1.15 spec/swing/j_scroll_pane_spec.rb
swing-0.1.14 spec/swing/j_scroll_pane_spec.rb
swing-0.1.12 spec/swing/j_scroll_pane_spec.rb
swing-0.1.10 spec/swing/j_scroll_pane_spec.rb