test/test-pixbuf.rb in gdk_pixbuf2-4.2.2 vs test/test-pixbuf.rb in gdk_pixbuf2-4.2.3
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2016-2018 Ruby-GNOME2 Project Team
+# Copyright (C) 2016-2024 Ruby-GNOME Project Team
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
@@ -16,29 +16,10 @@
class TestPixbuf < Test::Unit::TestCase
include GdkPixbufTestUtils
sub_test_case(".new") do
- def r_xpm
- [
- "10 10 3 1",
- " c None",
- ". c #FE0B0B",
- "+ c #FFFFFF",
- "+.......++",
- "+.. ..+",
- "+.. ..+",
- "+.. ...+",
- "+.......++",
- "+.....++++",
- "+..++..+++",
- "+..++...++",
- "+..+++...+",
- "+..++++..+",
- ]
- end
-
sub_test_case("legacy form") do
setup do |&block|
suppress_warning do
block.call
end
@@ -65,15 +46,10 @@
test "file" do
pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
end
- test "xpm" do
- pixbuf = GdkPixbuf::Pixbuf.new(r_xpm)
- assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
- end
-
test "file: size" do
pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"),
32, 48)
assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
assert_equal(32, pixbuf.width)
@@ -131,14 +107,9 @@
end
test "file" do
filename = fixture_path("gnome-logo-icon.png")
pixbuf = GdkPixbuf::Pixbuf.new(:file => filename)
- assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
- end
-
- test "xpm" do
- pixbuf = GdkPixbuf::Pixbuf.new(:xpm => r_xpm)
assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
end
test "file: size" do
filename = fixture_path("gnome-logo-icon.png")