[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-patches
Subject: [Mono-patches] r109387 - trunk/moon/test/xaml
From: "Rusty Howell (rhowell () novell ! com)" <mono-patches-list () lists ! ximian ! com>
Date: 2008-07-31 20:15:31
Message-ID: 20080731201531.576779472C () mono-cvs ! ximian ! com
[Download RAW message or body]
Author: rhowell
Date: 2008-07-31 16:15:31 -0400 (Thu, 31 Jul 2008)
New Revision: 109387
Added:
trunk/moon/test/xaml/test-gradientbrush-spreadmethod.xaml
Modified:
trunk/moon/test/xaml/drtlist.xml
trunk/moon/test/xaml/test-text-animation.xaml
Log:
* Added / updated test xaml files.
Modified: trunk/moon/test/xaml/drtlist.xml
===================================================================
--- trunk/moon/test/xaml/drtlist.xml 2008-07-31 20:08:56 UTC (rev 109386)
+++ trunk/moon/test/xaml/drtlist.xml 2008-07-31 20:15:31 UTC (rev 109387)
@@ -516,7 +516,9 @@
/>
<Test id="116"
inputFile="test-text-animation.xaml"
- masterFile10="../harness/masters/test-text-animationMaster.png"
+ masterFile10="../harness/masters/test-text-animationMaster.tif"
+ captureSpecifier="300,15"
+ categories="animation"
/>
<Test id="117"
inputFile="test-text-runs.xaml"
@@ -910,4 +912,8 @@
inputFile="assorted/test-stroke-collection.html"
masterFile10="None"
/>
+ <Test id="203"
+ inputFile="test-gradientbrush-spreadmethod.xaml"
+ masterFile10="../harness/masters/test-gradientbrush-spreadmethodMaster.png"
+ />
</DRTList>
Added: trunk/moon/test/xaml/test-gradientbrush-spreadmethod.xaml
===================================================================
--- trunk/moon/test/xaml/test-gradientbrush-spreadmethod.xaml 2008-07-31 20:08:56 UTC \
(rev 109386)
+++ trunk/moon/test/xaml/test-gradientbrush-spreadmethod.xaml 2008-07-31 20:15:31 UTC \
(rev 109387) @@ -0,0 +1,189 @@
+<?xml version="1.0"?>
+<Canvas xmlns="http://schemas.microsoft.com/client/2007">
+ <!-- OK - nothing is drawn -->
+ <Rectangle Canvas.Left="60" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Pad" StartPoint="0,0"
+ EndPoint="1,1" MappingMode="RelativeToBoundingBox">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+
+ <!-- OK - red green blue in a diagonal from left top to bottom right
+ -->
+ <Rectangle Canvas.Left="60" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Pad" StartPoint="0,0" EndPoint="1,1">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+
+ <!-- OK - all blue -->
+ <Rectangle Canvas.Left="120" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Pad" StartPoint="0,0"
+ EndPoint="0,0" MappingMode="RelativeToBoundingBox">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+
+ <!-- OK - all blue -->
+ <Rectangle Canvas.Left="180" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Pad" StartPoint="0,0"
+ EndPoint="0,0">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+
+
+ <!-- OK - all blue -->
+ <Rectangle Canvas.Top="60" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Pad" StartPoint="0,0"
+ EndPoint="1,1" MappingMode="Absolute">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+
+ <!-- OK - all blue -->
+ <Rectangle Canvas.Top="60" Canvas.Left="60" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Pad" StartPoint="0,0"
+ EndPoint="0.5,0.5" MappingMode="Absolute">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+
+ <!-- OK - all blue -->
+ <Rectangle Canvas.Top="60" Canvas.Left="120" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Pad" StartPoint="0,0"
+ EndPoint="0.5,0.5" MappingMode="Absolute">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+
+ <!-- OK - all blue -->
+ <Rectangle Canvas.Top="60" Canvas.Left="180" Width="50" Height="50"
+ Fill="Blue" />
+
+ <!-- BAD - should be grey but Moonlight shows blue -->
+ <Rectangle Canvas.Top="120" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Reflect" StartPoint="0,0"
+ EndPoint="0,0" MappingMode="Absolute">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+
+ <!-- BAD - should be grey but Moonlight shows a purple-like pattern -->
+ <Rectangle Canvas.Top="120" Canvas.Left="60" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Reflect" StartPoint="0,0"
+ EndPoint="0.5,0.5" MappingMode="Absolute">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+
+ <!-- BAD - should be grey but Moonlight shows a tight rgb pattern -->
+ <Rectangle Canvas.Top="120" Canvas.Left="120" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Reflect" StartPoint="0,0"
+ EndPoint="1.0,1.0" MappingMode="Absolute">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+
+ <!-- OK - a red green blue pattern in a diagonal from left top to bottom right -->
+ <Rectangle Canvas.Top="120" Canvas.Left="180" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Reflect" StartPoint="0,0"
+ EndPoint="2.0,2.0" MappingMode="Absolute">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+
+
+ <!-- BAD - should be grey but Moonlight shows blue -->
+ <Rectangle Canvas.Top="180" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Repeat" StartPoint="0,0"
+ EndPoint="0,0" MappingMode="Absolute">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+
+ <!-- BAD - should be grey but Moonlight shows blue -->
+ <Rectangle Canvas.Top="180" Canvas.Left="60" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Repeat" StartPoint="0,0"
+ EndPoint="0.5,0.5" MappingMode="Absolute">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+
+ <!-- BAD - should be grey but Moonlight shows a blueisgh pattern -->
+ <Rectangle Canvas.Top="180" Canvas.Left="120" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Repeat" StartPoint="0,0"
+ EndPoint="1.0,1.0" MappingMode="Absolute">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+
+ <!-- BAD - similar but Moonlight has too much blue in the pattern -->
+ <Rectangle Canvas.Top="180" Canvas.Left="180" Width="50" Height="50">
+ <Rectangle.Fill>
+ <LinearGradientBrush SpreadMethod="Repeat" StartPoint="0,0"
+ EndPoint="2.0,2.0" MappingMode="Absolute">
+ <GradientStop Color="Red" Offset="0.0" />
+ <GradientStop Color="Green" Offset="0.5" />
+ <GradientStop Color="Blue" Offset="1.0" />
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+</Canvas>
+
Modified: trunk/moon/test/xaml/test-text-animation.xaml
===================================================================
--- trunk/moon/test/xaml/test-text-animation.xaml 2008-07-31 20:08:56 UTC (rev \
109386)
+++ trunk/moon/test/xaml/test-text-animation.xaml 2008-07-31 20:15:31 UTC (rev \
109387) @@ -10,11 +10,11 @@
<Storyboard x:Name="Timeline1">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" \
Storyboard.TargetName="textBlock" \
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="237"/>
- <SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
+ <SplineDoubleKeyFrame KeyTime="00:00:03" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" \
Storyboard.TargetName="textBlock" \
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="182"/>
- <SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
+ <SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</BeginStoryboard>
@@ -23,9 +23,9 @@
<TextBlock RenderTransformOrigin="0.5,0.5" x:Name="textBlock" Width="100" \
Height="100" Canvas.Left="100" Canvas.Top="114" Text="TextBlock" TextWrapping="Wrap"> \
<TextBlock.RenderTransform> <TransformGroup>
- <ScaleTransform ScaleX="1" ScaleY="1"/>
+ <ScaleTransform ScaleX="2" ScaleY="2"/>
<SkewTransform AngleX="0" AngleY="0"/>
- <RotateTransform Angle="0"/>
+ <RotateTransform Angle="-20"/>
<TranslateTransform X="0" Y="0"/>
</TransformGroup>
</TextBlock.RenderTransform>
_______________________________________________
Mono-patches maillist - Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic