File: 0500_disable_tests_using_removed_files.patch

package info (click to toggle)
ruby-prawn 2.5.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,528 kB
  • sloc: ruby: 17,688; sh: 43; makefile: 20
file content (208 lines) | stat: -rw-r--r-- 8,858 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
Description: disable some specs after removal of some files from the source package
 Some specs are using for the moment images with unclear license and/or
 non-free fonts. These are disabled because they cannot be run since these
 files have been removed from the Debian source package.
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2021-11-22

--- a/spec/prawn/images_spec.rb
+++ b/spec/prawn/images_spec.rb
@@ -119,24 +119,24 @@ describe Prawn::Images do
     end
   end
 
-  it 'raise_errors an UnsupportedImageType if passed a BMP' do
+  xit 'raise_errors an UnsupportedImageType if passed a BMP' do
     filename = "#{Prawn::DATADIR}/images/tru256.bmp"
     expect { pdf.image(filename, at: [100, 100]) }
       .to raise_error(Prawn::Errors::UnsupportedImageType)
   end
 
-  it 'raise_errors an UnsupportedImageType if passed an interlaced PNG' do
+  xit 'raise_errors an UnsupportedImageType if passed an interlaced PNG' do
     filename = "#{Prawn::DATADIR}/images/dice_interlaced.png"
     expect { pdf.image(filename, at: [100, 100]) }
       .to raise_error(Prawn::Errors::UnsupportedImageType)
   end
 
-  it 'bumps PDF version to 1.5 or greater on embedding 16-bit PNGs' do
+  xit 'bumps PDF version to 1.5 or greater on embedding 16-bit PNGs' do
     pdf.image("#{Prawn::DATADIR}/images/16bit.png")
     expect(pdf.state.version).to be >= 1.5
   end
 
-  it 'embeds 16-bit alpha channels for 16-bit PNGs' do
+  xit 'embeds 16-bit alpha channels for 16-bit PNGs' do
     pdf.image("#{Prawn::DATADIR}/images/16bit.png")
 
     output = pdf.render
--- a/spec/prawn/images/png_spec.rb
+++ b/spec/prawn/images/png_spec.rb
@@ -13,15 +13,15 @@ describe Prawn::Images::PNG do
   describe 'When making a pdf file with png images' do
     image_dir = "#{Prawn::DATADIR}/images"
     images = [
-      ['Type 0', "#{image_dir}/web-links.png"],
-      ['Type 0 with transparency', "#{image_dir}/ruport_type0.png"],
-      ['Type 2', "#{image_dir}/ruport.png"],
-      ['Type 2 with transparency', "#{image_dir}/arrow2.png"],
+      #['Type 0', "#{image_dir}/web-links.png"],
+      #['Type 0 with transparency', "#{image_dir}/ruport_type0.png"],
+      #['Type 2', "#{image_dir}/ruport.png"],
+      #['Type 2 with transparency', "#{image_dir}/arrow2.png"],
       ['Type 3', "#{image_dir}/indexed_color.png"],
       ['Type 3 with transparency', "#{image_dir}/indexed_transparency.png"],
-      ['Type 4', "#{image_dir}/page_white_text.png"],
-      ['Type 6', "#{image_dir}/dice.png"],
-      ['Type 6 in 16bit', "#{image_dir}/16bit.png"],
+      #['Type 4', "#{image_dir}/page_white_text.png"],
+      #['Type 6', "#{image_dir}/dice.png"],
+      #['Type 6 in 16bit', "#{image_dir}/16bit.png"],
     ]
 
     images.each do |header, file|
@@ -46,7 +46,7 @@ describe Prawn::Images::PNG do
     let(:data_filename) { "#{Prawn::DATADIR}/images/web-links.dat" }
     let(:img_data) { File.binread("#{Prawn::DATADIR}/images/web-links.png") }
 
-    it 'reads the attributes from the header chunk correctly' do
+    xit 'reads the attributes from the header chunk correctly' do
       png = described_class.new(img_data)
 
       expect(png.width).to eq(21)
@@ -58,7 +58,7 @@ describe Prawn::Images::PNG do
       expect(png.interlace_method).to eq(0)
     end
 
-    it 'reads the image data chunk correctly' do
+    xit 'reads the image data chunk correctly' do
       png = described_class.new(img_data)
       data = Zlib::Inflate.inflate(File.binread(data_filename))
       expect(png.img_data).to eq(data)
@@ -72,7 +72,7 @@ describe Prawn::Images::PNG do
     # value that indicates the color that should be interpreted as transparent.
     #
     # http://www.w3.org/TR/PNG/#11tRNS
-    it 'reads the tRNS chunk correctly' do
+    xit 'reads the tRNS chunk correctly' do
       png = described_class.new(img_data)
       expect(png.transparency[:grayscale]).to eq(255)
     end
@@ -82,7 +82,7 @@ describe Prawn::Images::PNG do
     let(:data_filename) { "#{Prawn::DATADIR}/images/ruport_data.dat" }
     let(:img_data) { File.binread("#{Prawn::DATADIR}/images/ruport.png") }
 
