spec/watir_ie_spec.rb in watirsplash-0.1.9 vs spec/watir_ie_spec.rb in watirsplash-0.2.0
- old
+ new
@@ -1,8 +1,19 @@
-require "watirsplash"
-require "spec/autorun"
+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
\ No newline at end of file