Sha256: 18f884cf8a6bd545aaad6b6d8db8e65640c2cd88279d91bfa5f7ac79ddb34e23
Contents?: true
Size: 650 Bytes
Versions: 1
Compression:
Stored size: 650 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swing-0.1.8 | spec/swing/j_frame_spec.rb |