From 7c84e4573fbdb69e8274554ced73ed04e6802ac5 Mon Sep 17 00:00:00 2001 From: ayers Date: Wed, 4 Oct 2006 21:07:40 +0000 Subject: [PATCH] * 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 --- ChangeLog | 11 +++++ .../FileUpload1Page.gswc/FileUpload1Page.gswd | 23 ++++++++++ .../FileUpload1Page.gswc/FileUpload1Page.html | 19 +++++++++ Testing/DynamicElements/FileUpload1Page.h | 42 +++++++++++++++++++ Testing/DynamicElements/FileUpload1Page.m | 39 +++++++++++++++++ Testing/DynamicElements/GNUmakefile | 6 +-- .../Resources/Info-DynamicElements.plist | 5 +++ 7 files changed, 142 insertions(+), 3 deletions(-) create mode 100644 Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.gswd create mode 100644 Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.html create mode 100644 Testing/DynamicElements/FileUpload1Page.h create mode 100644 Testing/DynamicElements/FileUpload1Page.m diff --git a/ChangeLog b/ChangeLog index 80b95c9..97824a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2006-10-04 David Ayers + + * 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 * Version: Update to 1.3.0 diff --git a/Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.gswd b/Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.gswd new file mode 100644 index 0000000..62b9f59 --- /dev/null +++ b/Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.gswd @@ -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; +}; + diff --git a/Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.html b/Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.html new file mode 100644 index 0000000..65fbf7e --- /dev/null +++ b/Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.html @@ -0,0 +1,19 @@ + + + GSWFileUpload Test 1 + + +

GSWFileUpload Test 1

+
+ FileName :
+ FileSize :
+ FileContent :
+
+ + + + +
+ + + diff --git a/Testing/DynamicElements/FileUpload1Page.h b/Testing/DynamicElements/FileUpload1Page.h new file mode 100644 index 0000000..0fa6219 --- /dev/null +++ b/Testing/DynamicElements/FileUpload1Page.h @@ -0,0 +1,42 @@ +/** FileUpload1Page.h - GSWeb Testing: Class FileUpload1Page + + Copyright (C) 2006 Free Software Foundation, Inc. + + Written by: David Ayers + 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. + + + 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. + +**/ + +// $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__ diff --git a/Testing/DynamicElements/FileUpload1Page.m b/Testing/DynamicElements/FileUpload1Page.m new file mode 100644 index 0000000..37e1f6e --- /dev/null +++ b/Testing/DynamicElements/FileUpload1Page.m @@ -0,0 +1,39 @@ +/** FileUpload1Page.m - GSWeb Testing: Class FileUpload1Page + + Copyright (C) 2006 Free Software Foundation, Inc. + + Written by: David Ayers + 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. + + + 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. + +**/ + +#include +#include "BasePage.h" +#include "FileUpload1Page.h" + + +@implementation FileUpload1Page + +@end + diff --git a/Testing/DynamicElements/GNUmakefile b/Testing/DynamicElements/GNUmakefile index 20f24ce..d96c96e 100644 --- a/Testing/DynamicElements/GNUmakefile +++ b/Testing/DynamicElements/GNUmakefile @@ -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 \ diff --git a/Testing/DynamicElements/Resources/Info-DynamicElements.plist b/Testing/DynamicElements/Resources/Info-DynamicElements.plist index ddb8e7c..1f0affc 100644 --- a/Testing/DynamicElements/Resources/Info-DynamicElements.plist +++ b/Testing/DynamicElements/Resources/Info-DynamicElements.plist @@ -14,6 +14,11 @@ }; dynamicElements = ( + { + pageName = "FileUpload1Page"; + label = "GSWFileUpload 1"; + comment = "GSWFileUpload Test 1"; + }, { pageName = "RadioButtonList1Page"; label = "GSWRadioButtonList 1";