Sha256: 4d9b1fc0b5e2896674e39522e5d3e8ecc0bb36013c0eb3967dca62dc6a864982

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir-webdriver-0.0.7 spec/watirspec/font_spec.rb