Commit graph

6048 commits

Author SHA1 Message Date
Steve Swanson
3000fccb79 removed unused template variables 2006-08-09 16:09:02 +00:00
Frank Dillon
4bd756f6f1 fixing rowspan issue 2006-08-09 14:45:31 +00:00
Roy Johnson
8576802abe Rollback 2006-08-09 13:22:34 +00:00
Roy Johnson
b7749551f8 fix - Search does only returns recent results 2006-08-09 12:53:24 +00:00
Frank Dillon
b4102862d4 added epochToMail() test 2006-08-09 03:45:40 +00:00
Colin Kuskie
a5d38396a1 more diagnostics for remote debug 2006-08-08 20:17:25 +00:00
Colin Kuskie
000b2fcce3 Reverting previous work. Asset->new must return an Asset, even if
no className is passed and the invocant's class is Asset.  This is
due to the root.  In the db, the root Asset has the className WebGUI::Asset,
and the getRoot method matches this.
Changed the failing test in Asset.t to look for a WebGUI::Asset to be returned.
Added two tests to Asset.t to validate the object returned by Asset->getRoot method.
Reverted previous work and updated the POD for Asset->new.
2006-08-08 17:43:44 +00:00
JT Smith
c956ba3969 - Added an option to override the session cookie domain.
- fix: Search results not showing synopses
 - fix: Redirects get displayed inside page layouts as '0'
 - fix: Mysterious "0" Appearing When Admin Is Off
 - fix: Deletion of Products
2006-08-08 17:27:41 +00:00
Colin Kuskie
6a88fa5ca2 fix Asset.pm so that it returns undef if no valid Asset className is passed 2006-08-08 17:20:22 +00:00
Colin Kuskie
a7fa4c6a92 Make testing conditional on a successful module load.
Add a test to check the reference of the created object.
Clean up at the end of the test so you can run it more than once at a time.
2006-08-07 05:00:28 +00:00
Colin Kuskie
570668d2bc fix syntax error in test 2006-08-06 23:30:05 +00:00
Colin Kuskie
751adbcf30 more delta time fixes 2006-08-04 17:53:32 +00:00
Colin Kuskie
b02a93b491 change time difference test to handle bridging across 1 second and be more verbose in output 2006-08-04 16:00:12 +00:00
JT Smith
2ea58485c9 - Added an option to override the session cookie name. 2006-08-04 15:16:18 +00:00
Len Kranendonk
da7dea01f5 Fixed scoring sorting bugs 2006-08-04 11:07:32 +00:00
Len Kranendonk
6f2e0ab265 Fixed scoring sorting bugs 2006-08-04 11:06:21 +00:00
Colin Kuskie
d888c5c134 add explicit test for new users being added to group Everyone on creation 2006-08-04 05:15:38 +00:00
JT Smith
9ddd91570e - Added some more tests to the suite.
- Fixed the test skeleton
2006-08-03 19:38:41 +00:00
JT Smith
61b70325f2 - Added a --skipDelete option to upgrade.pl
- rfe: Approvers don't need to approve own changes
fixed a rare bug that could occur in archiving old threads
2006-08-03 19:20:55 +00:00
Colin Kuskie
8ec18c957f more test debug output 2006-08-03 15:42:23 +00:00
JT Smith
d3df45f989 preparing for 7.0.5 bugfix release 2006-08-02 21:41:58 +00:00
Roy Johnson
2e80acb9e8 10 new tests for Asset 2006-08-02 19:38:55 +00:00
JT Smith
2a3ba619db preparing for 7.0.4 release 2006-08-02 16:13:36 +00:00
Frank Dillon
d74f8fc020 forgot to increment test number 2006-08-02 15:58:16 +00:00
Frank Dillon
9a9c2d8357 added test for epochToHttp 2006-08-02 15:56:32 +00:00
JT Smith
61eb59c7f8 bug fixes and new tests 2006-08-02 15:39:23 +00:00
Roy Johnson
93fc3bfa88 Started a new test suite for assets 2006-08-02 15:35:03 +00:00
Colin Kuskie
4b891f22f8 We're getting occasional failures of tests for timings. Using
the lastUpdated method on a user, for example.  I've made two changes
to try and fix these:

1) Changed the tests to use cmp_ok instead of ok, so that future failures
will print the measured times as a debug, like is and isn't do.

2) Reversed the order of the method and time measurement.  This might help
the difference stay smaller since the two statements are closer.
2006-08-01 18:28:58 +00:00
Colin Kuskie
f5f239e577 fix typo in docs 2006-07-31 18:05:25 +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
d154726bc1 Remove the use trace line from Paginator.t. It's not used.
Yet again, fix a security hole in the Include macro.  If the path used a symlink
then it would bypass one of the three security checks.
2006-07-30 18:10:31 +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
00de81868b Two bugs in rollback.
The check for rolling back the pbversion0000000000001 tag wouldn't log any
errors because it was after the return 0 statement.

If a set of assets that were programmatically generated were rolled
back, and the assets had a parent child relationship then there's
a race condition that could cause the parent to be purged before
child.  Since purging the parent _also_ purges the child, the system
would try to purge the child twice and this causes a fatal error.
Programmatically generating the assets causes their revisionDates
to be the same, and that causes the return order of the assets to
be uncertain.

The solution is to generate the list of assets to be rolled back
by revisionDate _AND_ lineage.  This guarantees that children are
purged first.

This bug was exposed in t/Macro/RootTitle.t  However, the bug
seems to be system dependent since the revisionDate depends on how
fast the system can create assets.
2006-07-28 23:40:06 +00:00
Colin Kuskie
b2d4c36080 add Include macro test and fix Include bug 2006-07-28 16:11:47 +00:00
Wouter van Oijen
e0b17be5dd Template issue 2006-07-28 10:14:27 +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
23cc777add remove debugging code 2006-07-27 17:46:47 +00:00
Colin Kuskie
0d769e2e1e remove op2 code from printable macro 2006-07-27 16:49:05 +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