X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=spec%2Fcircularfill.spec.rb;h=587a2d23bbfbf6de341c86bb81d3e503a9223f51;hb=7599478924702568afb53a7a40fe66a13c61c1ed;hp=5d15d2d0aeb778c2f8f60bad9de4581f840d8a18;hpb=98caa66dc7bb7a304b7b9d4d95d8d0849cefec01;p=swftools.git diff --git a/spec/circularfill.spec.rb b/spec/circularfill.spec.rb index 5d15d2d..587a2d2 100644 --- a/spec/circularfill.spec.rb +++ b/spec/circularfill.spec.rb @@ -1,29 +1,30 @@ require File.dirname(__FILE__) + '/spec_helper' describe "pdf conversion" do - convert_file "circularfill.pdf" do - pixel_at(194,224).should_be_of_color 0xffffff - pixel_at(169,225).should_be_of_color 0xff0000 - pixel_at(138,225).should_be_of_color 0xffffff - pixel_at(72,162).should_be_of_color 0xff0000 - pixel_at(195,132).should_be_of_color 0xff0000 - pixel_at(69,132).should_be_of_color 0xffffff - pixel_at(310,289).should_be_of_color 0xff0000 - pixel_at(287,200).should_be_of_color 0xff0000 - pixel_at(309,161).should_be_of_color 0xff0000 - pixel_at(287,161).should_be_of_color 0xff0000 - pixel_at(109,336).should_be_of_color 0xff0000 - pixel_at(310,306).should_be_of_color 0xff0000 - pixel_at(282,340).should_be_of_color 0xff0000 - pixel_at(409,252).should_be_of_color 0xff0000 - pixel_at(139,310).should_be_of_color 0xffffff - pixel_at(312,343).should_be_of_color 0xffffff - pixel_at(311,248).should_be_of_color 0xff0000 - pixel_at(102,228).should_be_of_color 0xff0000 - pixel_at(374,281).should_be_of_color 0xff0000 - pixel_at(167,281).should_be_of_color 0xff0000 - pixel_at(409,285).should_be_of_color 0xffffff - pixel_at(166,190).should_be_of_color 0xffffff - pixel_at(138,191).should_be_of_color 0xff0000 - end + + convert_file "circularfill.pdf" do + pixel_at(194,224).should_be_of_color 0xffffff + pixel_at(169,225).should_be_of_color 0xff0000 + pixel_at(138,225).should_be_of_color 0xffffff + pixel_at(72,162).should_be_of_color 0xff0000 + pixel_at(195,132).should_be_of_color 0xff0000 + pixel_at(69,132).should_be_of_color 0xffffff + pixel_at(310,289).should_be_of_color 0xff0000 + pixel_at(287,200).should_be_of_color 0xff0000 + pixel_at(309,161).should_be_of_color 0xff0000 + pixel_at(287,161).should_be_of_color 0xff0000 + pixel_at(109,336).should_be_of_color 0xff0000 + pixel_at(310,306).should_be_of_color 0xff0000 + pixel_at(282,340).should_be_of_color 0xff0000 + pixel_at(409,252).should_be_of_color 0xff0000 + pixel_at(139,310).should_be_of_color 0xffffff + pixel_at(312,343).should_be_of_color 0xffffff + pixel_at(311,248).should_be_of_color 0xff0000 + pixel_at(102,228).should_be_of_color 0xff0000 + pixel_at(374,281).should_be_of_color 0xff0000 + pixel_at(167,281).should_be_of_color 0xff0000 + pixel_at(409,285).should_be_of_color 0xffffff + pixel_at(166,190).should_be_of_color 0xffffff + pixel_at(138,191).should_be_of_color 0xff0000 + end end