Sha256: 0e605b8b8555c2ff01e1c8d8e85109d840d5f6e9e4db7aecee55a921cfcf274e

Contents?: true

Size: 640 Bytes

Versions: 2

Compression:

Stored size: 640 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

  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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
watir-webdriver-0.0.9 spec/watirspec/font_spec.rb
watir-webdriver-0.0.8 spec/watirspec/font_spec.rb