Sha256: e07f43b02d4152ea8c41b81c27bc17feda8e7a5099f876c9b5c81fd277b3ee5d

Contents?: true

Size: 550 Bytes

Versions: 83

Compression:

Stored size: 550 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_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
end

Version data entries

83 entries across 83 versions & 2 rubygems

Version Path
gtksourceview2-1.1.3-x86-mingw32 test/test_source_view.rb
gtksourceview2-1.1.3 test/test_source_view.rb
gtksourceview2-1.1.2 test/test_source_view.rb
gtksourceview2-1.1.2-x86-mingw32 test/test_source_view.rb
gtksourceview2-1.1.1 test/test_source_view.rb
gtksourceview2-1.1.0-x86-mingw32 test/test_source_view.rb
gtksourceview2-1.1.0 test/test_source_view.rb
gtksourceview2-1.0.3-x86-mingw32 test/test_source_view.rb
gtksourceview2-1.0.3 test/test_source_view.rb
gtksourceview2-1.0.2-x86-mingw32 test/test_source_view.rb
gtksourceview2-1.0.2 test/test_source_view.rb
gtksourceview2-1.0.1 test/test_source_view.rb
gtksourceview2-1.0.1-x86-mingw32 test/test_source_view.rb
gtksourceview2-1.0.0-x86-mingw32 test/test_source_view.rb
gtksourceview2-1.0.0 test/test_source_view.rb
gtksourceview2-0.90.9 test/test_source_view.rb
gtksourceview2-0.90.9-x86-mingw32 test/test_source_view.rb
gtksourceview2-0.90.8-x86-mingw32 test/test_source_view.rb
gtksourceview2-0.90.8 test/test_source_view.rb
gtksourceview2-0.90.7-x86-mingw32 test/test_source_view.rb