[DRE-commits] [ruby-cairo] 01/05: test: update expected value for cairo 1.15 (Closes: #879983)

Daisuke Higuchi dai at moszumanska.debian.org
Sun Oct 29 09:44:56 UTC 2017


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

dai pushed a commit to branch master
in repository ruby-cairo.

commit ca0f608888ffc6501bd758f0cbe993dd7cf02bd0
Author: HIGUCHI Daisuke (VDR dai) <dai at debian.org>
Date:   Sun Oct 29 18:38:34 2017 +0900

    test: update expected value for cairo 1.15 (Closes: #879983)
---
 ...test-update-expected-value-for-cairo-1.15.patch | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/debian/patches/test-update-expected-value-for-cairo-1.15.patch b/debian/patches/test-update-expected-value-for-cairo-1.15.patch
new file mode 100644
index 0000000..b1033df
--- /dev/null
+++ b/debian/patches/test-update-expected-value-for-cairo-1.15.patch
@@ -0,0 +1,23 @@
+Description: test: update expected value for cairo 1.15
+Author: Kouhei Sutou <kou at clear-code.com>
+Origin: upstream, https://github.com/rcairo/rcairo/commit/d0b125e
+Bug: https://github.com/rcairo/rcairo/issues/50
+Bug-Debian: https://bugs.debian.org/879983
+Last-Update: 2017-10-27
+
+diff --git a/test/test_recording_surface.rb b/test/test_recording_surface.rb
+index c5d7f39..2fa28be 100644
+--- a/test/test_recording_surface.rb
++++ b/test/test_recording_surface.rb
+@@ -15,6 +15,10 @@ def test_new
+       context.line_to(80, 100)
+       context.stroke
+     end
+-    assert_equal([10.0, 20.0, 61.0, 61.0], surface.ink_extents)
++    if Cairo.satisfied_version?(1, 15)
++      assert_equal([14.0, 29.0, 67.0, 72.0], surface.ink_extents)
++    else
++      assert_equal([10.0, 20.0, 61.0, 61.0], surface.ink_extents)
++    end
+   end
+ end

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



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