X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=spec%2Fcircularfill.spec.rb;fp=spec%2Fcircularfill.spec.rb;h=5d15d2d0aeb778c2f8f60bad9de4581f840d8a18;hb=98caa66dc7bb7a304b7b9d4d95d8d0849cefec01;hp=0000000000000000000000000000000000000000;hpb=f42e0edd3094808c319a89594ae6f55843a0a3bf;p=swftools.git diff --git a/spec/circularfill.spec.rb b/spec/circularfill.spec.rb new file mode 100644 index 0000000..5d15d2d --- /dev/null +++ b/spec/circularfill.spec.rb @@ -0,0 +1,29 @@ +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 +end