Sha256: 30a28d14084fd076db6f72fc686e858fcde35a00b70f4da1b00b490f8c276d5d

Contents?: true

Size: 546 Bytes

Versions: 7

Compression:

Stored size: 546 Bytes

Contents

# encoding: utf-8
require File.dirname(__FILE__) + '/spec_helper'

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

7 entries across 7 versions & 1 rubygems

Version Path
watir-webdriver-0.0.6 spec/watirspec/font_spec.rb
watir-webdriver-0.0.5 spec/watirspec/font_spec.rb
watir-webdriver-0.0.4 spec/watirspec/font_spec.rb
watir-webdriver-0.0.3 spec/watirspec/font_spec.rb
watir-webdriver-0.0.2 spec/watirspec/font_spec.rb
watir-webdriver-0.0.1 spec/watirspec/font_spec.rb
watir-webdriver-0.0.1.dev7 spec/watirspec/font_spec.rb