source: libcaca/trunk/ruby/t/tc_frame.rb @ 2822

Last change on this file since 2822 was 2822, checked in by Sam Hocevar, 12 years ago

Continuing the libcucul-libcaca merge.

File size: 491 bytes
Line 
1require 'test/unit'
2require 'caca'
3
4class TC_Frame < Test::Unit::TestCase
5        def setup
6                @c = Caca::Canvas.new(3, 3)
7        end
8        def test_create
9              f = @c.create_frame(1)
10              assert(f, 'Frame creation failed')
11              @c.free_frame(1)
12        end
13        def test_name
14             f = @c.create_frame(1)
15             assert(@c.frame_name, 'Failed to get frame name')
16             @c.frame_name="test"
17             assert(@c.frame_name == "test", 'Failed to set frame name')
18             @c.free_frame(1)
19        end
20end
Note: See TracBrowser for help on using the repository browser.