forked from watir/watirspec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfont_spec.rb
More file actions
32 lines (24 loc) · 758 Bytes
/
Copy pathfont_spec.rb
File metadata and controls
32 lines (24 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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
expect(browser.font(:index, 0)).to exist
end
it "knows about the color attribute" do
expect(browser.font(:index, 0).color).to eq "#ff00ff"
end
it "knows about the face attribute" do
expect(browser.font(:index, 0).face).to eq "Helvetica"
end
it "knows about the size attribute" do
expect(browser.font(:index, 0).size).to eq "12"
end
it "finds all font elements" do
expect(browser.fonts.size).to eq 1
end
end
end