X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=spec%2Fsimpletext.spec.rb;fp=spec%2Fsimpletext.spec.rb;h=d5911ad463908453a024b28cef9c58c3b75ff7e8;hb=98caa66dc7bb7a304b7b9d4d95d8d0849cefec01;hp=0000000000000000000000000000000000000000;hpb=f42e0edd3094808c319a89594ae6f55843a0a3bf;p=swftools.git diff --git a/spec/simpletext.spec.rb b/spec/simpletext.spec.rb new file mode 100644 index 0000000..d5911ad --- /dev/null +++ b/spec/simpletext.spec.rb @@ -0,0 +1,12 @@ +require File.dirname(__FILE__) + '/spec_helper' + +describe "pdf conversion" do + convert_file "simpletext.pdf" do + pixel_at(109,133).should_be_of_color 0x000000 + pixel_at(154,139).should_be_brighter_than pixel_at(151,139) + pixel_at(53,136).should_be_darker_than pixel_at(58,166) + pixel_at(97,164).should_be_the_same_as pixel_at(208,256) + area_at(215,80,333,156).should_be_plain_colored + area_at(46,126,180,158).should_not_be_plain_colored + end +end