fat-develop Mailing List for FAT Acceptance Testing Framework
Brought to you by:
exortech
You can subscribe to this list here.
| 2004 |
Jan
(33) |
Feb
(46) |
Mar
(10) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(9) |
Oct
|
Nov
|
Dec
|
|
From: jkordyback <jko...@us...> - 2005-09-28 16:43:45
|
Update of /cvsroot/fat/InSite/InSite.Controller In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26113/InSite.Controller Modified Files: Button.cs RadioButton.cs Added Files: .cvsignore Removed Files: UseCaseTemplate.xml Log Message: Housekeeping. Added cvsignore to the usual places and removed UseCaseTemplate.xml which was from another project. --- NEW FILE: .cvsignore --- bin obj Index: RadioButton.cs =================================================================== RCS file: /cvsroot/fat/InSite/InSite.Controller/RadioButton.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RadioButton.cs 27 Sep 2005 20:51:47 -0000 1.1 --- RadioButton.cs 28 Sep 2005 16:43:31 -0000 1.2 *************** *** 12,16 **** public RadioButton(Browser browser, HTMLInputElement buttonElement) { ! this.browser = browser; this.buttonElement = buttonElement; } --- 12,16 ---- public RadioButton(Browser browser, HTMLInputElement buttonElement) { ! base.browser = browser; this.buttonElement = buttonElement; } Index: Button.cs =================================================================== RCS file: /cvsroot/fat/InSite/InSite.Controller/Button.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Button.cs 27 Sep 2005 20:51:47 -0000 1.1 --- Button.cs 28 Sep 2005 16:43:31 -0000 1.2 *************** *** 55,59 **** set { ; } } ! protected internal override void ClickElement() { --- 55,59 ---- set { ; } } ! protected internal override void ClickElement() { --- UseCaseTemplate.xml DELETED --- |
|
From: jkordyback <jko...@us...> - 2005-09-28 16:43:43
|
Update of /cvsroot/fat/InSite/InSite.Web.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26113/InSite.Web.Test Added Files: .cvsignore Log Message: Housekeeping. Added cvsignore to the usual places and removed UseCaseTemplate.xml which was from another project. --- NEW FILE: .cvsignore --- bin |
|
From: jkordyback <jko...@us...> - 2005-09-28 16:43:39
|
Update of /cvsroot/fat/InSite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26113 Added Files: .cvsignore Log Message: Housekeeping. Added cvsignore to the usual places and removed UseCaseTemplate.xml which was from another project. --- NEW FILE: .cvsignore --- InSite.resharper.user InSite.suo _ReSharper.InSite |
|
From: jkordyback <jko...@us...> - 2005-09-28 16:43:39
|
Update of /cvsroot/fat/InSite/InSite.Controller.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26113/InSite.Controller.Test Modified Files: FormTest.cs Added Files: .cvsignore Log Message: Housekeeping. Added cvsignore to the usual places and removed UseCaseTemplate.xml which was from another project. --- NEW FILE: .cvsignore --- bin obj Index: FormTest.cs =================================================================== RCS file: /cvsroot/fat/InSite/InSite.Controller.Test/FormTest.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FormTest.cs 27 Sep 2005 20:51:46 -0000 1.1 --- FormTest.cs 28 Sep 2005 16:43:31 -0000 1.2 *************** *** 29,34 **** } ! [Test] ! [ExpectedException(typeof (MatchingException))] public void ShouldNotFindFormWhenWrongNameIdUsed() { --- 29,33 ---- } ! [Test, ExpectedException(typeof (MatchingException))] public void ShouldNotFindFormWhenWrongNameIdUsed() { *************** *** 36,41 **** } ! [Test] ! [ExpectedException(typeof (MatchingException))] public void ShouldNotDefaultFormWhenNoFormExists() { --- 35,39 ---- } ! [Test, ExpectedException(typeof (MatchingException))] public void ShouldNotDefaultFormWhenNoFormExists() { *************** *** 43,48 **** } ! [Test] ! [ExpectedException(typeof (MatchingException))] public void ShouldNotFindNamedFormWhenNoFormExists() { --- 41,45 ---- } ! [Test, ExpectedException(typeof (MatchingException))] public void ShouldNotFindNamedFormWhenNoFormExists() { |
Update of /cvsroot/fat/InSite/InSite.Web.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18282/InSite.Web.Test Added Files: AssemblyInfo.cs Blank.html CheckboxTest.html FormInputTest.html FrameTest.html FrameTestLeftPage.html FrameTestRightPage.html Global.asax Global.asax.cs Global.asax.resx ImageTest.html InSite.Web.Test.csproj InSite.Web.Test.csproj.webinfo JavascriptDialogTest.html JavascriptTest.html LinkOne.html LinkThree.html LinkTwo.html LinkTypes.html MultiLinks.html NestedFrameTest.html RadioButtonTest.html SelectListTest.html TestResult.aspx TestResult.aspx.cs TestResult.aspx.resx Web.config silly-walk.jpg Log Message: Initial checkin of InSite. Only base controller and tests. --- NEW FILE: TestResult.aspx.cs --- using System; using System.Web.UI; namespace InSite { /// <summary> /// Summary description for WebForm1. /// </summary> public class TestResult : Page { protected override void Render(HtmlTextWriter writer) { writer.WriteLine("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" >"); writer.WriteLine("<html>"); writer.WriteLine(" <head>"); writer.WriteLine(" <title>Test Results</title>"); writer.WriteLine(" </head>"); writer.WriteLine(" <body>"); writer.WriteLine(" <h3>Test Results</h3>"); string[] keys = Request.Form.AllKeys; for (int i = 0; i < keys.Length; i++) { string key = keys[i]; string value = Request.Form.Get(key); writer.WriteLine(string.Format(" {0} : {1}<br>", key, value)); } writer.WriteLine(" </body>"); writer.WriteLine("</html>"); } #region Web Form Designer generated code protected override void OnInit(EventArgs e) { // // CODEGEN: This call is required by the ASP.NET Web Form Designer. // InitializeComponent(); base.OnInit(e); } /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.Load += new System.EventHandler(this.Page_Load); } #endregion private void Page_Load(object sender, EventArgs e) { } } } --- NEW FILE: AssemblyInfo.cs --- using System.Reflection; using System.Runtime.CompilerServices; // // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // [assembly: AssemblyTitle("")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.*")] // // In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // // Use the attributes below to control which key is used for signing. // // Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. // (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. // (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the "project output directory". The location of the project output // directory is dependent on whether you are working with a local or web project. // For local projects, the project output directory is defined as // <Project Directory>\obj\<Configuration>. For example, if your KeyFile is // located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // For web projects, the project output directory is defined as // %HOMEPATH%\VSWebCache\<Machine Name>\<Project Directory>\obj\<Configuration>. // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. // [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("")] [assembly: AssemblyKeyName("")] --- NEW FILE: Web.config --- <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <!-- DYNAMIC DEBUG COMPILATION Set compilation debug="true" to enable ASPX debugging. Otherwise, setting this value to false will improve runtime performance of this application. Set compilation debug="true" to insert debugging symbols (.pdb information) into the compiled page. Because this creates a larger file that executes more slowly, you should set this value to true only when debugging and to false at all other times. For more information, refer to the documentation about debugging ASP.NET files. --> <compilation defaultLanguage="c#" debug="true" /> <!-- CUSTOM ERROR MESSAGES Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. Add <error> tags for each of the errors you want to handle. "On" Always display custom (friendly) messages. "Off" Always display detailed ASP.NET error information. "RemoteOnly" Display custom (friendly) messages only to users not running on the local Web server. This setting is recommended for security purposes, so that you do not display application detail information to remote clients. --> <customErrors mode="RemoteOnly" /> <!-- AUTHENTICATION This section sets the authentication policies of the application. Possible modes are "Windows", "Forms", "Passport" and "None" "None" No authentication is performed. "Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to its settings for the application. Anonymous access must be disabled in IIS. "Forms" You provide a custom form (Web page) for users to enter their credentials, and then you authenticate them in your application. A user credential token is stored in a cookie. "Passport" Authentication is performed via a centralized authentication service provided by Microsoft that offers a single logon and core profile services for member sites. --> <authentication mode="Windows" /> <!-- AUTHORIZATION This section sets the authorization policies of the application. You can allow or deny access to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous (unauthenticated) users. --> <authorization> <allow users="*" /> <!-- Allow all users --> <!-- <allow users="[comma separated list of users]" roles="[comma separated list of roles]"/> <deny users="[comma separated list of users]" roles="[comma separated list of roles]"/> --> </authorization> <!-- APPLICATION-LEVEL TRACE LOGGING Application-level tracing enables trace log output for every page within an application. Set trace enabled="true" to enable application trace logging. If pageOutput="true", the trace information will be displayed at the bottom of each page. Otherwise, you can view the application trace log by browsing the "trace.axd" page from your web application root. --> <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" /> <!-- SESSION STATE SETTINGS By default ASP.NET uses cookies to identify which requests belong to a particular session. If cookies are not available, a session can be tracked by adding a session identifier to the URL. To disable cookies, set sessionState cookieless="true". --> <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" /> <!-- GLOBALIZATION This section sets the globalization settings of the application. --> <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> </system.web> </configuration> --- NEW FILE: FormInputTest.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Form Input Test</title> </head> <body> <form name="InputForm" action="/InSite/TestResult.aspx" method="post"> <input type="text" name="firstName" id="firstNameId" value="firstNameValue" /><br> <input type="text" name="lastName" id="lastNameId" value="lastNameValue" /><br> <input type="password" name="password" id="passwordId" value="passwordValue" /><br> <input type="submit" name="submitName" id="submitId" value="Submit" /> </form> </body> </html> --- NEW FILE: TestResult.aspx --- <%@ Page language="c#" Codebehind="TestResult.aspx.cs" AutoEventWireup="false" Inherits="InSite.TestResult" enableViewState="False"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD> <title>Test Results</title> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="C#" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> </HEAD> <body> <form id="Form1" method="post" runat="server"> </form> </body> </HTML> --- NEW FILE: ImageTest.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Image Test</title> </head> <body> <a href="./FormInputTest.html"><img src="silly-walk.jpg"/></a> </body> </html> --- NEW FILE: LinkThree.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Link Three</title> </head> <body> <a href="/InSite/LinkOne.html" name="LinkOne">Link One</a><br> <a href="/InSite/LinkTwo.html" name="LinkTwo">Link Two</a> </body> </html> --- NEW FILE: RadioButtonTest.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title></title> </head> <body> <form name="RadioButtonForm" action="/InSite/TestResult.aspx" method="post"> Select 1: <input type="radio" name="radio1" id="test1" value="1" checked/><br> Select 2: <input type="radio" name="radio1" id="test2" value="2"/><br> <input type="submit" name="Submit" value="Submit"/> </form> </body> </html> --- NEW FILE: TestResult.aspx.resx --- <?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Version 1.3 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">1.3</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1">this is my long string</data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> [base64 mime encoded serialized .NET Framework object] </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> [base64 mime encoded string representing a byte array form of the .NET Framework object] </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used forserialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>1.3</value> </resheader> <resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <data name="$this.TrayAutoArrange" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>True</value> </data> <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>Private</value> </data> <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>False</value> </data> </root> --- NEW FILE: CheckboxTest.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Checkbox Test</title> </head> <body> <form name="CheckboxForm" action="/insite/TestResult.aspx" method="post"> Checkbox 1: <input type="checkbox" name="checkbox1" id="test1" value="1"/><br> Checkbox 2: <input type="checkbox" name="checkbox2" id="test2" value="2"/><br> <input type="submit" name="Submit" value="Submit"/> </form> </body> </html> --- NEW FILE: Blank.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Blank</title> </head> <body> </body> </html> --- NEW FILE: FrameTestLeftPage.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD><TITLE>FrameTestLeftPage</TITLE> </HEAD> <body> <p>Left Page</p> </body> </HTML> --- NEW FILE: InSite.Web.Test.csproj.webinfo --- <VisualStudioUNCWeb> <Web URLPath = "http://localhost/insite/InSite.Web.Test.csproj" /> </VisualStudioUNCWeb> --- NEW FILE: JavascriptDialogTest.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Javascript Dialog</title> </head> <body> <form name="jsDialog" action="/InSite/TestResult.aspx"> <input type="button" name="btnJsDialog" value="Javascript Dialog" onClick="confirm('Do you like Javascript?');"> <input type="button" name="btnNoDialog" value="No Dialog"> </form> <a name="jsLink" href="./JavascriptDialogTest.html" onclick="confirm('Do you like Javascript?');">Javascript Link</a> </body> </html> --- NEW FILE: FrameTestRightPage.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD><TITLE>FrameTestRightPage</TITLE> </HEAD> <body> <p>Right Page</p> </body> </HTML> --- NEW FILE: Global.asax.cs --- using System; using System.Collections; using System.ComponentModel; using System.Web; using System.Web.SessionState; namespace InSite { /// <summary> /// Summary description for Global. /// </summary> public class Global : System.Web.HttpApplication { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; public Global() { InitializeComponent(); } protected void Application_Start(Object sender, EventArgs e) { } protected void Session_Start(Object sender, EventArgs e) { } protected void Application_BeginRequest(Object sender, EventArgs e) { } protected void Application_EndRequest(Object sender, EventArgs e) { } protected void Application_AuthenticateRequest(Object sender, EventArgs e) { } protected void Application_Error(Object sender, EventArgs e) { } protected void Session_End(Object sender, EventArgs e) { } protected void Application_End(Object sender, EventArgs e) { } #region Web Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); } #endregion } } --- NEW FILE: InSite.Web.Test.csproj --- <VisualStudioProject> <CSHARP ProjectType = "Web" ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid = "{AF47DCE8-6A0F-4318-A642-7EB9BDF24106}" > <Build> <Settings ApplicationIcon = "" AssemblyKeyContainerName = "" AssemblyName = "InSite.Web.Test" AssemblyOriginatorKeyFile = "" DefaultClientScript = "JScript" DefaultHTMLPageLayout = "Grid" DefaultTargetSchema = "IE50" DelaySign = "false" OutputType = "Library" PreBuildEvent = "" PostBuildEvent = "" RootNamespace = "InSite" RunPostBuildEvent = "OnBuildSuccess" StartupObject = "" > <Config Name = "Debug" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "DEBUG;TRACE" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = "bin\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Release" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "TRACE" DocumentationFile = "" DebugSymbols = "false" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "true" OutputPath = "bin\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> </Settings> <References> <Reference Name = "System" AssemblyName = "System" HintPath = "..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" /> <Reference Name = "System.Drawing" AssemblyName = "System.Drawing" HintPath = "..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll" /> <Reference Name = "System.Data" AssemblyName = "System.Data" HintPath = "..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" /> <Reference Name = "System.Web" AssemblyName = "System.Web" HintPath = "..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.dll" /> <Reference Name = "System.XML" AssemblyName = "System.Xml" HintPath = "..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" /> </References> </Build> <Files> <Include> <File RelPath = "AssemblyInfo.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "Blank.html" BuildAction = "Content" /> <File RelPath = "CheckboxTest.html" BuildAction = "Content" /> <File RelPath = "FormInputTest.html" BuildAction = "Content" /> <File RelPath = "FrameTest.html" BuildAction = "Content" /> <File RelPath = "FrameTestLeftPage.html" BuildAction = "Content" /> <File RelPath = "FrameTestRightPage.html" BuildAction = "Content" /> <File RelPath = "Global.asax" SubType = "Component" BuildAction = "Content" /> <File RelPath = "Global.asax.cs" DependentUpon = "Global.asax" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "Global.asax.resx" DependentUpon = "Global.asax.cs" BuildAction = "EmbeddedResource" /> <File RelPath = "ImageTest.html" BuildAction = "Content" /> <File RelPath = "JavascriptDialogTest.html" BuildAction = "Content" /> <File RelPath = "JavascriptTest.html" BuildAction = "Content" /> <File RelPath = "LinkOne.html" BuildAction = "Content" /> <File RelPath = "LinkThree.html" BuildAction = "Content" /> <File RelPath = "LinkTwo.html" BuildAction = "Content" /> <File RelPath = "LinkTypes.html" BuildAction = "Content" /> <File RelPath = "MultiLinks.html" BuildAction = "Content" /> <File RelPath = "NestedFrameTest.html" BuildAction = "Content" /> <File RelPath = "RadioButtonTest.html" BuildAction = "Content" /> <File RelPath = "SelectListTest.html" BuildAction = "Content" /> <File RelPath = "silly-walk.jpg" BuildAction = "Content" /> <File RelPath = "TestResult.aspx" SubType = "Form" BuildAction = "Content" /> <File RelPath = "TestResult.aspx.cs" DependentUpon = "TestResult.aspx" SubType = "ASPXCodeBehind" BuildAction = "Compile" /> <File RelPath = "TestResult.aspx.resx" DependentUpon = "TestResult.aspx.cs" BuildAction = "EmbeddedResource" /> <File RelPath = "Web.config" BuildAction = "Content" /> </Include> </Files> </CSHARP> </VisualStudioProject> --- NEW FILE: Global.asax.resx --- <?xml version="1.0" encoding="utf-8" ?> <root> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="ResMimeType"> <value>text/microsoft-resx</value> </resheader> <resheader name="Version"> <value>1.0.0.0</value> </resheader> <resheader name="Reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="Writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> </root> --- NEW FILE: LinkOne.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Link One</title> </head> <body> <a href="/InSite/LinkTwo.html" name="LinkTwo">Link Two</a><br> <a href="/InSite/LinkThree.html" name="LinkThree">Link Three</a> </body> </html> --- NEW FILE: LinkTwo.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Link Two</title> </head> <body> <a href="/InSite/LinkOne.html" name="LinkOne">Link One</a><br> <a href="/InSite/LinkThree.html" name="LinkThree">Link Three</a> </body> </html> --- NEW FILE: JavascriptTest.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD><TITLE>JavascriptTest</TITLE> <script language="javascript"> function writeTextToPage() { writeProvidedTextToPage("Outputed test text"); } function writeProvidedTextToPage(text) { document.writeln(text); } </script> </HEAD> <body> </body> </HTML> --- NEW FILE: SelectListTest.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Select List Test</title> </head> <body> <form name="SelectListForm" action="/InSite/TestResult.aspx" method="post"> <select name="SelectList"> <option value="select1" selected>Select 1</option> <option value="select2">Select 2</option> </select> <input type="submit" name="submit" value="Submit"/> </form> </body> </html> --- NEW FILE: MultiLinks.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Multi Links</title> </head> <body> <a href="/InSite/LinkOne.html" name="LinkOne">Link One</a><br> <a href="/InSite/LinkTwo.html" name="LinkTwo">Link Two</a><br> <a href="/InSite/LinkThree.html" name="LinkThree">Link Three</a> <br> <a href="/InSite/null.html" name="NullLink">Null Link</a> </body> </html> --- NEW FILE: Global.asax --- <%@ Application Codebehind="Global.asax.cs" Inherits="InSite.Global" %> --- NEW FILE: NestedFrameTest.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD><TITLE>FrameTest</TITLE> </HEAD> <frameset rows="100,*"> <frame scrolling="auto" name="TopFrame" frameBorder="yes" src="Blank.html"/> <frame scrolling="yes" name="BottomFrame" frameBorder="yes" src="FrameTest.html"/> </frameset> </HTML> --- NEW FILE: LinkTypes.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Multi Links</title> </head> <body> <P> <a href="/InSite/LinkOne.html">Href Only</a><br> <a href="/InSite/LinkOne.html" name="NameOnly">Name Only</a><br> <a href="/InSite/LinkOne.html" id="IdOnly">Id Only</a><br> <a href="/InSite/LinkOne.html">Text Only</a><br> <a href="/InSite/LinkOne.html"><i>Html Only</i></a></P> <P> <map name="testmap"> <area shape="circle" coords="109,115,15" href="javascript:alert('You found the secret message');"> </map> </P> </body> </html> --- NEW FILE: silly-walk.jpg --- (This appears to be a binary file; contents omitted.) --- NEW FILE: FrameTest.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD><TITLE>FrameTest</TITLE> </HEAD> <frameset cols="240, *"> <frame scrolling="auto" name="LeftFrame" frameBorder="yes" src="FrameTestLeftPage.html"/> <frame scrolling="yes" name="RightFrame" frameBorder="yes" src="FrameTestRightPage.html"/> </frameset> </HTML> |
|
From: jkordyback <jko...@us...> - 2005-09-27 20:51:55
|
Update of /cvsroot/fat/InSite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18282 Added Files: InSite.sln ReadMe.txt Log Message: Initial checkin of InSite. Only base controller and tests. --- NEW FILE: InSite.sln --- Microsoft Visual Studio Solution File, Format Version 8.00 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InSite.Controller", "InSite.Controller\InSite.Controller.csproj", "{8A38F5DC-EA35-4DF2-B413-012E54764934}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InSite.Web.Test", "http://localhost/insite/InSite.Web.Test.csproj", "{AF47DCE8-6A0F-4318-A642-7EB9BDF24106}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InSite.Controller.Test", "InSite.Controller.Test\InSite.Controller.Test.csproj", "{1EE8C1FB-A9A6-46C0-95BF-01FDFD899F71}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Global GlobalSection(SolutionConfiguration) = preSolution Debug = Debug Release = Release EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution {8A38F5DC-EA35-4DF2-B413-012E54764934}.Debug.ActiveCfg = Debug|.NET {8A38F5DC-EA35-4DF2-B413-012E54764934}.Debug.Build.0 = Debug|.NET {8A38F5DC-EA35-4DF2-B413-012E54764934}.Release.ActiveCfg = Release|.NET {8A38F5DC-EA35-4DF2-B413-012E54764934}.Release.Build.0 = Release|.NET {AF47DCE8-6A0F-4318-A642-7EB9BDF24106}.Debug.ActiveCfg = Debug|.NET {AF47DCE8-6A0F-4318-A642-7EB9BDF24106}.Debug.Build.0 = Debug|.NET {AF47DCE8-6A0F-4318-A642-7EB9BDF24106}.Release.ActiveCfg = Release|.NET {AF47DCE8-6A0F-4318-A642-7EB9BDF24106}.Release.Build.0 = Release|.NET {1EE8C1FB-A9A6-46C0-95BF-01FDFD899F71}.Debug.ActiveCfg = Debug|.NET {1EE8C1FB-A9A6-46C0-95BF-01FDFD899F71}.Debug.Build.0 = Debug|.NET {1EE8C1FB-A9A6-46C0-95BF-01FDFD899F71}.Release.ActiveCfg = Release|.NET {1EE8C1FB-A9A6-46C0-95BF-01FDFD899F71}.Release.Build.0 = Release|.NET EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EndGlobalSection GlobalSection(ExtensibilityAddIns) = postSolution EndGlobalSection EndGlobal --- NEW FILE: ReadMe.txt --- John Kordyback September 27, 2005 Issues 1. Page.LoadFrames causes an error in nunit.gui. Doesn't happen with nunit.console or ReSharper. 2. PageNotFoundTest.ShouldNotNavigateToPageNotFoundUrl is currently ignored until threading issue with Browser sorted out. 3. Browser and Page need a whole lot of refactoring. Interfaces to sort out methods at the very least. Setup Create an IIS virtual directory called "InSite" which points to the "InSite.Web.Test" directory for the tests to run. |
|
From: jkordyback <jko...@us...> - 2005-09-27 20:50:17
|
Update of /cvsroot/fat/InSite/InSite.Web.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18042/InSite.Web.Test Log Message: Directory /cvsroot/fat/InSite/InSite.Web.Test added to the repository |
|
From: jkordyback <jko...@us...> - 2005-09-27 20:50:17
|
Update of /cvsroot/fat/InSite/InSite.Controller In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18042/InSite.Controller Log Message: Directory /cvsroot/fat/InSite/InSite.Controller added to the repository |
|
From: jkordyback <jko...@us...> - 2005-09-27 20:50:17
|
Update of /cvsroot/fat/InSite/InSite.Controller.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18042/InSite.Controller.Test Log Message: Directory /cvsroot/fat/InSite/InSite.Controller.Test added to the repository |
|
From: <ben...@id...> - 2004-05-25 08:04:07
|
Dear Open Source developer I am doing a research project on "Fun and Software Development" in which I kindly invite you to participate. You will find the online survey under http://fasd.ethz.ch/qsf/. The questionnaire consists of 53 questions and you will need about 15 minutes to complete it. With the FASD project (Fun and Software Development) we want to define the motivational significance of fun when software developers decide to engage in Open Source projects. What is special about our research project is that a similar survey is planned with software developers in commercial firms. This procedure allows the immediate comparison between the involved individuals and the conditions of production of these two development models. Thus we hope to obtain substantial new insights to the phenomenon of Open Source Development. With many thanks for your participation, Benno Luthiger PS: The results of the survey will be published under http://www.isu.unizh.ch/fuehrung/blprojects/FASD/. We have set up the mailing list fa...@we... for this study. Please see http://fasd.ethz.ch/qsf/mailinglist_en.html for registration to this mailing list. _______________________________________________________________________ Benno Luthiger Swiss Federal Institute of Technology Zurich 8092 Zurich Mail: benno.luthiger(at)id.ethz.ch _______________________________________________________________________ |
|
From: <dmc...@us...> - 2004-03-14 11:03:54
|
Update of /cvsroot/fat/FAT/src/FAT.Web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31168/src/FAT.Web Modified Files: Default.aspx Default.aspx.cs DefaultPageModel.cs FAT.Web.csproj FixtureSpecifierControl.cs IPage.cs Page.cs TestFixtureHelpControl.cs Added Files: Controls.cs IControls.cs TestFixtureHelpLinkControl.cs Log Message: Refactored test fixture help image link out of Default.aspx in to the new TestFixtrureHelpLinkControl. --- NEW FILE: Controls.cs --- using System; using System.Web.UI; namespace FAT.Web { public class Controls : IControls { private ControlCollection controlCollection; public Controls(ControlCollection controlCollection) { this.controlCollection = controlCollection; } public void Add(Control control) { controlCollection.Add(control); } } } --- NEW FILE: IControls.cs --- using System; using System.Web.UI; namespace FAT.Web { public interface IControls { void Add(Control control); } } --- NEW FILE: TestFixtureHelpLinkControl.cs --- using System; using System.Web.UI; using System.Web.UI.WebControls; namespace FAT.Web { public class TestFixtureHelpLinkControl : Control { private HyperLink helpLink; private string fixturesDropDownListID; public TestFixtureHelpLinkControl(string fixturesDropDownListID) { this.fixturesDropDownListID = fixturesDropDownListID; } protected HyperLink HelpLink { get { EnsureChildControls(); return helpLink; } } protected override void CreateChildControls() { helpLink = new HyperLink(); helpLink.Attributes["OnClick"] = "openTestFixtureHelpWindow()"; HelpLink.ImageUrl = "images/QuestionMark.jpg"; Controls.Add(helpLink); Page.RegisterClientSideScriptBlock("TestFixtureHelpLinkJavaScript", GetJavascript()); } private string GetJavascript() { return @" <script> function openTestFixtureHelpWindow() { window.open(" + GetTestFixtureHelpWindowURLJavascript() + @", 'Bob', 'width=400,height=400,resizable=yes,location=no'); } function getSelectedFixture() { return " + GetFixturesDropDownListJavascript() + @".options[" + GetFixturesDropDownListJavascript() + @".selectedIndex].text; } </script>"; } private string GetTestFixtureHelpWindowURLJavascript() { return "'" + typeof(TestFixtureHelp).Name + ".aspx?" + TestFixtureHelpControl.FIXTURE_PARAMETER_NAME + "=' + getSelectedFixture()"; } private const string formName = "CreateTest"; // where to get this name dependency from? private string GetFixturesDropDownListJavascript() { return "document." + formName + "." + fixturesDropDownListID; } protected new virtual IPage Page { get {return new Page(base.Page);} } protected new virtual IControls Controls { get {return new Controls(base.Controls);} } } } Index: Default.aspx =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/Default.aspx,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Default.aspx 6 Mar 2004 13:40:17 -0000 1.7 --- Default.aspx 14 Mar 2004 10:54:53 -0000 1.8 *************** *** 6,18 **** <title>FAT Functional Acceptance Testing Framework</title> <link media="screen" href="FAT.css" type="text/css" rel="stylesheet"> - <script> - function openTestfixtureHelpWindow() { - window.open('TestFixtureHelp.aspx' + '?fixture=' + getSelectedFixture(), 'Bob', 'width=400,height=400,resizable=yes,location=no'); - } - - function getSelectedFixture() { - return document.CreateTest.fixture_implementedFixturesDropDownList.options[document.CreateTest.fixture_implementedFixturesDropDownList.selectedIndex].text; - } - </script> </HEAD> <body> --- 6,9 ---- *************** *** 31,46 **** </tr> <tr> ! <td> ! <table cellpadding="0" cellspacing="0"> ! <tr> ! <td><asp:Label id="fixtureLabel" Runat="server">Fixture: </asp:Label></td> ! <td> ! <asp:HyperLink OnClick="openTestfixtureHelpWindow()" runat="server" id="HyperLink1"> ! <asp:Image ImageAlign="Right" ImageUrl="images/QuestionMark.jpg" runat="server" /> ! </asp:HyperLink> ! </td> ! </tr> ! </table> ! </td> <td><FAT:FixtureSpecifierControl runat="server" id="fixture" /></td> <td><asp:Label id="fixtureWarning" Runat="server">*</asp:Label></td> --- 22,26 ---- </tr> <tr> ! <td><asp:Label id="fixtureLabel" Runat="server">Fixture: </asp:Label></td> <td><FAT:FixtureSpecifierControl runat="server" id="fixture" /></td> <td><asp:Label id="fixtureWarning" Runat="server">*</asp:Label></td> Index: Default.aspx.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/Default.aspx.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Default.aspx.cs 6 Mar 2004 13:40:17 -0000 1.7 --- Default.aspx.cs 14 Mar 2004 10:54:54 -0000 1.8 *************** *** 25,29 **** protected PlaceHolder results; protected ImageButton fixtureHelpImageButton; - protected System.Web.UI.WebControls.HyperLink HyperLink1; private DefaultPageModel model = new DefaultPageModel(); --- 25,28 ---- Index: DefaultPageModel.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/DefaultPageModel.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** DefaultPageModel.cs 29 Feb 2004 14:59:52 -0000 1.8 --- DefaultPageModel.cs 14 Mar 2004 10:54:54 -0000 1.9 *************** *** 95,99 **** { TableCell cell = new TableCell(); - HyperLink image = new HyperLink(); image.NavigateUrl = htmlWithAbsoluteUrlsUrl; --- 95,98 ---- Index: FAT.Web.csproj =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/FAT.Web.csproj,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** FAT.Web.csproj 6 Mar 2004 13:40:17 -0000 1.8 --- FAT.Web.csproj 14 Mar 2004 10:54:54 -0000 1.9 *************** *** 98,101 **** --- 98,106 ---- /> <File + RelPath = "Controls.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Default.aspx" SubType = "Form" *************** *** 148,151 **** --- 153,161 ---- /> <File + RelPath = "IControls.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "IPage.cs" SubType = "Code" *************** *** 189,192 **** --- 199,207 ---- /> <File + RelPath = "TestFixtureHelpLinkControl.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "TestTreeView.cs" SubType = "Code" Index: FixtureSpecifierControl.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/FixtureSpecifierControl.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FixtureSpecifierControl.cs 29 Feb 2004 19:03:38 -0000 1.2 --- FixtureSpecifierControl.cs 14 Mar 2004 10:54:54 -0000 1.3 *************** *** 33,36 **** --- 33,38 ---- } + private const string implementedFixturesDropDownListID = "implementedFixturesDropDownList"; + protected override void CreateChildControls() { *************** *** 42,47 **** AddLabelToRow(row, "Existing Fixture: "); implementedFixturesDropDownList = new DropDownList(); ! implementedFixturesDropDownList.ID = "implementedFixturesDropDownList"; row.Cells.Add(CreateTableCell(implementedFixturesDropDownList)); --- 44,53 ---- AddLabelToRow(row, "Existing Fixture: "); + row.Cells.Add(CreateTableCell(new TestFixtureHelpLinkControl(UniqueID + "_" + implementedFixturesDropDownListID))); + + AddLabelToRow(row, " "); + implementedFixturesDropDownList = new DropDownList(); ! implementedFixturesDropDownList.ID = implementedFixturesDropDownListID; row.Cells.Add(CreateTableCell(implementedFixturesDropDownList)); Index: IPage.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/IPage.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** IPage.cs 6 Mar 2004 13:40:17 -0000 1.2 --- IPage.cs 14 Mar 2004 10:54:54 -0000 1.3 *************** *** 7,10 **** --- 7,11 ---- bool IsPostBack {get;} IRequest Request {get;} + void RegisterClientSideScriptBlock(string key, string script); } } Index: Page.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/Page.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Page.cs 6 Mar 2004 13:40:17 -0000 1.2 --- Page.cs 14 Mar 2004 10:54:54 -0000 1.3 *************** *** 13,16 **** --- 13,18 ---- public bool IsPostBack {get {return page.IsPostBack;}} public IRequest Request {get {return new Request(page.Request); }} + public void RegisterClientSideScriptBlock(string key, string script) {page.RegisterClientScriptBlock(key, script);} + //public string Form { get {return page.Form;} } } } Index: TestFixtureHelpControl.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/TestFixtureHelpControl.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TestFixtureHelpControl.cs 6 Mar 2004 13:40:17 -0000 1.1 --- TestFixtureHelpControl.cs 14 Mar 2004 10:54:54 -0000 1.2 *************** *** 8,11 **** --- 8,13 ---- public class TestFixtureHelpControl : Control { + public const string FIXTURE_PARAMETER_NAME = "fixture"; + private ITestFixtureLoader loader; private ITestFixtureHtmlFormatter formatter; *************** *** 24,28 **** protected override void CreateChildControls() { ! string fixture = (string)Page.Request["fixture"]; Type type = loader.GetType(fixture); help = formatter.Format(type, fixture); --- 26,30 ---- protected override void CreateChildControls() { ! string fixture = (string)Page.Request[FIXTURE_PARAMETER_NAME]; Type type = loader.GetType(fixture); help = formatter.Format(type, fixture); |
|
From: <dmc...@us...> - 2004-03-14 11:03:52
|
Update of /cvsroot/fat/FAT/test/FAT.Test/Web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31168/test/FAT.Test/Web Added Files: TestFixtureHelpLinkControlTest.cs Log Message: Refactored test fixture help image link out of Default.aspx in to the new TestFixtrureHelpLinkControl. --- NEW FILE: TestFixtureHelpLinkControlTest.cs --- using FAT.Web; using NMock; using NMock.Constraints; using NUnit.Framework; using System; using System.Web.UI.WebControls; namespace FAT.Test.Web { [TestFixture] public class TestFixtureHelpLinkControlTest : Assertion { [Test] public void CreateControl() { IMock mockPage = new DynamicMock(typeof(IPage)); IMock mockControls = new DynamicMock(typeof(IControls)); string expectedJavascript = @" <script> function openTestFixtureHelpWindow() { window.open('TestFixtureHelp.aspx?fixture=' + getSelectedFixture(), 'Bob', 'width=400,height=400,resizable=yes,location=no'); } function getSelectedFixture() { return document.CreateTest.bish.options[document.CreateTest.bish.selectedIndex].text; } </script>"; mockPage.Expect("RegisterClientSideScriptBlock", "TestFixtureHelpLinkJavaScript", expectedJavascript); mockControls.Expect("Add", new IsTypeOf(typeof(HyperLink))); TestFixtureHelpLinkTestExtension control = new TestFixtureHelpLinkTestExtension("bish", (IPage)mockPage.MockInstance, (IControls)mockControls.MockInstance); AssertEquals("openTestFixtureHelpWindow()", control.HelpLink.Attributes["OnClick"]); AssertEquals("images/QuestionMark.jpg", control.HelpLink.ImageUrl); mockPage.Verify(); mockControls.Verify(); } } class TestFixtureHelpLinkTestExtension : TestFixtureHelpLinkControl { private IPage page; private IControls controls; public TestFixtureHelpLinkTestExtension(string fixtureDropDownListID, IPage page, IControls controls) : base(fixtureDropDownListID) { this.page = page; this.controls = controls; } public new HyperLink HelpLink { get { return base.HelpLink; } } protected override IPage Page { get {return page;} } protected override IControls Controls { get {return controls;} } } } |
|
From: <dmc...@us...> - 2004-03-14 11:03:50
|
Update of /cvsroot/fat/FAT/test/FAT.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31168/test/FAT.Test Modified Files: FAT.Test.csproj Log Message: Refactored test fixture help image link out of Default.aspx in to the new TestFixtrureHelpLinkControl. Index: FAT.Test.csproj =================================================================== RCS file: /cvsroot/fat/FAT/test/FAT.Test/FAT.Test.csproj,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** FAT.Test.csproj 6 Mar 2004 13:40:17 -0000 1.10 --- FAT.Test.csproj 14 Mar 2004 10:54:54 -0000 1.11 *************** *** 218,221 **** --- 218,226 ---- /> <File + RelPath = "Web\TestFixtureHelpLinkControlTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Web\TestTreeViewTest.cs" SubType = "Code" |
|
From: <dmc...@us...> - 2004-03-06 13:58:32
|
Update of /cvsroot/fat/FAT/test/FAT.Test/Web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23906/test/FAT.Test/Web Removed Files: TestFixtureHelpPageModelTest.cs Log Message: Refactored TestFixtureHelpPageModel into TestFixtrureHelpControl. --- TestFixtureHelpPageModelTest.cs DELETED --- |
|
From: <dmc...@us...> - 2004-03-06 13:58:32
|
Update of /cvsroot/fat/FAT/src/FAT.Web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23906/src/FAT.Web Removed Files: TestFixtureHelpPageModel.cs Log Message: Refactored TestFixtureHelpPageModel into TestFixtrureHelpControl. --- TestFixtureHelpPageModel.cs DELETED --- |
|
From: <dmc...@us...> - 2004-03-06 13:58:32
|
Update of /cvsroot/fat/FAT/src/FAT.Web/HtmlDetails In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23906/src/FAT.Web/HtmlDetails Removed Files: IRequest.cs Request.cs Log Message: Refactored TestFixtureHelpPageModel into TestFixtrureHelpControl. --- IRequest.cs DELETED --- --- Request.cs DELETED --- |
|
From: <dmc...@us...> - 2004-03-06 13:55:12
|
Update of /cvsroot/fat/FAT/test/FAT.Test/Web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23362/test/FAT.Test/Web Added Files: TestFixtureHelpControlTest.cs Log Message: Refactored TestFixtureHelpPageModel into TestFixtrureHelpControl. --- NEW FILE: TestFixtureHelpControlTest.cs --- using FAT.Core; using FAT.Web; using NMock; using NUnit.Framework; using System; using System.Web.UI.WebControls; namespace FAT.Test.Web { [TestFixture] public class TestFixtureHelpControlTest : Assertion { [Test] public void CreateFixtureHelp() { IMock mockLoader = new DynamicMock(typeof(ITestFixtureLoader)); IMock mockFormatter = new DynamicMock(typeof(ITestFixtureHtmlFormatter)); IMock mockPage = new DynamicMock(typeof(IPage)); IMock mockRequest = new DynamicMock(typeof(IRequest)); Label formattedTestFixture = new Label(); formattedTestFixture.Text = "test fixture help"; mockPage.ExpectAndReturn("Request", (IRequest)mockRequest.MockInstance); mockRequest.ExpectAndReturn("Item", "FATFixtureName", "fixture"); mockLoader.ExpectAndReturn("GetType", typeof(object), "FATFixtureName"); mockFormatter.ExpectAndReturn("Format", formattedTestFixture, typeof(object), "FATFixtureName"); TestFixtureHelpControlTestExtension control = new TestFixtureHelpControlTestExtension((ITestFixtureLoader)mockLoader.MockInstance, (ITestFixtureHtmlFormatter)mockFormatter.MockInstance, (IPage)mockPage.MockInstance); AssertEquals(formattedTestFixture, control.Help); mockPage.Verify(); mockRequest.Verify(); mockLoader.Verify(); mockFormatter.Verify(); } } class TestFixtureHelpControlTestExtension : TestFixtureHelpControl { private IPage page; public TestFixtureHelpControlTestExtension(ITestFixtureLoader loader, ITestFixtureHtmlFormatter formatter, IPage page) : base(loader, formatter) { this.page = page; } protected override IPage Page { get { return page; } } } } |
|
From: <dmc...@us...> - 2004-03-06 13:55:11
|
Update of /cvsroot/fat/FAT/src/FAT.Web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23362/src/FAT.Web Modified Files: Default.aspx Default.aspx.cs FAT.Web.csproj IPage.cs Page.cs TestFixtureHelp.aspx TestFixtureHelp.aspx.cs Added Files: IRequest.cs Request.cs TestFixtureHelpControl.cs Log Message: Refactored TestFixtureHelpPageModel into TestFixtrureHelpControl. --- NEW FILE: IRequest.cs --- using System; namespace FAT.Web { public interface IRequest { object this[string key] {get;} } } --- NEW FILE: Request.cs --- using System; using System.Web; namespace FAT.Web { public class Request : IRequest { private HttpRequest request; public Request(HttpRequest request) { this.request = request; } public object this[string key] { get {return request[key];} } } } --- NEW FILE: TestFixtureHelpControl.cs --- using FAT.Core; using FAT.Core.Configuration; using System; using System.Web.UI; namespace FAT.Web { public class TestFixtureHelpControl : Control { private ITestFixtureLoader loader; private ITestFixtureHtmlFormatter formatter; private Control help; public TestFixtureHelpControl() : this(ConfigurationFactory.Create()) {} public TestFixtureHelpControl(IConfiguration configuration) : this(new TestFixtureLoader(configuration), configuration.TestFixtureHtmlFormatter) {} public TestFixtureHelpControl(ITestFixtureLoader loader, ITestFixtureHtmlFormatter formatter) { this.loader = loader; this.formatter = formatter; } protected override void CreateChildControls() { string fixture = (string)Page.Request["fixture"]; Type type = loader.GetType(fixture); help = formatter.Format(type, fixture); Controls.Add(help); } public Control Help { get { EnsureChildControls(); return help; } } protected new virtual IPage Page { get { return new Page(base.Page); }} } } Index: Default.aspx =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/Default.aspx,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Default.aspx 29 Feb 2004 14:59:52 -0000 1.6 --- Default.aspx 6 Mar 2004 13:40:17 -0000 1.7 *************** *** 1,4 **** - <%@ Register Tagprefix="FAT" Namespace="FAT.Web" Assembly="FAT.Web" %> <%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="FAT.Web.Default" EnableSessionState=true %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> --- 1,4 ---- <%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="FAT.Web.Default" EnableSessionState=true %> + <%@ Register Tagprefix="FAT" Namespace="FAT.Web" Assembly="FAT.Web" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> Index: Default.aspx.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/Default.aspx.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Default.aspx.cs 29 Feb 2004 14:59:52 -0000 1.6 --- Default.aspx.cs 6 Mar 2004 13:40:17 -0000 1.7 *************** *** 25,28 **** --- 25,29 ---- protected PlaceHolder results; protected ImageButton fixtureHelpImageButton; + protected System.Web.UI.WebControls.HyperLink HyperLink1; private DefaultPageModel model = new DefaultPageModel(); *************** *** 54,57 **** --- 55,59 ---- { this.run.Click += new System.EventHandler(this.Run_Click); + } #endregion Index: FAT.Web.csproj =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/FAT.Web.csproj,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** FAT.Web.csproj 29 Feb 2004 14:59:52 -0000 1.7 --- FAT.Web.csproj 6 Mar 2004 13:40:17 -0000 1.8 *************** *** 153,156 **** --- 153,161 ---- /> <File + RelPath = "IRequest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Page.cs" SubType = "Code" *************** *** 158,161 **** --- 163,171 ---- /> <File + RelPath = "Request.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "TestFixtureHelp.aspx" SubType = "Form" *************** *** 174,178 **** /> <File ! RelPath = "TestFixtureHelpPageModel.cs" SubType = "Code" BuildAction = "Compile" --- 184,188 ---- /> <File ! RelPath = "TestFixtureHelpControl.cs" SubType = "Code" BuildAction = "Compile" *************** *** 236,244 **** /> <File - RelPath = "HtmlDetails\IRequest.cs" - SubType = "Code" - BuildAction = "Compile" - /> - <File RelPath = "HtmlDetails\IResponse.cs" SubType = "Code" --- 246,249 ---- *************** *** 256,264 **** /> <File - RelPath = "HtmlDetails\Request.cs" - SubType = "Code" - BuildAction = "Compile" - /> - <File RelPath = "HtmlDetails\Response.cs" SubType = "Code" --- 261,264 ---- Index: IPage.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/IPage.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** IPage.cs 29 Feb 2004 14:59:52 -0000 1.1 --- IPage.cs 6 Mar 2004 13:40:17 -0000 1.2 *************** *** 6,9 **** --- 6,10 ---- { bool IsPostBack {get;} + IRequest Request {get;} } } Index: Page.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/Page.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Page.cs 29 Feb 2004 14:59:52 -0000 1.1 --- Page.cs 6 Mar 2004 13:40:17 -0000 1.2 *************** *** 12,15 **** --- 12,16 ---- public bool IsPostBack {get {return page.IsPostBack;}} + public IRequest Request {get {return new Request(page.Request); }} } } Index: TestFixtureHelp.aspx =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/TestFixtureHelp.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TestFixtureHelp.aspx 20 Feb 2004 17:56:50 -0000 1.1 --- TestFixtureHelp.aspx 6 Mar 2004 13:40:17 -0000 1.2 *************** *** 1,3 **** --- 1,4 ---- <%@ Page language="c#" Codebehind="TestFixtureHelp.aspx.cs" AutoEventWireup="false" Inherits="FAT.Web.TestFixtureHelp" %> + <%@ Register Tagprefix="FAT" Namespace="FAT.Web" Assembly="FAT.Web" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> *************** *** 7,11 **** </HEAD> <body> ! <asp:PlaceHolder id="fixtureHelp" runat="server"></asp:PlaceHolder> </body> </HTML> --- 8,12 ---- </HEAD> <body> ! <FAT:TestFixtureHelpControl runat="server"></FAT:TestFixtureHelpControl> </body> </HTML> Index: TestFixtureHelp.aspx.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/TestFixtureHelp.aspx.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TestFixtureHelp.aspx.cs 29 Feb 2004 14:59:52 -0000 1.2 --- TestFixtureHelp.aspx.cs 6 Mar 2004 13:40:17 -0000 1.3 *************** *** 7,19 **** public class TestFixtureHelp : System.Web.UI.Page { - protected System.Web.UI.WebControls.Literal help; - protected PlaceHolder fixtureHelp; - - private void Page_Load(object sender, EventArgs e) - { - TestFixtureHelpPageModel model = new TestFixtureHelpPageModel(); - fixtureHelp.Controls.Add(model.CreateFixtureHelp(Request["fixture"])); - } - #region Web Form Designer generated code override protected void OnInit(EventArgs e) --- 7,10 ---- *************** *** 32,37 **** private void InitializeComponent() { - this.Load += new System.EventHandler(this.Page_Load); - } #endregion --- 23,26 ---- |
|
From: <dmc...@us...> - 2004-03-06 13:55:10
|
Update of /cvsroot/fat/FAT/test/FAT.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23362/test/FAT.Test Modified Files: FAT.Test.csproj Log Message: Refactored TestFixtureHelpPageModel into TestFixtrureHelpControl. Index: FAT.Test.csproj =================================================================== RCS file: /cvsroot/fat/FAT/test/FAT.Test/FAT.Test.csproj,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** FAT.Test.csproj 29 Feb 2004 14:59:52 -0000 1.9 --- FAT.Test.csproj 6 Mar 2004 13:40:17 -0000 1.10 *************** *** 213,217 **** /> <File ! RelPath = "Web\TestFixtureHelpPageModelTest.cs" SubType = "Code" BuildAction = "Compile" --- 213,217 ---- /> <File ! RelPath = "Web\TestFixtureHelpControlTest.cs" SubType = "Code" BuildAction = "Compile" |
|
From: <dmc...@us...> - 2004-03-06 13:55:10
|
Update of /cvsroot/fat/FAT/test/FAT.Test/Web/HtmlDetails In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23362/test/FAT.Test/Web/HtmlDetails Modified Files: HtmlDetailsRequestHandlerTest.cs Log Message: Refactored TestFixtureHelpPageModel into TestFixtrureHelpControl. Index: HtmlDetailsRequestHandlerTest.cs =================================================================== RCS file: /cvsroot/fat/FAT/test/FAT.Test/Web/HtmlDetails/HtmlDetailsRequestHandlerTest.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** HtmlDetailsRequestHandlerTest.cs 3 Feb 2004 22:08:09 -0000 1.1 --- HtmlDetailsRequestHandlerTest.cs 6 Mar 2004 13:40:18 -0000 1.2 *************** *** 1,2 **** --- 1,3 ---- + using FAT.Web; using FAT.Web.HtmlDetails; using NMock; |
|
From: <dmc...@us...> - 2004-02-29 19:14:05
|
Update of /cvsroot/fat/FAT/test/FAT.Test/Web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv305/test/FAT.Test/Web Modified Files: FixtureSpecifierControlTest.cs Log Message: Added NewFixtureTextBox to FixtureSpecifierControl so that user is able to enter the name of a new (as yet unimplemented) test fixture. Index: FixtureSpecifierControlTest.cs =================================================================== RCS file: /cvsroot/fat/FAT/test/FAT.Test/Web/FixtureSpecifierControlTest.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FixtureSpecifierControlTest.cs 29 Feb 2004 14:59:52 -0000 1.1 --- FixtureSpecifierControlTest.cs 29 Feb 2004 19:03:38 -0000 1.2 *************** *** 24,33 **** [Test] ! public void PopulatesDropDownWithTestFixtureNamesOnGet() { mockLoader.ExpectAndReturn("GetFixtureNames", new string []{"bish", "bash", "bosh"}); mockPage.ExpectAndReturn("IsPostBack", false); ! fixtureSpecifier.CallOnLoad(); AssertEquals(3, fixtureSpecifier.ImplementedFixturesDropDownList.Items.Count); --- 24,33 ---- [Test] ! public void PopulatesDropDownWithTestFixtureNamesOnHttpGet() { mockLoader.ExpectAndReturn("GetFixtureNames", new string []{"bish", "bash", "bosh"}); mockPage.ExpectAndReturn("IsPostBack", false); ! fixtureSpecifier.OnLoad(null); AssertEquals(3, fixtureSpecifier.ImplementedFixturesDropDownList.Items.Count); *************** *** 41,49 **** [Test] ! public void DoesNotPopulateDropDownWithTestFixtureNamesOnPostAsViewStateMaintainsEntries() { mockPage.ExpectAndReturn("IsPostBack", true); ! fixtureSpecifier.CallOnLoad(); AssertEquals(0, fixtureSpecifier.ImplementedFixturesDropDownList.Items.Count); --- 41,49 ---- [Test] ! public void DoesNotPopulateDropDownWithTestFixtureNamesOnHttpPostAsViewStateMaintainsEntries() { mockPage.ExpectAndReturn("IsPostBack", true); ! fixtureSpecifier.OnLoad(null); AssertEquals(0, fixtureSpecifier.ImplementedFixturesDropDownList.Items.Count); *************** *** 59,63 **** mockPage.ExpectAndReturn("IsPostBack", false); ! fixtureSpecifier.CallOnLoad(); AssertEquals("bish", fixtureSpecifier.SelectedFixture); --- 59,63 ---- mockPage.ExpectAndReturn("IsPostBack", false); ! fixtureSpecifier.OnLoad(null); AssertEquals("bish", fixtureSpecifier.SelectedFixture); *************** *** 68,85 **** [Test] ! public void WhenTextBoxIsPopulatedThenSelectedTestfixtureIsGivenByTextBox() { mockLoader.ExpectAndReturn("GetFixtureNames", new string []{"bish", "bash", "bosh"}); mockPage.ExpectAndReturn("IsPostBack", false); ! fixtureSpecifier.CallOnLoad(); ! // TODO: finish implementation ! //fixtureSpecifier.NewFixtureTextBox.Text = "NewFixtureName"; ! //AssertEquals("NewfixtureName", fixtureSpecifier.SelectedFixture); ! //mockLoader.Verify(); ! //mockPage.Verify(); } } --- 68,84 ---- [Test] ! public void WhenTextBoxIsPopulatedThenSelectedFixtureIsGivenByTextBox() { mockLoader.ExpectAndReturn("GetFixtureNames", new string []{"bish", "bash", "bosh"}); mockPage.ExpectAndReturn("IsPostBack", false); ! fixtureSpecifier.OnLoad(null); ! fixtureSpecifier.NewFixtureTextBox.Text = "NewFixtureName"; ! AssertEquals("NewFixtureName", fixtureSpecifier.SelectedFixture); ! mockLoader.Verify(); ! mockPage.Verify(); } } *************** *** 94,109 **** } ! protected override IPage Page ! { ! get ! { ! return page; ! } ! } ! public void CallOnLoad() ! { ! OnLoad(null); ! } } } --- 93,102 ---- } ! protected override IPage Page { get {return page;} } ! public new DropDownList ImplementedFixturesDropDownList { get { return base.ImplementedFixturesDropDownList; }} ! public new TextBox NewFixtureTextBox { get { return base.NewFixtureTextBox; }} ! ! public new void OnLoad(EventArgs args) { base.OnLoad(null); } } } |
|
From: <dmc...@us...> - 2004-02-29 19:14:05
|
Update of /cvsroot/fat/FAT/src/FAT.Web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv305/src/FAT.Web Modified Files: FixtureSpecifierControl.cs Log Message: Added NewFixtureTextBox to FixtureSpecifierControl so that user is able to enter the name of a new (as yet unimplemented) test fixture. Index: FixtureSpecifierControl.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/FixtureSpecifierControl.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FixtureSpecifierControl.cs 29 Feb 2004 14:59:52 -0000 1.1 --- FixtureSpecifierControl.cs 29 Feb 2004 19:03:38 -0000 1.2 *************** *** 11,14 **** --- 11,15 ---- ITestFixtureLoader loader; private DropDownList implementedFixturesDropDownList; + private TextBox newFixtureTextBox; public FixtureSpecifierControl() : this (ConfigurationFactory.Create()) {} *************** *** 34,50 **** protected override void CreateChildControls() { implementedFixturesDropDownList = new DropDownList(); implementedFixturesDropDownList.ID = "implementedFixturesDropDownList"; ! implementedFixturesDropDownList.Width = 500; ! Controls.Add(implementedFixturesDropDownList); } public string SelectedFixture { ! get {return ImplementedFixturesDropDownList.SelectedItem.Value;} } ! public DropDownList ImplementedFixturesDropDownList { get --- 35,101 ---- protected override void CreateChildControls() { + Table table = CreateTable(); + + TableRow row = new TableRow(); + table.Rows.Add(row); + + AddLabelToRow(row, "Existing Fixture: "); + implementedFixturesDropDownList = new DropDownList(); implementedFixturesDropDownList.ID = "implementedFixturesDropDownList"; ! row.Cells.Add(CreateTableCell(implementedFixturesDropDownList)); ! AddLabelToRow(row, " or New Fixture: "); ! ! newFixtureTextBox = new TextBox(); ! newFixtureTextBox.ID = "newFixtureTextBox"; ! newFixtureTextBox.Width = new Unit(100, UnitType.Percentage); ! TableCell cell = CreateTableCell(newFixtureTextBox); ! cell.Width = new Unit(100, UnitType.Percentage); ! row.Cells.Add(cell); ! ! Controls.Add(table); ! } ! ! private Table CreateTable() ! { ! Table table = new Table(); ! table.CellPadding = table.CellSpacing = 0; ! table.BorderWidth = new Unit(0, UnitType.Pixel); ! table.Width = new Unit(100, UnitType.Percentage); ! return table; ! } ! ! private void AddLabelToRow(TableRow row, string text) ! { ! Label label = new Label(); ! label.Text = text; ! row.Cells.Add(CreateTableCell(label)); ! } ! ! private TableCell CreateTableCell(Control control) ! { ! TableCell cell = new TableCell(); ! cell.Wrap = false; ! cell.Controls.Add(control); ! return cell; } public string SelectedFixture { ! get ! { ! if (NewFixtureTextBox.Text == "") ! { ! return ImplementedFixturesDropDownList.SelectedItem.Value; ! } ! else ! { ! return NewFixtureTextBox.Text; ! } ! } } ! protected DropDownList ImplementedFixturesDropDownList { get *************** *** 55,58 **** --- 106,118 ---- } + protected TextBox NewFixtureTextBox + { + get + { + EnsureChildControls(); + return newFixtureTextBox; + } + } + protected new virtual IPage Page { |
Update of /cvsroot/fat/FAT/src/FAT.Web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16766/src/FAT.Web Modified Files: Default.aspx Default.aspx.cs DefaultPageModel.cs FAT.Web.csproj TestFixtureHelp.aspx.cs Added Files: FixtureSpecifierControl.cs IPage.cs Page.cs Log Message: Refactored fixture DropDownList in to FixtureSpecifierControl. --- NEW FILE: FixtureSpecifierControl.cs --- using FAT.Core; using FAT.Core.Configuration; using System; using System.Web.UI; using System.Web.UI.WebControls; namespace FAT.Web { public class FixtureSpecifierControl : Control, INamingContainer { ITestFixtureLoader loader; private DropDownList implementedFixturesDropDownList; public FixtureSpecifierControl() : this (ConfigurationFactory.Create()) {} public FixtureSpecifierControl(IConfiguration configuration) : this(new TestFixtureLoader(configuration)) {} public FixtureSpecifierControl(ITestFixtureLoader loader) { this.loader = loader; } protected override void OnLoad(EventArgs args) { if (!Page.IsPostBack) { foreach (string fixtureName in loader.GetFixtureNames()) { ImplementedFixturesDropDownList.Items.Add(new ListItem(fixtureName, fixtureName)); } } } protected override void CreateChildControls() { implementedFixturesDropDownList = new DropDownList(); implementedFixturesDropDownList.ID = "implementedFixturesDropDownList"; implementedFixturesDropDownList.Width = 500; Controls.Add(implementedFixturesDropDownList); } public string SelectedFixture { get {return ImplementedFixturesDropDownList.SelectedItem.Value;} } public DropDownList ImplementedFixturesDropDownList { get { EnsureChildControls(); return implementedFixturesDropDownList; } } protected new virtual IPage Page { get { return new Page(base.Page); } } } } --- NEW FILE: IPage.cs --- using System; namespace FAT.Web { public interface IPage { bool IsPostBack {get;} } } --- NEW FILE: Page.cs --- namespace FAT.Web { public class Page : IPage { private System.Web.UI.Page page; public Page(System.Web.UI.Page page) { this.page = page; } public bool IsPostBack {get {return page.IsPostBack;}} } } Index: Default.aspx =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/Default.aspx,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Default.aspx 20 Feb 2004 17:56:50 -0000 1.5 --- Default.aspx 29 Feb 2004 14:59:52 -0000 1.6 *************** *** 1,4 **** - <%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="FAT.Web.Default" EnableSessionState=true %> <%@ Register Tagprefix="FAT" Namespace="FAT.Web" Assembly="FAT.Web" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> --- 1,4 ---- <%@ Register Tagprefix="FAT" Namespace="FAT.Web" Assembly="FAT.Web" %> + <%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="FAT.Web.Default" EnableSessionState=true %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> *************** *** 12,16 **** function getSelectedFixture() { ! return document.CreateTest.fixture.options[document.CreateTest.fixture.selectedIndex].text; } </script> --- 12,16 ---- function getSelectedFixture() { ! return document.CreateTest.fixture_implementedFixturesDropDownList.options[document.CreateTest.fixture_implementedFixturesDropDownList.selectedIndex].text; } </script> *************** *** 43,47 **** </table> </td> ! <td><asp:Dropdownlist id="fixture" Runat="server" Width="500"></asp:Dropdownlist></td> <td><asp:Label id="fixtureWarning" Runat="server">*</asp:Label></td> </tr> --- 43,47 ---- </table> </td> ! <td><FAT:FixtureSpecifierControl runat="server" id="fixture" /></td> <td><asp:Label id="fixtureWarning" Runat="server">*</asp:Label></td> </tr> Index: Default.aspx.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/Default.aspx.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Default.aspx.cs 20 Feb 2004 17:56:50 -0000 1.5 --- Default.aspx.cs 29 Feb 2004 14:59:52 -0000 1.6 *************** *** 22,40 **** protected Button run; ! protected DropDownList fixture; protected PlaceHolder results; protected ImageButton fixtureHelpImageButton; - protected System.Web.UI.WebControls.HyperLink HyperLink1; private DefaultPageModel model = new DefaultPageModel(); - private void Page_Load(object sender, System.EventArgs e) - { - if (!IsPostBack) - { - model.AddFixtureNamesToDropDownList(fixture); - } - } - private void Run_Click(object source, EventArgs args) { --- 22,31 ---- protected Button run; ! protected FixtureSpecifierControl fixture; protected PlaceHolder results; protected ImageButton fixtureHelpImageButton; private DefaultPageModel model = new DefaultPageModel(); private void Run_Click(object source, EventArgs args) { *************** *** 43,47 **** try { ! ITestResult testResult = model.Run(testName.Text, fixture.SelectedItem.Text, test.Text, setup.Text, teardown.Text); results.Controls.Add(model.CreateResultsTable(testResult, HtmlDetailsStore.Instance(new Session(Session)))); --- 34,38 ---- try { ! ITestResult testResult = model.Run(testName.Text, fixture.SelectedFixture, test.Text, setup.Text, teardown.Text); results.Controls.Add(model.CreateResultsTable(testResult, HtmlDetailsStore.Instance(new Session(Session)))); *************** *** 63,68 **** { this.run.Click += new System.EventHandler(this.Run_Click); - this.Load += new System.EventHandler(this.Page_Load); - } #endregion --- 54,57 ---- Index: DefaultPageModel.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/DefaultPageModel.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** DefaultPageModel.cs 7 Feb 2004 18:11:32 -0000 1.7 --- DefaultPageModel.cs 29 Feb 2004 14:59:52 -0000 1.8 *************** *** 13,35 **** private ITestParser parser; private ITestRunner runner; - private ITestFixtureLoader loader; public DefaultPageModel() : this(ConfigurationFactory.Create()) { } ! public DefaultPageModel(IConfiguration configuration) : this(configuration.TestParser, IsolatedTestRunnerFactory.Create(), new TestFixtureLoader(configuration)) { } ! public DefaultPageModel(ITestParser parser, ITestRunner runner, ITestFixtureLoader loader) { this.parser = parser; this.runner = runner; - this.loader = loader; - } - - public void AddFixtureNamesToDropDownList(DropDownList fixturesList) - { - foreach (string fixture in loader.GetFixtureNames()) - { - fixturesList.Items.Add(new ListItem(fixture, fixture)); - } } --- 13,25 ---- private ITestParser parser; private ITestRunner runner; public DefaultPageModel() : this(ConfigurationFactory.Create()) { } ! public DefaultPageModel(IConfiguration configuration) : this(configuration.TestParser, IsolatedTestRunnerFactory.Create()) { } ! public DefaultPageModel(ITestParser parser, ITestRunner runner) { this.parser = parser; this.runner = runner; } Index: FAT.Web.csproj =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/FAT.Web.csproj,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** FAT.Web.csproj 20 Feb 2004 17:56:50 -0000 1.6 --- FAT.Web.csproj 29 Feb 2004 14:59:52 -0000 1.7 *************** *** 127,130 **** --- 127,135 ---- /> <File + RelPath = "FixtureSpecifierControl.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Global.asax" SubType = "Component" *************** *** 143,146 **** --- 148,161 ---- /> <File + RelPath = "IPage.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Page.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "TestFixtureHelp.aspx" SubType = "Form" Index: TestFixtureHelp.aspx.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Web/TestFixtureHelp.aspx.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TestFixtureHelp.aspx.cs 20 Feb 2004 17:56:50 -0000 1.1 --- TestFixtureHelp.aspx.cs 29 Feb 2004 14:59:52 -0000 1.2 *************** *** 5,9 **** namespace FAT.Web { ! public class TestFixtureHelp : Page { protected System.Web.UI.WebControls.Literal help; --- 5,9 ---- namespace FAT.Web { ! public class TestFixtureHelp : System.Web.UI.Page { protected System.Web.UI.WebControls.Literal help; |
|
From: <dmc...@us...> - 2004-02-29 15:10:10
|
Update of /cvsroot/fat/FAT/test/FAT.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16766/test/FAT.Test Modified Files: FAT.Test.csproj Log Message: Refactored fixture DropDownList in to FixtureSpecifierControl. Index: FAT.Test.csproj =================================================================== RCS file: /cvsroot/fat/FAT/test/FAT.Test/FAT.Test.csproj,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** FAT.Test.csproj 20 Feb 2004 17:56:51 -0000 1.8 --- FAT.Test.csproj 29 Feb 2004 14:59:52 -0000 1.9 *************** *** 203,206 **** --- 203,211 ---- /> <File + RelPath = "Web\FixtureSpecifierControlTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Web\ReflectionUtil.cs" SubType = "Code" |
|
From: <dmc...@us...> - 2004-02-29 15:10:10
|
Update of /cvsroot/fat/FAT/test/FAT.Test/Web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16766/test/FAT.Test/Web Modified Files: CreateTestModelTest.cs Added Files: FixtureSpecifierControlTest.cs Log Message: Refactored fixture DropDownList in to FixtureSpecifierControl. --- NEW FILE: FixtureSpecifierControlTest.cs --- using FAT.Core; using FAT.Web; using NMock; using NUnit.Framework; using System; using System.Web.UI.WebControls; namespace FAT.Test.Web { [TestFixture] public class FixtureSpecifierControlTest : Assertion { IMock mockLoader; IMock mockPage; FixtureSpecifierControlTestExtension fixtureSpecifier; [SetUp] private void CreateFixtureSpecifier() { mockLoader = new DynamicMock(typeof(ITestFixtureLoader)); mockPage = new DynamicMock(typeof(IPage)); fixtureSpecifier = new FixtureSpecifierControlTestExtension((ITestFixtureLoader)mockLoader.MockInstance, (IPage)mockPage.MockInstance); } [Test] public void PopulatesDropDownWithTestFixtureNamesOnGet() { mockLoader.ExpectAndReturn("GetFixtureNames", new string []{"bish", "bash", "bosh"}); mockPage.ExpectAndReturn("IsPostBack", false); fixtureSpecifier.CallOnLoad(); AssertEquals(3, fixtureSpecifier.ImplementedFixturesDropDownList.Items.Count); AssertEquals(new ListItem("bish", "bish"), fixtureSpecifier.ImplementedFixturesDropDownList.Items[0]); AssertEquals(new ListItem("bash", "bash"), fixtureSpecifier.ImplementedFixturesDropDownList.Items[1]); AssertEquals(new ListItem("bosh", "bosh"), fixtureSpecifier.ImplementedFixturesDropDownList.Items[2]); mockLoader.Verify(); mockPage.Verify(); } [Test] public void DoesNotPopulateDropDownWithTestFixtureNamesOnPostAsViewStateMaintainsEntries() { mockPage.ExpectAndReturn("IsPostBack", true); fixtureSpecifier.CallOnLoad(); AssertEquals(0, fixtureSpecifier.ImplementedFixturesDropDownList.Items.Count); mockLoader.Verify(); mockPage.Verify(); } [Test] public void WhenTextBoxIsEmptyThenSelectedFixtureIsGivenByDropDown() { mockLoader.ExpectAndReturn("GetFixtureNames", new string []{"bish", "bash", "bosh"}); mockPage.ExpectAndReturn("IsPostBack", false); fixtureSpecifier.CallOnLoad(); AssertEquals("bish", fixtureSpecifier.SelectedFixture); mockLoader.Verify(); mockPage.Verify(); } [Test] public void WhenTextBoxIsPopulatedThenSelectedTestfixtureIsGivenByTextBox() { mockLoader.ExpectAndReturn("GetFixtureNames", new string []{"bish", "bash", "bosh"}); mockPage.ExpectAndReturn("IsPostBack", false); fixtureSpecifier.CallOnLoad(); // TODO: finish implementation //fixtureSpecifier.NewFixtureTextBox.Text = "NewFixtureName"; //AssertEquals("NewfixtureName", fixtureSpecifier.SelectedFixture); //mockLoader.Verify(); //mockPage.Verify(); } } class FixtureSpecifierControlTestExtension : FixtureSpecifierControl { IPage page; public FixtureSpecifierControlTestExtension(ITestFixtureLoader loader, IPage page) : base(loader) { this.page = page; } protected override IPage Page { get { return page; } } public void CallOnLoad() { OnLoad(null); } } } Index: CreateTestModelTest.cs =================================================================== RCS file: /cvsroot/fat/FAT/test/FAT.Test/Web/CreateTestModelTest.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** CreateTestModelTest.cs 7 Feb 2004 18:11:32 -0000 1.7 --- CreateTestModelTest.cs 29 Feb 2004 14:59:52 -0000 1.8 *************** *** 14,18 **** private Mock mockParser; private Mock mockRunner; - private Mock mockLoader; private Mock mockHtmlDetailsStore; private DefaultPageModel model; --- 14,17 ---- *************** *** 23,43 **** mockParser = new DynamicMock(typeof(ITestParser)); mockRunner = new DynamicMock(typeof(ITestRunner)); ! mockLoader = new DynamicMock(typeof(ITestFixtureLoader)); ! model = new DefaultPageModel((ITestParser)mockParser.MockInstance, (ITestRunner)mockRunner.MockInstance, (ITestFixtureLoader)mockLoader.MockInstance); ! } ! ! [Test] ! public void AddFixtureNamesToFixturesDropDown() ! { ! mockLoader.ExpectAndReturn("GetFixtureNames", new string [] {"bish", "bash", "bosh"}); ! ! DropDownList fixtureDropDownList = new DropDownList(); ! ! model.AddFixtureNamesToDropDownList(fixtureDropDownList); ! ! AssertEquals(3, fixtureDropDownList.Items.Count); ! AssertEquals(new ListItem("bish", "bish"), fixtureDropDownList.Items[0]); ! AssertEquals(new ListItem("bash", "bash"), fixtureDropDownList.Items[1]); ! AssertEquals(new ListItem("bosh", "bosh"), fixtureDropDownList.Items[2]); } --- 22,26 ---- mockParser = new DynamicMock(typeof(ITestParser)); mockRunner = new DynamicMock(typeof(ITestRunner)); ! model = new DefaultPageModel((ITestParser)mockParser.MockInstance, (ITestRunner)mockRunner.MockInstance); } |