| Revision 2822,
491 bytes
checked in by sam, 5 years ago
(diff) |
|
Continuing the libcucul-libcaca merge.
|
| Line | |
|---|
| 1 | require 'test/unit' |
|---|
| 2 | require 'caca' |
|---|
| 3 | |
|---|
| 4 | class 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 |
|---|
| 20 | end |
|---|
Note: See
TracBrowser
for help on using the repository browser.