[MacRuby-devel] [MacRuby] #247: Hotcocoa Graphics tests don't run

MacRuby ruby-noreply at macosforge.org
Tue Apr 28 05:41:18 PDT 2009

#247: Hotcocoa Graphics tests don't run
 Reporter:  dave.baldwin@…              |       Owner:  lsansonetti@…        
     Type:  defect                      |      Status:  new                  
 Priority:  major                       |   Milestone:                       
Component:  MacRuby                     |    Keywords:  Hotcocoa Graphics    
 macruby image.rb

 generates errors: NameError: uninitialized constant

 fixed by changing line

 include HotCocoa::Graphics


 include HotCocoa

 include HotCocoa::Graphics

 Tests now run but give diff errors on image files.  Visually they look the

 SameNameError problem also exists in

 drawing.rb gives an error:
 "<Error>: CGPDFContextEndPage: Don't nest calls to this function -- the
 results will not be what you expect."

 color.rb gives an error on one color conversion - looks like the tolerance
 needs to be widened a bit.

 I made a simple edit to iterate.rb to generate a pdf instead of a png (by
 changing Canvas.for_image to Canvas.for_pdf, and the OUTFILE extension to
 pdf but Preview fails to open it as the pdf file was invalid.

Ticket URL: <http://www.macruby.org/trac/ticket/247>
MacRuby <http://macruby.org/>

More information about the MacRuby-devel mailing list