25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
474 B

  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