-    it 'reads the attributes from the header chunk correctly' do
+    xit 'reads the attributes from the header chunk correctly' do
       png = described_class.new(img_data)
 
       expect(png.width).to eq(258)
@@ -94,7 +94,7 @@ describe Prawn::Images::PNG do
       expect(png.interlace_method).to eq(0)
     end
 
-    it 'reads the image data chunk correctly' do
+    xit 'reads the image data chunk correctly' do
       png = described_class.new(img_data)
       data = Zlib::Inflate.inflate(File.binread(data_filename))
       expect(png.img_data).to eq(data)
@@ -109,7 +109,7 @@ describe Prawn::Images::PNG do
     # In this case it's green.
     #
     # http://www.w3.org/TR/PNG/#11tRNS
-    it 'reads the tRNS chunk correctly' do
+    xit 'reads the tRNS chunk correctly' do
       png = described_class.new(img_data)
       expect(png.transparency[:rgb]).to eq([0, 255, 0])
     end
@@ -155,7 +155,7 @@ describe Prawn::Images::PNG do
       File.binread("#{Prawn::DATADIR}/images/indexed_color.png")
     end
 
-    it 'reads the attributes from the header chunk correctly' do
+    xit 'reads the attributes from the header chunk correctly' do
       png = described_class.new(img_data)
 
       expect(png.width).to eq(150)
@@ -167,7 +167,7 @@ describe Prawn::Images::PNG do
       expect(png.interlace_method).to eq(0)
     end
 
-    it 'reads the image data chunk correctly' do
+    xit 'reads the image data chunk correctly' do
       png = described_class.new(img_data)
       data = Zlib::Inflate.inflate(File.binread(data_filename))
       expect(png.img_data).to eq(data)
@@ -185,7 +185,7 @@ describe Prawn::Images::PNG do
       File.binread("#{Prawn::DATADIR}/images/page_white_text.png")
     end
 
-    it 'reads the attributes from the header chunk correctly' do
+    xit 'reads the attributes from the header chunk correctly' do
       png = described_class.new(img_data)
 
       expect(png.width).to eq(16)
@@ -197,14 +197,14 @@ describe Prawn::Images::PNG do
       expect(png.interlace_method).to eq(0)
     end
 
-    it 'correctly returns the raw image data (with no alpha channel) from the image data chunk' do
+    xit 'correctly returns the raw image data (with no alpha channel) from the image data chunk' do
       png = described_class.new(img_data)
       png.split_alpha_channel!
       data = File.binread(color_data_filename)
       expect(png.img_data).to eq(data)
     end
 
-    it 'correctly extracts the alpha channel data from the image data chunk' do
+    xit 'correctly extracts the alpha channel data from the image data chunk' do
       png = described_class.new(img_data)
       png.split_alpha_channel!
       data = File.binread(alpha_data_filename)
@@ -229,7 +229,7 @@ describe Prawn::Images::PNG do
       expect(png.interlace_method).to eq(0)
     end
 
-    it 'correctly returns the raw image data (with no alpha channel) from the image data chunk' do
+    xit 'correctly returns the raw image data (with no alpha channel) from the image data chunk' do
       png = described_class.new(img_data)
       png.split_alpha_channel!
       data = File.binread(color_data_filename)
@@ -250,7 +250,7 @@ describe Prawn::Images::PNG do
     let(:alpha_data_filename) { "#{Prawn::DATADIR}/images/16bit.alpha" }
     let(:img_data) { File.binread("#{Prawn::DATADIR}/images/16bit.png") }
 
-    it 'reads the attributes from the header chunk correctly' do
+    xit 'reads the attributes from the header chunk correctly' do
       png = described_class.new(img_data)
 
       expect(png.width).to eq(32)
@@ -269,7 +269,7 @@ describe Prawn::Images::PNG do
       expect(png.img_data).to eq(data)
     end
 
-    it 'correctly extracts the alpha channel data from the image data chunk' do
+    xit 'correctly extracts the alpha channel data from the image data chunk' do
       png = described_class.new(img_data)
       png.split_alpha_channel!
       data = File.binread(alpha_data_filename)
--- a/spec/prawn/font_spec.rb
+++ b/spec/prawn/font_spec.rb
@@ -480,7 +480,7 @@ describe Prawn::Font do
         expect(desc_font[:CIDToGIDMap]).to eq(:Identity)
       end
 
-      it 'contains glyph widths' do
+      xit 'contains glyph widths' do
         desc_font = ref.data[:DescendantFonts].first.data
         expect(desc_font[:W]).to be_an(Array)
         expect(desc_font[:W].length).to eq(2)
@@ -489,7 +489,7 @@ describe Prawn::Font do
         expect(desc_font[:W][1].length).to eq(6108) # All glyph metrics
       end
 
-      it 'propely embeds font data' do
+      xit 'propely embeds font data' do
         descriptor = ref.data[:DescendantFonts].first.data[:FontDescriptor].data
         expect(descriptor).to have_key(:FontFile2)
         expect(descriptor[:FontFile2].data[:Length1]).to eq(741_536)