Commit graph

90 commits

Author SHA1 Message Date
Colin Kuskie
7818789002 update tests for new noCache syntax 2007-03-09 16:59:52 +00:00
Colin Kuskie
76585a1daa Added a new method to WebGUI::HTML called makeParameter safe. It will
encode commas and single quotes to make the output safe to embed inside
of a macro.
Added tests to verify that it works correctly.
Updated the c_companyName macro to use makeParameterSafe.
Added tests to verify that the changed macro works okay.
Updated the c_companyName documentation.
Added a blurb to the gotchas file to cover the change to the macro.
2007-02-13 23:42:53 +00:00
Roy Johnson
83c2595c40 -7.3.6 stable release
-fixed the slash_gateway and pageurl macro tests so they didn't reak havoc on the rest of the test suite.
2007-01-24 17:32:57 +00:00
Colin Kuskie
66b59adde8 the Slash_gatewayUrl and PageUrl macros now accept optional URL arguments 2007-01-23 21:49:34 +00:00
Colin Kuskie
2c246c06cc fix a bug where updating the storageId in File Type assets did not update the cached storageLocation. Also fixed the Thumbnail Macro test 2006-12-09 06:05:26 +00:00
Colin Kuskie
332933337a re-re-fix FileUrl test with recommended method for building Assets 2006-12-09 04:48:03 +00:00
Colin Kuskie
6343f648e1 Fixed the failing FileUrl test and clearly document where the FileUrl macro
will work and where it will not.

This test failed due to an API change in WebGUI.  Before 7.3, if you created
a Storage object and then created an Asset with that Storage Id, then WebGUI
would do that happily.  This is actually a bug, because you could create multiple
Assets with that one Storage Id, and when _any_ of the Assets was deleted or
rolled back it would delete the Storage location and leave the other Assets
with that Id pointing to an empty Storage object.

So the API change is actually a bug fix, albeit being a side-effect of the
auto-commit work for posts and wikis.
2006-12-08 17:40:09 +00:00
Colin Kuskie
957642e1c6 added explicit test for comma processing 2006-11-29 05:08:14 +00:00
Colin Kuskie
9fb805525c skeleton tests for macros to get them into the coverage report 2006-09-15 21:22:48 +00:00
Colin Kuskie
2f0d7cab57 skeleton tests for macros to get them into the coverage report 2006-09-15 21:16:15 +00:00
Colin Kuskie
65374109b1 Final test for L_loginBox, and coverage improvements for RootTitle.
Pod and documentation fixes for L_loginBox macro.
2006-09-15 21:08:04 +00:00
Colin Kuskie
a1bf6a2b21 Coverage fixes for date and last modified macros.
Refactor LastModified macro to use placeholders and remove an unused conditional.
2006-09-14 22:22:35 +00:00
Colin Kuskie
a5049f8149 fix bad test coverage 2006-09-14 20:18:12 +00:00
Colin Kuskie
66d98f371c Update some POD in Stow and PageTitle.
Fix several tests with bad coverage.
2006-09-14 15:54:54 +00:00
Colin Kuskie
d95cd9b68d fix a very bad, simple text parser 2006-08-29 21:13:15 +00:00
Colin Kuskie
c2a89c49cb remove leftover debugging output 2006-08-13 04:38:14 +00:00
Colin Kuskie
4a88589621 bare beginning of a L_loginBox macro test 2006-08-11 23:44:49 +00:00
Colin Kuskie
b2340842a0 modify test to skip unreadable file test if user is root 2006-08-11 00:34:44 +00:00
Colin Kuskie
5efd737b6d more remote diagnostics 2006-08-09 21:07:04 +00:00
Colin Kuskie
a5d38396a1 more diagnostics for remote debug 2006-08-08 20:17:25 +00:00
Colin Kuskie
570668d2bc fix syntax error in test 2006-08-06 23:30:05 +00:00
Colin Kuskie
8ec18c957f more test debug output 2006-08-03 15:42:23 +00:00
Colin Kuskie
dd9c807166 Conditional load conversion.
In Page.t, place the newly created Snippet under a versionTag
so that it can be cleaned up at the end of the test.
2006-07-30 18:34:47 +00:00
Colin Kuskie
78c33c54ff Added corner tests for empty string and undef.
Converted tests to handle skipping if the macro can't be loaded.
2006-07-30 07:39:49 +00:00
Colin Kuskie
818ab4a690 conditional load check and fix default param tests 2006-07-30 04:03:46 +00:00
Colin Kuskie
55b60631c9 conditional load conversion, default parameter updates
Added a TODO for D_date to find a way to test not sending an explicit time.
2006-07-30 03:55:21 +00:00
Colin Kuskie
4c65000be5 conditional load check and fix default param tests 2006-07-30 01:13:19 +00:00
Colin Kuskie
0baf20af33 Add use_ok for module loading.
Added corner cases for null admin text and undef (missing) admin text.
2006-07-30 01:07:17 +00:00
Colin Kuskie
d756069c43 instrumented to abort tests if the macro does not load 2006-07-29 23:43:13 +00:00
Colin Kuskie
5e7c0faf68 During the rework of the Macro tests to only test the macro procedure
instead of the macro processor, all tests which default behavior (no parameters)
were broken.
The next series of test commits will remedy this on all tests.  Also during
this time, each test will be augmented to abort the test if the Macro
cannot be loaded.
2006-07-29 23:38:32 +00:00
Colin Kuskie
433521f30f LoginToggle test 2006-07-29 23:25:07 +00:00
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