added color support to xml device
[swftools.git] / spec / imagematrix.spec.rb
1 require File.dirname(__FILE__) + '/spec_helper'
2
3 describe "pdf conversion" do
4     convert_file "imagematrix.pdf" do
5         pixel_at(22,239).should_be_of_color 0xff00ff
6         pixel_at(45,240).should_be_of_color 0x0000ff
7         pixel_at(72,239).should_be_of_color 0xffff00
8         pixel_at(98,236).should_be_of_color 0xff0000
9         pixel_at(99,312).should_be_of_color 0xffffff
10         pixel_at(80,312).should_be_of_color 0xff00ff
11         pixel_at(46,312).should_be_of_color 0x00ffff
12         pixel_at(26,314).should_be_of_color 0x0000ff
13         pixel_at(21,385).should_be_of_color 0xffff00
14         pixel_at(46,384).should_be_of_color 0xff00ff
15         pixel_at(71,384).should_be_of_color 0x00ff00
16         pixel_at(95,383).should_be_of_color 0x0000ff
17         pixel_at(97,459).should_be_of_color 0x00ffff
18         pixel_at(75,460).should_be_of_color 0x0000ff
19         pixel_at(50,460).should_be_of_color 0xffffff
20         pixel_at(23,461).should_be_of_color 0x00ff00
21         pixel_at(216,436).should_be_of_color 0xff00ff
22         pixel_at(213,415).should_be_of_color 0x0000ff
23         pixel_at(214,386).should_be_of_color 0xffff00
24         pixel_at(216,360).should_be_of_color 0x00ff00
25         pixel_at(234,364).should_be_of_color 0xffffff
26         pixel_at(235,388).should_be_of_color 0xff00ff
27         pixel_at(233,416).should_be_of_color 0x00ffff
28         pixel_at(237,431).should_be_of_color 0x0000ff
29         pixel_at(260,433).should_be_of_color 0xffff00
30         pixel_at(263,414).should_be_of_color 0xff00ff
31         pixel_at(261,393).should_be_of_color 0x00ff00
32         pixel_at(263,365).should_be_of_color 0x0000ff
33         pixel_at(291,363).should_be_of_color 0x00ffff
34         pixel_at(288,390).should_be_of_color 0x0000ff
35         pixel_at(285,412).should_be_of_color 0xffffff
36         pixel_at(285,437).should_be_of_color 0xff0000
37         pixel_at(286,287).should_be_of_color 0x00ffff
38         pixel_at(265,287).should_be_of_color 0x0000ff
39         pixel_at(244,290).should_be_of_color 0xffffff
40         pixel_at(219,290).should_be_of_color 0x00ff00
41         pixel_at(209,270).should_be_of_color 0xffff00
42         pixel_at(238,266).should_be_of_color 0xff00ff
43         pixel_at(266,265).should_be_of_color 0x00ff00
44         pixel_at(283,265).should_be_of_color 0x0000ff
45         pixel_at(289,236).should_be_of_color 0xffffff
46         pixel_at(264,237).should_be_of_color 0xff00ff
47         pixel_at(238,241).should_be_of_color 0x00ffff
48         pixel_at(216,235).should_be_of_color 0x0000ff
49         pixel_at(210,213).should_be_of_color 0xff00ff
50         pixel_at(238,213).should_be_of_color 0x0000ff
51         pixel_at(267,211).should_be_of_color 0xffff00
52         pixel_at(287,211).should_be_of_color 0xff0000
53         pixel_at(257,118).should_be_of_color 0x00ffff
54         pixel_at(262,96).should_be_of_color 0x0000ff
55         pixel_at(263,69).should_be_of_color 0xffffff
56         pixel_at(262,43).should_be_of_color 0xff0000
57         pixel_at(285,41).should_be_of_color 0xffff00
58         pixel_at(290,67).should_be_of_color 0xff00ff
59         pixel_at(288,92).should_be_of_color 0x00ff00
60         pixel_at(285,115).should_be_of_color 0x0000ff
61         pixel_at(312,120).should_be_of_color 0xffffff
62         pixel_at(311,94).should_be_of_color 0xff00ff
63         pixel_at(310,69).should_be_of_color 0x00ffff
64         pixel_at(311,45).should_be_of_color 0x0000ff
65         pixel_at(335,44).should_be_of_color 0xff00ff
66         pixel_at(335,67).should_be_of_color 0x0000ff
67         pixel_at(337,94).should_be_of_color 0xffff00
68         pixel_at(337,119).should_be_of_color 0x00ff00
69         pixel_at(367,310).should_be_of_color 0xff00ff
70         pixel_at(390,290).should_be_of_color 0x0000ff
71         pixel_at(406,277).should_be_of_color 0xffff00
72         pixel_at(426,260).should_be_of_color 0xff0000
73         pixel_at(438,280).should_be_of_color 0xffffff
74         pixel_at(418,296).should_be_of_color 0xff00ff
75         pixel_at(404,308).should_be_of_color 0x00ffff
76         pixel_at(380,324).should_be_of_color 0x0000ff
77         pixel_at(401,344).should_be_of_color 0xffff00
78         pixel_at(415,330).should_be_of_color 0xff00ff
79         pixel_at(434,314).should_be_of_color 0x00ff00
80         pixel_at(451,301).should_be_of_color 0x0000ff
81         pixel_at(472,316).should_be_of_color 0x00ffff
82         pixel_at(452,333).should_be_of_color 0x0000ff
83         pixel_at(434,349).should_be_of_color 0xffffff
84         pixel_at(415,362).should_be_of_color 0x00ff00
85         pixel_at(375,484).should_be_of_color 0xff00ff
86         pixel_at(360,518).should_be_of_color 0x0000ff
87         pixel_at(343,552).should_be_of_color 0xffff00
88         pixel_at(334,585).should_be_of_color 0x00ff00
89         pixel_at(379,574).should_be_of_color 0xffffff
90         pixel_at(392,538).should_be_of_color 0xff00ff
91         pixel_at(406,505).should_be_of_color 0x00ffff
92         pixel_at(420,472).should_be_of_color 0x0000ff
93         pixel_at(468,456).should_be_of_color 0xffff00
94         pixel_at(455,496).should_be_of_color 0xff00ff
95         pixel_at(438,527).should_be_of_color 0x00ff00
96         pixel_at(427,558).should_be_of_color 0x0000ff
97         pixel_at(515,443).should_be_of_color 0xff0000
98         pixel_at(504,480).should_be_of_color 0xffffff
99         pixel_at(489,512).should_be_of_color 0x0000ff
100         pixel_at(477,547).should_be_of_color 0x00ffff
101         pixel_at(520,238).should_be_of_color 0xff0000
102         pixel_at(503,222).should_be_of_color 0xffff00
103         pixel_at(486,204).should_be_of_color 0x0000ff
104         pixel_at(463,187).should_be_of_color 0xff00ff
105         pixel_at(478,168).should_be_of_color 0x0000ff
106         pixel_at(500,148).should_be_of_color 0xffff00
107         pixel_at(516,130).should_be_of_color 0x00ff00
108         pixel_at(536,146).should_be_of_color 0xffffff
109         pixel_at(517,165).should_be_of_color 0xff00ff
110         pixel_at(501,187).should_be_of_color 0x00ffff
111         pixel_at(518,198).should_be_of_color 0xff00ff
112         pixel_at(533,183).should_be_of_color 0x00ff00
113         pixel_at(551,163).should_be_of_color 0x0000ff
114         pixel_at(572,178).should_be_of_color 0x00ffff
115         pixel_at(553,197).should_be_of_color 0x0000ff
116         pixel_at(538,216).should_be_of_color 0xffffff
117     end
118 end