* Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.gswd

* Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.html
	* Testing/DynamicElements/FileUpload1Page.h
	* Testing/DynamicElements/FileUpload1Page.m: New tests.
	
	* Testing/DynamicElements/Resources/Info-DynamicElements.plist
	* Testing/DynamicElements/GNUmakefile:
	Add FileUpload tests.  Do not install tests in GNUSTEP_SYSTEM_ROOT.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@23761 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2006-10-04 21:07:40 +00:00
parent e318270cb4
commit d8734dfc21
7 changed files with 142 additions and 3 deletions

View file

@ -1,3 +1,14 @@
2006-10-04 David Ayers <ayers@fsfe.org>
* Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.gswd
* Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.html
* Testing/DynamicElements/FileUpload1Page.h
* Testing/DynamicElements/FileUpload1Page.m: New tests.
* Testing/DynamicElements/Resources/Info-DynamicElements.plist
* Testing/DynamicElements/GNUmakefile:
Add FileUpload tests. Do not install tests in GNUSTEP_SYSTEM_ROOT.
2006-09-15 David Ayers <d.ayers@inode.at>
* Version: Update to 1.3.0

View file

@ -0,0 +1,23 @@
#include "Base"
AFileUpload: GSWFileUpload
{
filePath=aFilePath;
data=aFileData;
};
FileName: GSWString
{
value = aFilePath;
};
FileSize: GSWString
{
value = aFileData.length.description;
};
FileContent: GSWString
{
value = aFileData.description;
};

View file

@ -0,0 +1,19 @@
<html>
<head>
<title>GSWFileUpload Test 1</title>
</head>
<body>
<h2>GSWFileUpload Test 1</h2>
<br/>
FileName : <gsweb name="FileName"></gsweb><br/>
FileSize : <gsweb name="FileSize"></gsweb><br/>
FileContent : <gsweb name="FileContent"></gsweb><br/>
<br/>
<gsweb name="Form">
<gsweb name="AFileUpload"></gsweb>
<gsweb name="SubmitButton"></gsweb>
</gsweb>
<hr/>
<gsweb name="MainPageLink"></gsweb>
</body>
</html>

View file

@ -0,0 +1,42 @@
/** FileUpload1Page.h - <title>GSWeb Testing: Class FileUpload1Page</title>
Copyright (C) 2006 Free Software Foundation, Inc.
Written by: David Ayers <ayers@fsfe.org>
Date: Aug 2006
$Revision: 0 $
$Date: 2006-08-24 10:46:22 +0100 (Thr, 24 Aug 2006) $
This file is part of the GNUstep Web Library.
<license>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
</license>
**/
// $Id: FileUpload1Page.h 0 2006-08-24 10:46:22Z ayers $
#ifndef _FileUpload1Page_h__
#define _FileUpload1Page_h__
@interface FileUpload1Page: BasePage
{
id aFilePath;
id aFileData;
}
@end
#endif //_FileUpload1Page_h__

View file

@ -0,0 +1,39 @@
/** FileUpload1Page.m - <title>GSWeb Testing: Class FileUpload1Page</title>
Copyright (C) 2006 Free Software Foundation, Inc.
Written by: David Ayers <ayers@fsfe.org>
Date: Aug 2006
$Revision: 0 $
$Date: 2006-08-24 10:46:22 +0100 (Thr, 24 Aug 2006) $
$Id: FileUpload1Page.m 0 2006-08-24 10:46:22Z ayers $
This file is part of the GNUstep Web Library.
<license>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
</license>
**/
#include <GSWeb/GSWeb.h>
#include "BasePage.h"
#include "FileUpload1Page.h"
@implementation FileUpload1Page
@end

View file

@ -22,9 +22,6 @@
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Install into the system root by default
GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_SYSTEM_ROOT)
include ../../config.mak
include $(GNUSTEP_MAKEFILES)/common.make
include $(GNUSTEP_MAKEFILES)/Auxiliary/gsweb.make
@ -42,12 +39,14 @@ DynamicElements_RESOURCE_FILES = \
Resources/Info-DynamicElements.plist \
Resources/Base.gswd \
# The Objective-C source files to be compiled
DynamicElements_OBJC_FILES = \
BasePage.m \
DynamicElements.m \
DynamicElements_main.m \
Main.m \
FileUpload1Page.m \
RadioButtonList1Page.m \
RadioButtonList2Page.m \
CheckBoxList1Page.m \
@ -64,6 +63,7 @@ RadioButton2Page.m \
DynamicElements_COMPONENTS = \
Main.gswc \
FileUpload1Page.gswc \
RadioButtonList1Page.gswc \
RadioButtonList2Page.gswc \
CheckBoxList1Page.gswc \

View file

@ -14,6 +14,11 @@
};
dynamicElements = (
{
pageName = "FileUpload1Page";
label = "GSWFileUpload 1";
comment = "GSWFileUpload Test 1";
},
{
pageName = "RadioButtonList1Page";
label = "GSWRadioButtonList 1";