Sha256: 66c4c7f36c54d2a9aeb7087a3e8c8bcf9d7cee402c7191d03ccc0bb61ef18618

Contents?: true

Size: 724 Bytes

Versions: 3

Compression:

Stored size: 724 Bytes

Contents

require "spec"

describe Watir::IE do

  it "uses currentStyle method to show computed style" do
    goto "http://dl.dropbox.com/u/2731643/misc/tables.html"
    t = table(:id => "normal")
    normal_cell = t[1][1]
    normal_cell.text.should == "1"
    normal_cell.style.color.should == "#000000"

    red_cell = t.cell(:class => "reddish")
    red_cell.text.should == "9"
    red_cell.style.color.should == "red"
  end

  it "closes the browser even when Watir::IE#run_error_checks throws an exception" do
    @browser.add_checker lambda {raise "let's fail IE#wait in IE#close"}
    @browser.should exist
    lambda {@browser.close}.should_not raise_exception
    @browser.should_not exist
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
watirsplash-0.2.2 spec/watir_ie_spec.rb
watirsplash-0.2.1 spec/watir_ie_spec.rb
watirsplash-0.2.0 spec/watir_ie_spec.rb