Sha256: 8825562d059c170589e832bfb3b162cb66bfaeb89a9ccbf8edb7bde62d8fcf48
Contents?: true
Size: 749 Bytes
Versions: 2
Compression:
Stored size: 749 Bytes
Contents
# encoding: utf-8 require File.expand_path('spec_helper', File.dirname(__FILE__)) describe "Font" do before :each do browser.goto(WatirSpec.files + "/font.html") end bug "http://github.com/jarib/celerity/issues#issue/29", :celerity do it "finds the font element" do browser.font(:index, 0).should exist end it "knows about the color attribute" do browser.font(:index, 0).color.should == "#ff00ff" end it "knows about the face attribute" do browser.font(:index, 0).face.should == "Helvetica" end it "knows about the size attribute" do browser.font(:index, 0).size.should == "12" end it "finds all font elements" do browser.fonts.size.should == 1 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watir-webdriver-0.1.1 | spec/watirspec/font_spec.rb |
watir-webdriver-0.1.0 | spec/watirspec/font_spec.rb |