You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819
  1. require 'caca'
  2. class TC_Frame < MiniTest::Test
  3. def setup
  4. @c = Caca::Canvas.new(3, 3)
  5. end
  6. def test_create
  7. f = @c.create_frame(1)
  8. assert(f, 'Frame creation failed')
  9. @c.free_frame(1)
  10. end
  11. def test_name
  12. f = @c.create_frame(1)
  13. assert(@c.frame_name, 'Failed to get frame name')
  14. @c.frame_name="test"
  15. assert(@c.frame_name == "test", 'Failed to set frame name')
  16. @c.free_frame(1)
  17. end
  18. end