added fonts test
[swftools.git] / spec / simpletext.spec.rb
1 require File.dirname(__FILE__) + '/spec_helper'
2
3 describe "pdf conversion" do
4     convert_file "simpletext.pdf" do
5         pixel_at(109,133).should_be_of_color 0x000000
6         pixel_at(154,139).should_be_brighter_than pixel_at(151,139)
7         pixel_at(53,136).should_be_darker_than pixel_at(58,166)
8         pixel_at(97,164).should_be_the_same_as pixel_at(208,256)
9         area_at(215,80,333,156).should_be_plain_colored
10         area_at(46,126,180,158).should_not_be_plain_colored
11         area_at(38,118,170,152).should_contain_text 'Hello World'
12     end
13 end