diff options
author | Chris Toshok <toshok@novell.com> | 2006-03-08 19:34:59 +0300 |
---|---|---|
committer | Chris Toshok <toshok@novell.com> | 2006-03-08 19:34:59 +0300 |
commit | ccb931ae68d0f7e234d13809991005acbe2a1669 (patch) | |
tree | d3a85cba8b9b32616fb7fd6421d305a8a7fd56dc /mcs | |
parent | 86dbcb76b44a1c082fffdc07f909e8649206e596 (diff) |
add some theme tests
svn path=/trunk/mcs/; revision=57694
Diffstat (limited to 'mcs')
21 files changed, 200 insertions, 0 deletions
diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/App_Themes/Green/Button.skin b/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/App_Themes/Green/Button.skin new file mode 100644 index 00000000000..ab4436705aa --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/App_Themes/Green/Button.skin @@ -0,0 +1,6 @@ +<asp:Button runat="server" + SkinID="" + BackColor="Green" + ForeColor="White" + Font-Name="Arial" + Font-Size="9px" /> diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/App_Themes/MyTheme/Button.skin b/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/App_Themes/MyTheme/Button.skin new file mode 100644 index 00000000000..d01bf002d73 --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/App_Themes/MyTheme/Button.skin @@ -0,0 +1,19 @@ +<asp:Button runat="server" + SkinID="Red" + BackColor="Red" + ForeColor="White" + Font-Name="Arial" + Font-Size="9px" /> + +<asp:Button runat="server" + SkinID="Green" + BackColor="Green" + ForeColor="White" + Font-Name="Arial" + Font-Size="9px" /> + +<asp:Button runat="server" + BackColor="White" + ForeColor="Black" + Font-Name="Arial" + Font-Size="15px" /> diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/App_Themes/Red/Button.skin b/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/App_Themes/Red/Button.skin new file mode 100644 index 00000000000..5aa06b4ea89 --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/App_Themes/Red/Button.skin @@ -0,0 +1,6 @@ +<asp:Button runat="server" + SkinID="" + BackColor="Red" + ForeColor="White" + Font-Name="Arial" + Font-Size="9px" /> diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/index.aspx b/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/index.aspx new file mode 100644 index 00000000000..a53db21350c --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/index.aspx @@ -0,0 +1,19 @@ +<%@ Page Language="C#" %> +<script runat="server"> +protected override void OnPreInit (EventArgs e) +{ + string t = Context.Request["theme"]; + if (t == null) + t = "MyTheme"; + Console.WriteLine ("setting theme"); + Theme = t; + base.OnPreInit (e); +} +</script> + +<form runat="server"> + <asp:Button runat="server" id="button1" Text="Button"/> + <asp:Button runat="server" id="button2" Text="Button"/> + <asp:Button runat="server" id="button3" Text="Button"/> +</form> + diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/web.config b/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/web.config new file mode 100644 index 00000000000..18e66c574c4 --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest1/web.config @@ -0,0 +1,6 @@ +<configuration> + <system.web> + <compilation debug="true" /> + </system.web> +</configuration> + diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/App_Themes/Green/Button.skin b/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/App_Themes/Green/Button.skin new file mode 100644 index 00000000000..ab4436705aa --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/App_Themes/Green/Button.skin @@ -0,0 +1,6 @@ +<asp:Button runat="server" + SkinID="" + BackColor="Green" + ForeColor="White" + Font-Name="Arial" + Font-Size="9px" /> diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/App_Themes/Green/Label.skin b/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/App_Themes/Green/Label.skin new file mode 100644 index 00000000000..07ab0804118 --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/App_Themes/Green/Label.skin @@ -0,0 +1,6 @@ +<asp:Label runat="server" + SkinID="" + BackColor="Green" + ForeColor="White" + Font-Name="Arial" + Font-Size="9px" /> diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/App_Themes/MyTheme/Button.skin b/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/App_Themes/MyTheme/Button.skin new file mode 100644 index 00000000000..d01bf002d73 --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/App_Themes/MyTheme/Button.skin @@ -0,0 +1,19 @@ +<asp:Button runat="server" + SkinID="Red" + BackColor="Red" + ForeColor="White" + Font-Name="Arial" + Font-Size="9px" /> + +<asp:Button runat="server" + SkinID="Green" + BackColor="Green" + ForeColor="White" + Font-Name="Arial" + Font-Size="9px" /> + +<asp:Button runat="server" + BackColor="White" + ForeColor="Black" + Font-Name="Arial" + Font-Size="15px" /> diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/App_Themes/Red/Button.skin b/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/App_Themes/Red/Button.skin new file mode 100644 index 00000000000..5aa06b4ea89 --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/App_Themes/Red/Button.skin @@ -0,0 +1,6 @@ +<asp:Button runat="server" + SkinID="" + BackColor="Red" + ForeColor="White" + Font-Name="Arial" + Font-Size="9px" /> diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/index.aspx b/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/index.aspx new file mode 100644 index 00000000000..09cbe9ee9cb --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/index.aspx @@ -0,0 +1,13 @@ +<%@ Page Language="C#" Theme="Green" %> +<script runat="server"> +void Page_Init () +{ +// throw new Exception (); +} +</script> + +<form runat="server"> + <asp:Label runat="server" id="label" Text="Label"/> + <asp:Button runat="server" id="button" Text="Button"/> +</form> + diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/web.config b/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/web.config new file mode 100644 index 00000000000..18e66c574c4 --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest2/web.config @@ -0,0 +1,6 @@ +<configuration> + <system.web> + <compilation debug="true" /> + </system.web> +</configuration> + diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/App_Themes/Green/Button.skin b/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/App_Themes/Green/Button.skin new file mode 100644 index 00000000000..ab4436705aa --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/App_Themes/Green/Button.skin @@ -0,0 +1,6 @@ +<asp:Button runat="server" + SkinID="" + BackColor="Green" + ForeColor="White" + Font-Name="Arial" + Font-Size="9px" /> diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/App_Themes/Green/Label.skin b/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/App_Themes/Green/Label.skin new file mode 100644 index 00000000000..07ab0804118 --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/App_Themes/Green/Label.skin @@ -0,0 +1,6 @@ +<asp:Label runat="server" + SkinID="" + BackColor="Green" + ForeColor="White" + Font-Name="Arial" + Font-Size="9px" /> diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/App_Themes/Green/Option.skin b/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/App_Themes/Green/Option.skin new file mode 100644 index 00000000000..b48c71349d3 --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/App_Themes/Green/Option.skin @@ -0,0 +1,6 @@ + +<asp:radiobuttonlist runat="server"> +<asp:ListItem Value="1" Text="One"/> +<asp:ListItem Value="2" Text="Two"/> +<asp:ListItem Value="3" Text="Three"/> +</asp:radiobuttonlist> diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/index.aspx b/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/index.aspx new file mode 100644 index 00000000000..de823b89adf --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/index.aspx @@ -0,0 +1,21 @@ +<%@ Page Language="C#" Theme="Green" %> +<script runat="server"> +void Page_Init () +{ +// throw new Exception (); +} +</script> + +<form runat="server"> + <asp:Label runat="server" id="label" Text="Label"/> + <asp:Button runat="server" id="button" Text="Button"/> + <br/> + +<asp:radiobuttonlist runat="server"> +<asp:ListItem Value="4" Text="Four"/> +<asp:ListItem Value="5" Text="Five"/> +<asp:ListItem Value="6" Text="Six"/> +</asp:radiobuttonlist> + +</form> + diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/web.config b/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/web.config new file mode 100644 index 00000000000..18e66c574c4 --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest3/web.config @@ -0,0 +1,6 @@ +<configuration> + <system.web> + <compilation debug="true" /> + </system.web> +</configuration> + diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/App_Themes/Green/Button.skin b/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/App_Themes/Green/Button.skin new file mode 100644 index 00000000000..ab4436705aa --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/App_Themes/Green/Button.skin @@ -0,0 +1,6 @@ +<asp:Button runat="server" + SkinID="" + BackColor="Green" + ForeColor="White" + Font-Name="Arial" + Font-Size="9px" /> diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/App_Themes/Green/Label.skin b/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/App_Themes/Green/Label.skin new file mode 100644 index 00000000000..07ab0804118 --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/App_Themes/Green/Label.skin @@ -0,0 +1,6 @@ +<asp:Label runat="server" + SkinID="" + BackColor="Green" + ForeColor="White" + Font-Name="Arial" + Font-Size="9px" /> diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/App_Themes/Green/Option.skin b/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/App_Themes/Green/Option.skin new file mode 100644 index 00000000000..b48c71349d3 --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/App_Themes/Green/Option.skin @@ -0,0 +1,6 @@ + +<asp:radiobuttonlist runat="server"> +<asp:ListItem Value="1" Text="One"/> +<asp:ListItem Value="2" Text="Two"/> +<asp:ListItem Value="3" Text="Three"/> +</asp:radiobuttonlist> diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/index.aspx b/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/index.aspx new file mode 100644 index 00000000000..825f0acceeb --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/index.aspx @@ -0,0 +1,19 @@ +<%@ Page Language="C#" StyleSheetTheme="Green" %> +<script runat="server"> +void Page_Init () +{ +} +</script> + +<form runat="server"> + <asp:Label runat="server" id="label" Text="Label"/> + <asp:Button runat="server" id="button" Text="Button"/> + <br/> + +<asp:radiobuttonlist runat="server"> +<asp:ListItem Value="4" Text="Four"/> +<asp:ListItem Value="5" Text="Five"/> +<asp:ListItem Value="6" Text="Six"/> +</asp:radiobuttonlist> +</form> + diff --git a/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/web.config b/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/web.config new file mode 100644 index 00000000000..18e66c574c4 --- /dev/null +++ b/mcs/class/System.Web/Test/standalone/theme/ThemeTest5/web.config @@ -0,0 +1,6 @@ +<configuration> + <system.web> + <compilation debug="true" /> + </system.web> +</configuration> + |