From: <Cra...@nt...> - 2005-01-03 09:49:32
|
Author: CrawfordCurrie Date: 2005-01-03 01:48:25 -0800 (Mon, 03 Jan 2005) New Revision: 3418 Added: twiki/branches/DEVELOP/data/TestCases/DeliberatelyMoved.txt twiki/branches/DEVELOP/data/TestCases/TestCaseAutoMetaSearch.txt twiki/branches/DEVELOP/data/TestCases/ThisForm.txt Modified: twiki/branches/DEVELOP/data/TestCases/WebPreferences.txt Log: ExtendMETASEARCHForFieldValues: testcase for METASEARCH Added: twiki/branches/DEVELOP/data/TestCases/DeliberatelyMoved.txt =================================================================== --- twiki/branches/DEVELOP/data/TestCases/DeliberatelyMoved.txt 2005-01-03 06:44:01 UTC (rev 3417) +++ twiki/branches/DEVELOP/data/TestCases/DeliberatelyMoved.txt 2005-01-03 09:48:25 UTC (rev 3418) @@ -0,0 +1,8 @@ +%META:TOPICINFO{author="guest" date="1104704823" format="1.0" version="1.1"}% +Test fixture - this is a topic that has been moved from a topic called MovedFrom +%META:FORM{name="ThisForm"}% +%META:FIELD{name="Squeegle" title="Squeegle" value="Hugh Pugh Barney McGrew"}% +%META:FIELD{name="Smomble" title="Smomble" value="Cuthbert Dibble Grubb"}% +%META:FIELD{name="Rubaduba" title="Rubaduba" value="Heeby Jeeby"}% +%META:FIELD{name="Slash Slash Escape" title="Slash Slash Escape" value="One"}% +%META:TOPICMOVED{by="guest" date="1104704822" from="TestCases.MovedFrom" to="TestCases.DeliberatelyMoved"}% Added: twiki/branches/DEVELOP/data/TestCases/TestCaseAutoMetaSearch.txt =================================================================== --- twiki/branches/DEVELOP/data/TestCases/TestCaseAutoMetaSearch.txt 2005-01-03 06:44:01 UTC (rev 3417) +++ twiki/branches/DEVELOP/data/TestCases/TestCaseAutoMetaSearch.txt 2005-01-03 09:48:25 UTC (rev 3418) @@ -0,0 +1,43 @@ +%META:TOPICINFO{author="guest" date="1104704940" format="1.0" version="1.1"}% +Description: tests for METASEARCH tags +---+ Search for parents +Expected: +<!-- expected expand --> +<a href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/TestCases/RecursiveInclude"><b>RecursiveInclude</b></a> +<!--Dummy tail--> +<!-- /expected --> +Actual: +<!-- actual --> +%METASEARCH{web="%WEB%" type="parent" topic="TestCaseAutoIncludes"}% +<!-- /actual --> +---+ Search for moved topic +Expected: +<!-- expected expand --> +Itwos <a href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/TestCases/DeliberatelyMoved"><b>DeliberatelyMoved</b></a> +<!--Dummy tail--> +<!-- /expected --> +Actual: +<!-- actual --> +%METASEARCH{web="%WEB%" topic="MovedFrom" type="topicmoved" title="Itwos "}% +<!-- /actual --> +---+ Search for field value +Expected: +<!-- expected expand --> +<a href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/TestCases/DeliberatelyMoved"><b>DeliberatelyMoved</b></a> +<!--Dummy tail--> +<!-- /expected --> +Actual: +<!-- actual --> +%METASEARCH{web="%WEB%" type="field" name="RubaDuba" value="Heeby.*by"}% +<!-- /actual --> +---+ Search with no result +Expected: +<!-- expected --> +Not a sausage +<!--Dummy tail--> +<!-- /expected --> +Actual: +<!-- actual --> +%METASEARCH{web="%WEB%" type="field" name="Not a field" value="Not a value" default="Not a sausage"}% +<!-- /actual --> + Added: twiki/branches/DEVELOP/data/TestCases/ThisForm.txt =================================================================== --- twiki/branches/DEVELOP/data/TestCases/ThisForm.txt 2005-01-03 06:44:01 UTC (rev 3417) +++ twiki/branches/DEVELOP/data/TestCases/ThisForm.txt 2005-01-03 09:48:25 UTC (rev 3418) @@ -0,0 +1,11 @@ +%META:TOPICINFO{author="guest" date="1104706440" format="1.0" version="1.1"}% +This is a test fixture + +| *Name* | *Type* | *Size* | *Values* | *Tooltip message* | +| Squeegle | select | 1 | Hugh Pugh Barney McGrew | blah blah... | +| Smomble | checkbox | 3 | Cuthbert Dibble Grubb | blah blah... | +| Rubaduba | text | 16 | | blah blah... | +| Slash Slash Escape | select | 1 | One, \ +Two, \ +Three | Boggit | + Modified: twiki/branches/DEVELOP/data/TestCases/WebPreferences.txt =================================================================== --- twiki/branches/DEVELOP/data/TestCases/WebPreferences.txt 2005-01-03 06:44:01 UTC (rev 3417) +++ twiki/branches/DEVELOP/data/TestCases/WebPreferences.txt 2005-01-03 09:48:25 UTC (rev 3418) @@ -27,19 +27,19 @@ * WebTopicEditTemplate: Default template for new topics in this web. (Site-level is used if topic does not exist) * [[%TWIKIWEB%.WebTopicEditTemplate]]: Site-level default template * %TWIKIWEB%.TWikiForms: How to enable form(s) - * Set WEBFORMS = + * Set WEBFORMS = ThisForm * Users or groups who __are not__ / __are__ allowed to __view__ / __change__ / __rename__ topics in the %WEB% web: (See %TWIKIWEB%.TWikiAccessControl) - * Set DENYWEBVIEW = - * Set ALLOWWEBVIEW = - * Set DENYWEBCHANGE = - * Set ALLOWWEBCHANGE = - * Set DENYWEBRENAME = - * Set ALLOWWEBRENAME = + * #Set DENYWEBVIEW = + * #Set ALLOWWEBVIEW = + * #Set DENYWEBCHANGE = + * #Set ALLOWWEBCHANGE = + * #Set DENYWEBRENAME = + * #Set ALLOWWEBRENAME = * Users or groups allowed to change or rename this <nop>%TOPIC% topic: (I.e. %MAINWEB%.TWikiAdminGroup) - * Set ALLOWTOPICCHANGE = - * Set ALLOWTOPICRENAME = + * #Set ALLOWTOPICCHANGE = + * #Set ALLOWTOPICRENAME = * Web preferences that are *not* allowed to be overridden by user preferences: * Set FINALPREFERENCES = WEBTOPICLIST, DENYWEBVIEW, ALLOWWEBVIEW, DENYWEBCHANGE, ALLOWWEBCHANGE, DENYWEBRENAME, ALLOWWEBRENAME |