Sha256: b19e77ce562cc1bb334f55f76dc77d2b35f3d50be8b4d4a33c8d1a5c49e9d7ef

Contents?: true

Size: 738 Bytes

Versions: 3

Compression:

Stored size: 738 Bytes

Contents

# encoding: utf-8
require File.expand_path("../spec_helper", __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

3 entries across 3 versions & 1 rubygems

Version Path
watir-webdriver-0.1.4 spec/watirspec/font_spec.rb
watir-webdriver-0.1.3 spec/watirspec/font_spec.rb
watir-webdriver-0.1.2 spec/watirspec/font_spec.rb