Sha256: 308999c437aeed15aa46f202de138dc20bdeba9bb12bb2ad34badbd283f1aeb7
Contents?: true
Size: 651 Bytes
Versions: 5
Compression:
Stored size: 651 Bytes
Contents
require 'spec_helper' require 'swing/shared' describe Swing::JFrame do context 'creating' do after(:each) { @frame.dispose if @frame } let(:new_args) { ['Frame'] } it_behaves_like 'enhanced Awt::Component' it 'is possible to create Frame with options' do @frame = Swing::JFrame.new "Option frame", :layout => Awt::FlowLayout.new(Awt::FlowLayout::LEFT), :size => [1100, 1200] end it 'is possible to give frame constructor a block' do @frame = Swing::JFrame.new("Block frame") { @called = true } @called.should be_true end end end
Version data entries
5 entries across 5 versions & 1 rubygems