# Moonlight 1.0 Enumeration Tests

The purpose of the tests is to detect how SL 1.0 (JavaScript) reacts to bad values and, when they are accepted (commonly), to which value it defaults. This last case is important since SL applications with 'syntax' errors could behave differently on Moonlight (e.g. being visible when they should not).

Enumerations

- AlignmentX

- AlignmentX (ImageBrush)
- AlignmentX (VideoBrush)

- AlignmentY

- AlignmentY (ImageBrush)
- AlignmentY (VideoBrush)

- BrushMappingMode

- MappingMode (LinearGradientBrush)
- MappingMode (RadialGradientBrush)

- ColorInterpolationMode

- Not supported by Moonlight, see bug #345931

- DeviceType

- DeviceType is only used in StylusInfo.DeviceType and is read-only.

- ErrorType

- ErrorType is used in ErrorEventArgs.ErrorType, ParserErrorEventArgs.ErrorType and RuntimeErrorEventArgs.ErrorType and is always read-only.

- FillBehavior

- FillBehavior (Timeline)

- FillRule

- FillRule (Geometry)
- FillRule (Polygon)
- FillRule (Polyline)

- FontStretch

- FontStretch (Inline)

- FontStyle

- FontStyle (Inline)
- FontStyle (TextBlock)

- FontWeight

- FontWeight (Inline)
- FontWeight (TextBlock)

- GradientSpreadMethod

- GradientSpreadMethod (LinearGradientBrush)
- GradientSpreadMethod (RadialGradientBrush)

- Key

- Key is used in KeyboardEventArgs.Key and KeyboardEventArgs.PlatformKeyCode and, while it's read-write, it's not used as in input in Silverlight (so invalid values does not matter).

- MediaState

- MediaState is only used in MediaElement.CurrentState and is read-only.

- MouseCursor

- MouseCursor (UIElement)

- PenLineCap

- PenLineCap (Shape)

- PenLineJoin

- PenLineJoin (Shape)

- Stretch

- Stretch (Image)
- Stretch (ImageBrush)
- Stretch (MediaElement)
- Stretch (Shape)
- Stretch (VideoBrush)

- StyleSimulations

- StyleSimulations (Glyphs)

- SweepDirection

- SweepDirection (ArcSegment)

- TextDecorations

- TextDecorations (Inline)
- TextDecorations (TextBlock)

- TextWrapping

- TextWrapping (TextBlock)

- Visibility

- Visibility (Shape)
- Visibility (TextBlock)

MSDN reference about Silverlight 1.0 enumerations.