spec/watirspec/frames_spec.rb in watir-webdriver-0.0.6 vs spec/watirspec/frames_spec.rb in watir-webdriver-0.0.7

- old
+ new

@@ -1,9 +1,10 @@ # encoding: utf-8 -require File.dirname(__FILE__) + '/spec_helper' +require File.expand_path('spec_helper', File.dirname(__FILE__)) -not_compliant_on :watir do +bug "http://github.com/jarib/watir-webdriver/issues#issue/17", :webdriver do + describe "<frame> Frames" do before :each do browser.goto(WatirSpec.files + "/frames.html") end @@ -20,14 +21,20 @@ end end describe "#each" do it "iterates through frames correctly" do + count = 0 + browser.frames.each_with_index do |f, index| f.id.should == browser.frame(:index, index).id f.value.should == browser.frame(:index, index).value + + count += 1 end + + count.should > 0 end end end describe "<iframe> Frames" do @@ -48,14 +55,20 @@ end end describe "#each" do it "iterates through frames correctly" do + count = 0 + browser.frames.each_with_index do |f, index| f.name.should == browser.frame(:index, index).name f.id.should == browser.frame(:index, index).id f.value.should == browser.frame(:index, index).value + + count += 1 end + + count.should > 0 end end end end \ No newline at end of file