Sha256: 7ab621c835c19298aabc0083f5058d4a86894f941ddbc42837f41a48a6719073
Contents?: true
Size: 1.38 KB
Versions: 3
Compression:
Stored size: 1.38 KB
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2013-2014 Masafumi Yokoyama <myokoym@gmail.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. require "mireru/widget/text" class TextTest < Test::Unit::TestCase include MireruTestUtils def setup @view = Mireru::Widget::Text.new(__FILE__) end def test_buffer_from_file_of_text buffer = @view.__send__(:buffer_from_file, __FILE__) assert_kind_of(GtkSource::Buffer, buffer) end def test_buffer_from_text_of_utf8 buffer = @view.__send__(:buffer_from_text, "御庭番") assert_kind_of(GtkSource::Buffer, buffer) end def test_buffer_from_text_of_sjis buffer = @view.__send__(:buffer_from_text, "御庭番".encode("SJIS")) assert_kind_of(GtkSource::Buffer, buffer) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mireru-0.9.3 | test/widget/test-text.rb |
mireru-0.9.2 | test/widget/test-text.rb |
mireru-0.9.1 | test/widget/test-text.rb |