Merge branch 'master' into gfxpoly
[swftools.git] / spec / transparency.spec.rb
1 require File.dirname(__FILE__) + '/spec_helper'
2
3 describe "pdf conversion" do
4     convert_file "transparency.pdf" do
5         pixel_at(174,135).should_be_of_color 0xff0000
6         pixel_at(167,112).should_be_of_color 0x000000
7         pixel_at(172,75).should_be_of_color 0x000000
8         pixel_at(199,108).should_be_of_color 0x000000
9         pixel_at(234,141).should_be_of_color 0x000000
10         pixel_at(202,142).should_be_of_color 0x0000ff
11         pixel_at(233,111).should_be_of_color 0x00ffff
12         pixel_at(233,71).should_be_of_color 0xffff00
13         pixel_at(199,71).should_be_of_color 0x00ff00
14         pixel_at(594,277).should_be_brighter_than pixel_at(439,279)
15         pixel_at(552,284).should_be_brighter_than pixel_at(361,285)
16         pixel_at(474,294).should_be_brighter_than pixel_at(325,277)
17         pixel_at(283,276).should_be_brighter_than pixel_at(94,277)
18         area_at(86,290,107,301).should_not_be_plain_colored
19         area_at(158,287,186,300).should_not_be_plain_colored
20         area_at(234,288,262,300).should_not_be_plain_colored
21         area_at(312,287,337,300).should_not_be_plain_colored
22         area_at(162,438,244,455).should_not_be_plain_colored
23         pixel_at(201,400).should_be_brighter_than pixel_at(174,345)
24         pixel_at(299,477).should_be_brighter_than pixel_at(237,555)
25         area_at(407,400,435,422).should_be_plain_colored
26     end
27 end