[Fat-develop] FAT/src/FAT.Web TestTreeView.cs,NONE,1.1 Default.aspx,1.1,1.2 Default.aspx.cs,1.1,1.2
Brought to you by:
exortech
|
From: <exo...@us...> - 2004-01-15 00:57:01
|
Update of /cvsroot/fat/FAT/src/FAT.Web
In directory sc8-pr-cvs1:/tmp/cvs-serv19380/src/FAT.Web
Modified Files:
Default.aspx Default.aspx.cs FAT.Web.csproj FAT.css Web.config
Added Files:
TestTreeView.cs
Log Message:
commits to fat will now be sent out on developer mailing list
--- NEW FILE: TestTreeView.cs ---
using FAT.Core;
using FAT.Core.Configuration;
using System;
using System.Collections;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.ComponentModel;
namespace FAT.Web
{
public class TestTreeView : WebControl
{
private ITestFileScanner scanner;
private HtmlAnchor[] testLinks;
// TODO: load scanner from config
public TestTreeView() : this(new TestFileScanner(new string[] { @"D:\dev\FAT\sample" } )) { }
public TestTreeView(ITestFileScanner scanner)
{
this.scanner = scanner;
}
protected override void CreateChildControls()
{
ITestFile[] testFiles = scanner.Scan();
testLinks = new HtmlAnchor[testFiles.Length];
for (int i = 0; i < testFiles.Length; i++)
{
HtmlAnchor anchor = new HtmlAnchor();
anchor.HRef = "?" + testFiles[i].Filename;
anchor.InnerText = testFiles[i].Name;
testLinks[i] = anchor;
Controls.Add(anchor);
}
}
public HtmlAnchor[] TestLinks
{
get
{
// EnsureChildControls();
CreateChildControls();
return testLinks;
}
}
}
}
Index: Default.aspx
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Web/Default.aspx,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Default.aspx 13 Dec 2003 00:09:02 -0000 1.1
--- Default.aspx 15 Jan 2004 00:56:58 -0000 1.2
***************
*** 1,2 ****
--- 1,3 ----
+ <%@ Register Tagprefix="FAT" Namespace="FAT.Web" Assembly="FAT.Web" %>
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="FAT.Web.Default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
***************
*** 8,11 ****
--- 9,15 ----
<body>
<form id="CreateTest" method="post" runat="server">
+ <div id="TestTreeView" class="Menu">
+ <FAT:TestTreeView runat="server" id="TestTreeView1" />
+ </div>
<table>
<tr>
***************
*** 13,37 ****
</tr>
<tr>
! <td><asp:Label id="testNameLabel">Test Name: </asp:Label></td>
<td><asp:TextBox id="testName" runat="server" Width="500" /></td>
<td><asp:Label ID="testNameWarning" Runat="server">*</asp:Label></td>
</tr>
<tr>
! <td><asp:Label id="fixtureLabel">Fixture: </asp:Label></td>
<td><asp:TextBox id="fixture" runat="server" Width="500" /></td>
<td><asp:Label ID="fixtureWarning" Runat="server">*</asp:Label></td>
</tr>
<tr>
! <td valign="top"><asp:Label id="testLabel">Test: </asp:Label></td>
<td><asp:TextBox id="test" runat="server" Rows="10" TextMode="MultiLine" Width="500" /></td>
<td valign="top">*</td>
</tr>
<tr>
! <td valign="top"><asp:Label id="setUpLabel">SetUp: </asp:Label></td>
<td><asp:TextBox id="setup" runat="server" Rows="4" TextMode="MultiLine" Width="500" /></td>
<td valign="top">*</td>
</tr>
<tr>
! <td valign="top"><asp:Label id="tearDownLabel">TearDown: </asp:Label></td>
<td><asp:TextBox id="teardown" runat="server" Rows="4" TextMode="MultiLine" Width="500" /></td>
<td valign="top">*</td>
--- 17,41 ----
</tr>
<tr>
! <td><asp:Label id="testNameLabel" Runat="server">Test Name: </asp:Label></td>
<td><asp:TextBox id="testName" runat="server" Width="500" /></td>
<td><asp:Label ID="testNameWarning" Runat="server">*</asp:Label></td>
</tr>
<tr>
! <td><asp:Label id="fixtureLabel" Runat="server">Fixture: </asp:Label></td>
<td><asp:TextBox id="fixture" runat="server" Width="500" /></td>
<td><asp:Label ID="fixtureWarning" Runat="server">*</asp:Label></td>
</tr>
<tr>
! <td valign="top"><asp:Label id="testLabel" Runat="server">Test: </asp:Label></td>
<td><asp:TextBox id="test" runat="server" Rows="10" TextMode="MultiLine" Width="500" /></td>
<td valign="top">*</td>
</tr>
<tr>
! <td valign="top"><asp:Label id="setUpLabel" Runat="server">SetUp: </asp:Label></td>
<td><asp:TextBox id="setup" runat="server" Rows="4" TextMode="MultiLine" Width="500" /></td>
<td valign="top">*</td>
</tr>
<tr>
! <td valign="top"><asp:Label id="tearDownLabel" Runat="server">TearDown: </asp:Label></td>
<td><asp:TextBox id="teardown" runat="server" Rows="4" TextMode="MultiLine" Width="500" /></td>
<td valign="top">*</td>
Index: Default.aspx.cs
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Web/Default.aspx.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Default.aspx.cs 13 Dec 2003 00:09:02 -0000 1.1
--- Default.aspx.cs 15 Jan 2004 00:56:58 -0000 1.2
***************
*** 14,26 ****
--- 14,34 ----
{
protected Label instructions;
+ protected Label testNameLabel;
protected TextBox testName;
protected Label testNameWarning;
+ protected Label fixtureLabel;
protected TextBox fixture;
+ protected Label testLabel;
protected TextBox test;
+ protected Label setupLabel;
protected TextBox setup;
+ protected Label teardownLabel;
protected TextBox teardown;
protected Label fixtureWarning;
protected Button run;
protected PlaceHolder results;
+ protected FAT.Web.TestTreeView TestTreeView1;
+ protected System.Web.UI.WebControls.Label setUpLabel;
+ protected System.Web.UI.WebControls.Label tearDownLabel;
private DefaultPageModel model = new DefaultPageModel();
Index: FAT.Web.csproj
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Web/FAT.Web.csproj,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FAT.Web.csproj 13 Dec 2003 00:09:02 -0000 1.1
--- FAT.Web.csproj 15 Jan 2004 00:56:58 -0000 1.2
***************
*** 83,86 ****
--- 83,91 ----
Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
/>
+ <Reference
+ Name = "System.Drawing"
+ AssemblyName = "System.Drawing"
+ HintPath = "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Drawing.dll"
+ />
</References>
</Build>
***************
*** 138,141 ****
--- 143,151 ----
/>
<File
+ RelPath = "TestTreeView.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath = "Web.config"
BuildAction = "Content"
Index: FAT.css
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Web/FAT.css,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FAT.css 13 Dec 2003 00:09:02 -0000 1.1
--- FAT.css 15 Jan 2004 00:56:58 -0000 1.2
***************
*** 32,33 ****
--- 32,38 ----
FONT-SIZE: 10px
}
+
+ .menu
+ {
+ float: left;
+ }
\ No newline at end of file
Index: Web.config
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Web/Web.config,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Web.config 13 Dec 2003 00:09:02 -0000 1.1
--- Web.config 15 Jan 2004 00:56:58 -0000 1.2
***************
*** 8,12 ****
<FAT>
<Assemblies>
! <Assembly>D:\dev\FAT\build\FAT.Acceptance.exe</Assembly>
</Assemblies>
</FAT>
--- 8,12 ----
<FAT>
<Assemblies>
! <Assembly>D:\dev\FAT\build\FAT.Acceptance.dll</Assembly>
</Assemblies>
</FAT>
|