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

Version Path
gtksourceview2-3.4.3 test/test_source_view.rb
gtksourceview2-3.4.2 test/test_source_view.rb
gtksourceview2-3.4.1 test/test_source_view.rb
gtksourceview2-3.4.0 test/test_source_view.rb
gtksourceview2-3.3.9 test/test_source_view.rb
gtksourceview2-3.3.8 test/test_source_view.rb
gtksourceview2-3.3.7 test/test_source_view.rb
gtksourceview2-3.3.6 test/test_source_view.rb
gtksourceview2-3.3.5 test/test_source_view.rb
gtksourceview2-3.3.4 test/test_source_view.rb
gtksourceview2-3.3.3 test/test_source_view.rb
gtksourceview2-3.3.2 test/test_source_view.rb
gtksourceview2-3.3.1 test/test_source_view.rb
gtksourceview2-3.3.0 test/test_source_view.rb
gtksourceview2-3.2.9 test/test_source_view.rb
gtksourceview2-3.2.8 test/test_source_view.rb
gtksourceview2-3.2.7 test/test_source_view.rb
gtksourceview2-3.2.6 test/test_source_view.rb
gtksourceview2-3.2.5 test/test_source_view.rb
gtksourceview2-3.2.4 test/test_source_view.rb