Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: [TDD with run.r] Help needed please...

From: anton:wilddsl:au at: 9-May-2007 20:23

Hi Sash, Well, I guess it's hard to check the output of LAYOUT, which is a very complicated function, and VIEW, which rests upon the underlying internal View system. However, you make some basic checks to see that the layout was created ok with the button inside at the right position. Example: view/new layout [ button "Click Me" ] use [window button][ window: system/view/screen-face/pane/1 button: window/pane/1 object? button ; == true button/style ; == 'button button/offset ; == 20x20 button/size ; == 200x24 ; etc. unview/only window ] Note, I only checked out run.r a long time ago. Hope that helps, Anton.