[DRE-commits] [ruby-prawn] 06/10: refresh 0500_disable_tests_using_removed_files.patch

Cédric Boutillier boutil at alioth.debian.org
Thu Aug 8 22:46:11 UTC 2013


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository ruby-prawn.

commit ff7b1c8817f9824d7fa4aca0abc70ebc774cdaff
Author: Cédric Boutillier <boutil at debian.org>
Date:   Fri Aug 9 00:14:25 2013 +0200

    refresh 0500_disable_tests_using_removed_files.patch
---
 .../0500_disable_tests_using_removed_files.patch   |  157 +++++++++++++++++++-
 1 file changed, 155 insertions(+), 2 deletions(-)

diff --git a/debian/patches/0500_disable_tests_using_removed_files.patch b/debian/patches/0500_disable_tests_using_removed_files.patch
index 5c822ea..6569b4a 100644
--- a/debian/patches/0500_disable_tests_using_removed_files.patch
+++ b/debian/patches/0500_disable_tests_using_removed_files.patch
@@ -3,7 +3,7 @@ Description: disable some specs after removal of some files from the source pack
  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 at debian.org>
-Last-Update: 2013-06-22
+Last-Update: 2013-08-08
 
 --- a/spec/font_spec.rb
 +++ b/spec/font_spec.rb
@@ -160,7 +160,160 @@ Last-Update: 2013-06-22
 +  # replace dice.png by pigs.jpg as dice.png has been removed from the source package. (Debian patch)
    it "should raise_error Prawn::Errors::TemplateError when given a non PDF as a template" do
 -    filename = "#{Prawn::DATADIR}/images/dice.png"
-+    filename = "#{Prawn::DATADIR}/images/pigs.png"
++    filename = "#{Prawn::DATADIR}/images/pigs.jpg"
  
      lambda { Prawn::Core::ObjectStore.new(:template => filename) }.should raise_error(Prawn::Errors::TemplateError)
    end
