Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1ccc7a402c
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (24 sloc) 0.738 kb
# encoding: utf-8
require File.expand_path("../spec_helper", __FILE__)
describe "Font" do
before :each do
browser.goto(WatirSpec.url_for("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
Jump to Line
Something went wrong with that request. Please try again.