Class/Module Index [+]

Quicksearch

TestSourceView

Public Instance Methods

test_mark_category_background() click to toggle source
# File gtksourceview2/test/test_source_view.rb, line 3
def test_mark_category_background
  view = Gtk::SourceView.new

  red_rgb = [65535, 0, 0]
  red_color = Gdk::Color.parse("red")
  assert_not_equal(red_rgb, view.get_mark_category_background("XXX").to_a)

  view.set_mark_category_background("XXX", red_color)
  assert_equal(red_rgb, view.get_mark_category_background("XXX").to_a)

  view.set_mark_category_background("XXX", nil)
  assert_not_equal(red_rgb, view.get_mark_category_background("XXX").to_a)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.