+--- a/spec/png_spec.rb
++++ b/spec/png_spec.rb
+@@ -17,7 +17,7 @@
+     @img_data = File.binread(@filename)
+   end
+ 
+-  it "should read the attributes from the header chunk correctly" do
++  xit "should read the attributes from the header chunk correctly" do
+     png = Prawn::Images::PNG.new(@img_data)
+ 
+     png.width.should == 21
+@@ -29,7 +29,7 @@
+     png.interlace_method.should == 0
+   end
+ 
+-  it "should read the image data chunk correctly" do
++  xit "should read the image data chunk correctly" do
+     png = Prawn::Images::PNG.new(@img_data)
+     data = File.binread(@data_filename)
+     png.img_data.should == data
+@@ -47,7 +47,7 @@
+   # that indicates the color that should be interpreted as transparent.
+   #
+   # http://www.w3.org/TR/PNG/#11tRNS
+-  it "should read the tRNS chunk correctly" do
++  xit "should read the tRNS chunk correctly" do
+     png = Prawn::Images::PNG.new(@img_data)
+     png.transparency[:grayscale].should == 255
+   end
+@@ -61,7 +61,7 @@
+     @img_data = File.binread(@filename)
+   end
+ 
+-  it "should read the attributes from the header chunk correctly" do
++  xit "should read the attributes from the header chunk correctly" do
+     png = Prawn::Images::PNG.new(@img_data)
+ 
+     png.width.should == 258
+@@ -73,7 +73,7 @@
+     png.interlace_method.should == 0
+   end
+ 
+-  it "should read the image data chunk correctly" do
++  xit "should read the image data chunk correctly" do
+     png = Prawn::Images::PNG.new(@img_data)
+     data = File.binread(@data_filename)
+     png.img_data.should == data
+@@ -92,7 +92,7 @@
+   # case it's green.
+   #
+   # http://www.w3.org/TR/PNG/#11tRNS
+-  it "should read the tRNS chunk correctly" do
++  xit "should read the tRNS chunk correctly" do
+     png = Prawn::Images::PNG.new(@img_data)
+     png.transparency[:rgb].should == [0, 255, 0]
+   end
+@@ -108,7 +108,7 @@
+     @img_data = File.binread(@filename)
+   end
+ 
+-  it "should read the attributes from the header chunk correctly" do
++  xit "should read the attributes from the header chunk correctly" do
+     png = Prawn::Images::PNG.new(@img_data)
+ 
+     png.width.should == 50
+@@ -120,7 +120,7 @@
+     png.interlace_method.should == 0
+   end
+ 
+-  it "should read the image data chunk correctly" do
++  xit "should read the image data chunk correctly" do
+     png = Prawn::Images::PNG.new(@img_data)
+     data = File.binread(@data_filename)
+     png.img_data.should == data
+@@ -136,7 +136,7 @@
+     @img_data = File.binread(@filename)
+   end
+ 
+-  it "should read the attributes from the header chunk correctly" do
++  xit "should read the attributes from the header chunk correctly" do
+     png = Prawn::Images::PNG.new(@img_data)
+ 
+     png.width.should == 16
+@@ -148,14 +148,14 @@
+     png.interlace_method.should == 0
+   end
+ 
+-  it "should correctly return the raw image data (with no alpha channel) from the image data chunk" do
++  xit "should correctly return the raw image data (with no alpha channel) from the image data chunk" do
+     png = Prawn::Images::PNG.new(@img_data)
+     png.split_alpha_channel!
+     data = File.binread(@data_filename)
+     png.img_data.should == data
+   end
+ 
+-  it "should correctly extract the alpha channel data from the image data chunk" do
++  xit "should correctly extract the alpha channel data from the image data chunk" do
+     png = Prawn::Images::PNG.new(@img_data)
+     png.split_alpha_channel!
+     data = File.binread(@alpha_data_filename)
+@@ -172,7 +172,7 @@
+     @img_data = File.binread(@filename)
+   end
+ 
+-  it "should read the attributes from the header chunk correctly" do
++  xit "should read the attributes from the header chunk correctly" do
+     png = Prawn::Images::PNG.new(@img_data)
+ 
+     png.width.should == 320
+@@ -184,7 +184,7 @@
+     png.interlace_method.should == 0
+   end
+ 
+-  it "should correctly return the raw image data (with no alpha channel) from the image data chunk" do
++  xit "should correctly return the raw image data (with no alpha channel) from the image data chunk" do
+     png = Prawn::Images::PNG.new(@img_data)
+     png.split_alpha_channel!
+     data = File.binread(@data_filename)
+@@ -194,7 +194,7 @@
+     Zlib::Inflate.inflate(png.img_data).should == Zlib::Inflate.inflate(data)
+   end
+ 
+-  it "should correctly extract the alpha channel data from the image data chunk" do
++  xit "should correctly extract the alpha channel data from the image data chunk" do
+     png = Prawn::Images::PNG.new(@img_data)
+     png.split_alpha_channel!
+     data = File.binread(@alpha_data_filename)
+@@ -212,7 +212,7 @@
+     @img_data = File.binread(@filename)
+   end
+ 
+-  it "should read the attributes from the header chunk correctly" do
++  xit "should read the attributes from the header chunk correctly" do
+     png = Prawn::Images::PNG.new(@img_data)
+ 
+     png.width.should == 32
+@@ -224,14 +224,14 @@
+     png.interlace_method.should == 0
+   end
+ 
+-  it "should correctly return the raw image data (with no alpha channel) from the image data chunk" do
++  xit "should correctly return the raw image data (with no alpha channel) from the image data chunk" do
+     png = Prawn::Images::PNG.new(@img_data)
+     png.split_alpha_channel!
+     data = File.binread(@data_filename)
+     png.img_data.should == data
+   end
+ 
+-  it "should correctly extract the alpha channel data from the image data chunk" do
++  xit "should correctly extract the alpha channel data from the image data chunk" do
+     png = Prawn::Images::PNG.new(@img_data)
+     png.split_alpha_channel!
+     data = File.binread(@alpha_data_filename)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-prawn.git



More information about the Pkg-ruby-extras-commits mailing list