Commit graph

109 commits

Author SHA1 Message Date
Colin Kuskie
f7b4367205 remote debug of smoke-test setup 2006-07-29 22:28:04 +00:00
Colin Kuskie
e84c58bd66 prototyping conditional tests based on Macro load. There is no sense running the tests if there are syntax errors in the code. 2006-07-29 04:03:17 +00:00
Colin Kuskie
be6fc4b4f9 clean up old macroText statements 2006-07-29 03:50:34 +00:00
Colin Kuskie
84117932af add a test for the FormParam macro, and clarify in the docs that FormParam returns only the first value from a list 2006-07-29 03:31:59 +00:00
Colin Kuskie
b2d4c36080 add Include macro test and fix Include bug 2006-07-28 16:11:47 +00:00
Colin Kuskie
d9b4b1df06 test for Env macro. It grabs all keys from the env object and makes sure they can be retrieved via the macro. It also tests null, undef and non-existant keys 2006-07-27 18:05:46 +00:00
Colin Kuskie
54d2d687e8 Test for the printable macro. This macro DOES NOT test changing the style, only
the text generated by the macro.
2006-07-27 16:35:41 +00:00
Colin Kuskie
e3ae42aa1a remove dependency on Macro_Config from last tests, and reindent some lines in RootTitle 2006-07-27 16:00:46 +00:00
Colin Kuskie
89abfdef9d Use just 1 versionTag for RootTitle. Much cleaner code.
Remove old Macro enabling code from PageTitle
2006-07-26 20:28:57 +00:00
Roy Johnson
ce22acea8e Adding a test 2006-07-26 19:21:04 +00:00
Colin Kuskie
caa58f26f2 finish Setting Macro breakout 2006-07-26 19:09:55 +00:00
Colin Kuskie
6aab9a6eec Rework all tests to call the Macro's process subroutine directly.
Add RootTitle.t test.
Broke up the SettingMacros.t test into individual tests.
2006-07-26 19:02:22 +00:00
Colin Kuskie
927d097375 Fix a parsing bug in WebGUI::Operation::Shared where it would puke if
the code it was parsing had spaces after the commas.
Formatting code in EditableToggle.t
2006-07-26 01:23:30 +00:00
Colin Kuskie
f1159269a0 Macro Tests: refactored all macro tests to remove a very evil hack
for inserting macros into the config.  The new method is much cleaner
and uses the Config API.
Updated the docs for the RootTitle macro, both POD and online help.
2006-07-25 20:54:08 +00:00
Wouter van Oijen
4e2e5e8c78 fix: Splat_random Macro not so random 2006-07-24 20:27:29 +00:00
Colin Kuskie
f83c0fa957 remove debugging output 2006-07-24 20:00:46 +00:00
Colin Kuskie
654e5751e8 Add tests for GroupDelete and GroupAdd macros.
Fix bugs exposed by the tests.
2006-07-24 19:58:50 +00:00
Colin Kuskie
63972bab6d GroupAdd macro test. This is just the bare beginnings of the test, it will be rounded out over the next several days 2006-07-24 05:09:26 +00:00
Colin Kuskie
2eaea55041 Added a basic frequency distribution test. Note that in limited samples of
1000 across 5 bins that the distribution is not even.  The highest and lowest
bin seem to have about half the frequency of the other bins.  This is due to
the use of the round function.  int would make the distribution more even (white)
at the cost of not returning the limiting number.
2006-07-23 06:19:31 +00:00
Colin Kuskie
746ccf43bb test of Splat_random macro 2006-07-23 06:08:35 +00:00
Colin Kuskie
10135118d2 rename FileUrl test 2006-07-23 01:34:47 +00:00
Colin Kuskie
63db4ee2ed finish FileUrl test 2006-07-23 01:34:21 +00:00
Colin Kuskie
8d88e8fcb1 Add a quick comment to Page.t
Add the FileUrl test.  It is under development and won't be renamed until
it's fully working.
2006-07-21 23:33:41 +00:00
Colin Kuskie
ac953d2043 Adding Page macro test. If there complaints about not being able to
access variables from an Asset, the test is very easy to extend to add
new fields or asset types.
The remaining t's have had their URLs lower-cased to be URL compliant.
2006-07-19 22:20:49 +00:00
Colin Kuskie
a147c770f8 put Thumbnail test in place 2006-07-19 05:10:53 +00:00
Colin Kuskie
9da54e56aa finalize Thumbnail test 2006-07-19 05:10:26 +00:00
Colin Kuskie
6e42a6268b early work on Thumbnail macro test 2006-07-18 23:38:40 +00:00
Colin Kuskie
610520e29a spacer macro test 2006-07-17 03:39:19 +00:00
Colin Kuskie
6e818b3eb3 User Macro testing 2006-07-17 03:14:42 +00:00
Colin Kuskie
48e005e8cb add custom template parsing check to EditableToggle 2006-07-17 00:19:31 +00:00
Colin Kuskie
f3a1f0f9f2 GroupText.t: fix number of tests
Session/Id.pm: add a method to validate GUIDs, change s/// to tr/// for efficiency.
Session.pm: change open to use new Id.pm validation method
Scratch.t: Change test from ok to is so that it tells you what the failing ID is.
Id.t: Add validation tests in addition to uniqueness tests.  Fix the uniqueness test so that it works.  Add tests to check the new validation method
2006-07-15 01:54:49 +00:00
Colin Kuskie
3dd45bad6d GroupText macro now returns an error message if group cannot be found. includes test 2006-07-13 05:23:49 +00:00
Colin Kuskie
2555a7d5b4 add tests for bug validation 2006-07-13 04:58:03 +00:00
Colin Kuskie
718ca3eed4 partial test for EditableToggle macro 2006-07-12 05:31:33 +00:00
Colin Kuskie
99937e80c1 new macro tests with interesting features 2006-07-09 04:56:25 +00:00
Colin Kuskie
c8a780b2a4 Leverage H_homeLInk to build a_account macro tests. 2006-07-07 05:00:52 +00:00
Colin Kuskie
2967681f6d Updated macro test to instantiate a test template using the
new version control/tag API and then
use HTML and text parsers to read the output to see if
the templates were executed correctly.
2006-07-06 22:04:51 +00:00
Colin Kuskie
a3bd26cdd0 tests for H_homeLink macro 2006-07-05 23:36:02 +00:00
Colin Kuskie
5ad0bb3f96 LastModified macro tests 2006-07-05 05:34:40 +00:00
Colin Kuskie
4fff8c5697 simple test for Slash_gatewayUrl macro 2006-07-04 22:00:27 +00:00
Colin Kuskie
2caf5ecdbe simple PageUrl macro test 2006-07-04 21:56:42 +00:00
Colin Kuskie
2df0c6174c simple test of PageTitle macro 2006-07-04 21:52:55 +00:00
Colin Kuskie
bfa089141f basic tests for Hash_userId macro 2006-07-04 21:27:11 +00:00
Colin Kuskie
1804ac8c6e basic tests for Extras macro 2006-07-04 04:39:04 +00:00
Colin Kuskie
553f1e0c4a Add new tests for unused numeric macros and the rownum macro in t/Macro/SQL.t
Document how unused numeric macros are handled in the SQL macro and that rownum
starts counting at 1.
Quote entries in the related section to make detecting spaces in names easier.
2006-07-04 04:14:20 +00:00
Colin Kuskie
122b59019c Fixed a problem with the Macro config inserter.
Added a clause to SQL.t to force it to bail if the macro hasn't
been temporarily added to the config.
2006-07-03 21:37:53 +00:00
Colin Kuskie
2b9efcb217 more SQL macro tests 2006-07-02 23:00:03 +00:00
Colin Kuskie
67dc45be28 add a test for two digit macros in the template 2006-07-02 21:11:56 +00:00
Colin Kuskie
d27b3c24b6 test for examples from SQL macro docs 2006-07-02 02:19:58 +00:00
Colin Kuskie
379c6e0ad3 very simple test for URLEncode macro 2006-05-05 23:31:22 +00:00