Sha256: 9a033e38596a02eed215270a37be1ec5ac68c6c54156f78163b1d5af040a6d5c
Contents?: true
Size: 556 Bytes
Versions: 52
Compression:
Stored size: 556 Bytes
Contents
# -*- coding: utf-8 -*- class TestSourceView < Test::Unit::TestCase def test_mark_category_background view = Gtk::SourceView.new red_rgb = [65535, 0, 0] red_color = Gdk::Color.parse("red") assert_nil(view.get_mark_category_background("new-category")) view.set_mark_category_background("new-category", red_color) assert_equal(red_rgb, view.get_mark_category_background("new-category").to_a) view.set_mark_category_background("new-category", nil) assert_nil(view.get_mark_category_background("new-category")) end end
Version data entries
52 entries across 52 versions & 1 rubygems