Approved!

On 12/17/10 2:45 PM, P T Withington wrote:
Change ptw-20101215-irR by [email protected] on 2010-12-15 10:31:37 EST
     in /Users/ptw/OpenLaszlo/trunk-3
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Tweak Debug.inspect representation of presentation types

Bugs Fixed:  LPP-9572 Debug.inspect should understand PresentationTypes

Technical Reviewer: [email protected] (pending)
QA Reviewer: [email protected] (pending)

Release Notes:
     When inspecting a<node>  that has style-bound attributes, those
     attribute's values will be displayed according to the external (or
     CSS) representation of their type.  This external representation
     can be inspected to see the internal value that is actually stored
     in the attribute.

Details:

     LzDebug: Don't confuse a color #DEDBEF with a global #ID.  Don't
     show undefined or function-valued slots when not showing
     internals. Move checking for presentation type after decision on
     whether to display slot. For describing attributes that have
     presentation types, construct a presentation type value that
     displays the external representation and can be inspected for the
     internal representation.  Treat `constructor` as an internal
     attribute.

     PresentationTypes: Add $lzc$class_PresentationTypeValue that is
     presently only used for debugging as the descriptive version of a
     type value.

Tests:
     IWFM

     lzx>  Debug.inspect(red)
     «color value#13| red» {
       toString: Function
       value: 16711680
       valueOf: Function
     }
     «color value#13| red»
     lzx>  _ + 0
     16711680
     lzx>  __ + ''
     'red'
     lzx>

Files:
M       WEB-INF/lps/lfc/debugger/LzDebug.lzs
M       WEB-INF/lps/lfc/debugger/platform/swf9/LzDebug.as
M       WEB-INF/lps/lfc/core/PresentationTypes.lzs

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/ptw-20101215-irR.tar

Reply via email to