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: 2019-01-07

--- a/spec/prawn/images_spec.rb
+++ b/spec/prawn/images_spec.rb
@@ -117,23 +117,25 @@
   end
 
   it 'raise_errors an UnsupportedImageType if passed a BMP' do
+    pending "spec disabled since tru256.bmp removed from source package (Debian patch)
     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
+    pending "spec disabled since dice_interlaced.png removed from source package (Debian patch)"
     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 '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 @@
     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 @@
       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 @@
     # 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 @@
     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 @@
       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 @@
     # 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
@@ -156,7 +156,7 @@
       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)
@@ -168,7 +168,7 @@
       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)
@@ -186,7 +186,7 @@
       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)
@@ -198,7 +198,7 @@
       expect(png.interlace_method).to eq(0)
     end
 
-    it 'correctly returns the raw image data (with no alpha channel) from '\
+    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!
@@ -206,7 +206,7 @@
       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)
@@ -253,7 +253,7 @@
     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)
@@ -265,7 +265,7 @@
       expect(png.interlace_method).to eq(0)
     end
 
-    it 'correctly returns the raw image data (with no alpha channel) from '\
+    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!
@@ -273,7 +273,7 @@
       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)
