Sha256: 6aa22c0400f99ec4726ecfd1c43d18f6451b6fb43a986ab4fe31a515f60bc1fa

Contents?: true

Size: 981 Bytes

Versions: 5

Compression:

Stored size: 981 Bytes

Contents

require File.expand_path('../../watirspec_desktophelper', __FILE__)
require File.expand_path('../shared/shared', __FILE__)

describe 'QuickThumbnail' do
  
  before(:all) do
    browser.open_window_with_key_press("Document Window", "t", :ctrl)
  end
  
  let(:widget) { browser.quick_thumbnail(:name, "Speed Dial 1") }
  
  subject { widget }
     
  it_behaves_like 'a widget'
  it_behaves_like 'a button'
  
  its(:type) { should == :thumbnail }
   
  #This is really on browser, widgets, and window
  describe '#quick_thumbnail' do
    it 'constructs thumbnail by its position' do
      browser.quick_thumbnail(:pos, 1).should exist
    end
    it 'constructs thumbnail by its name' do
      browser.quick_thumbnail(:name, "Speed Dial 1").should exist
    end
    it 'constructs thumbnail by its text'
  end
  
  describe '#move_with_drag' do
    it 'moves thumbnail'
    context 'when target is not a thumbnail' do
      it 'raises UnknownObjectException'
    end
  end
   
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
operawatir-0.4.3.pre1-jruby spec/operawatir/desktop/quickthumbnail_spec.rb
operawatir-0.4.2-jruby spec/operawatir/desktop/quickthumbnail_spec.rb
operawatir-0.4.1-jruby spec/operawatir/desktop/quickthumbnail_spec.rb
operawatir-0.4.1.pre7-jruby spec/operawatir/desktop/quickthumbnail_spec.rb
operawatir-0.4.1.pre6-jruby spec/operawatir/desktop/quickthumbnail_spec.rb