Commit graph

1446 commits

Author SHA1 Message Date
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
Roy Johnson
1cae999b60 Two new tests for the snipper 2006-12-07 01:07:01 +00:00
Drake
c909ac9740 Some extra tests for workflow. 2006-12-06 22:03:32 +00:00
Roy Johnson
e058215bf7 Merging Search test into head 2006-11-30 01:05:21 +00:00
Doug Bell
4ed1f2f30e Added an idea for t/lib/WebGUI/Form_Checking.pm to make testing form values less magic and more flexible. still todo. 2006-11-29 06:36:27 +00:00
Colin Kuskie
957642e1c6 added explicit test for comma processing 2006-11-29 05:08:14 +00:00
Colin Kuskie
850abf9b6d setup code for showDebug test 2006-11-28 16:58:21 +00:00
Colin Kuskie
85eb6ddbeb Added setNamespace and getNamespace methods to WebGUI::International.
Added a baseline test for WebGUI::International which also tests the new methods.
Fixed codespace caching in WebGUI::Operation::Help.  Codespace caching is
done via symbol table lookups, and it saves doing an eval.
Implemented the same type of caching in WebGUI::International.  This replaced
the in-memory cache which would slowly accumulate a complete copy of the
i18n entries as they were fetched.
2006-11-26 04:07:32 +00:00
Colin Kuskie
ee9cae98a8 Documented the heretofore undocumented Deactivate Account Template in the Auth modules.
Broke out code scanning tests into their own tests, and required the CODE_COP environment
variable be set before they were run.
Fixed two bugs in the Workflow test, wrong number of tests and inverse test logic.
More Auth template inheritance work.  Almost time to reflect it over to
the LDAP module.
2006-11-24 21:05:44 +00:00
Roy Johnson
22b9bc5e3b added two new tests to Storage.t 2006-11-23 08:17:53 +00:00
Colin Kuskie
2843dd195b update ErrorHandler test to work from either . or sbin 2006-11-22 21:59:07 +00:00
Drake
567219c767 Add the beginnings of a test suite for workflows. 2006-11-22 16:09:12 +00:00
Colin Kuskie
a0d2326f9c Found and fixed a bug in ErrorHandler, canShowPerformanceIndicators.
It didn't work with CIDR format IP addresses.  I cannabilized the
code from canShowDebug and refactored it into its own method,
canShowBasedOnIP.  Both canShowDebug and canShowPerformanceIndicators call this.
Updated the docs for the debugIp setting to note that it's used for both
showDebug and showPerformanceIndicators.
Added about 20 more tests to ErrorHandler.t.  Only the two hard methods are
left, fatal (which closes the session at the end) and showDebug, which is
validating a ton of output.
2006-11-21 03:50:15 +00:00
Colin Kuskie
fdffd2a5e3 more diagnostics for remotely failing test 2006-11-20 17:17:47 +00:00
Colin Kuskie
9c6f2c8b09 tests for audit, security which wrap info and warn 2006-11-20 05:28:53 +00:00
Colin Kuskie
648d7d0008 beginning of tests for ErrorHandler 2006-11-20 04:58:31 +00:00
Colin Kuskie
9b8f2ab061 Clearly document that sortHash* returns a Tie::IxHash.
Update the tests to assign to a Tie::IxHash to preserve the
sorted order.
2006-11-16 17:50:57 +00:00
Drake
848c4b6934 Oops. Fix test count in Utility.t since I forgot to update it before. 2006-11-10 15:16:23 +00:00
Drake
7ea06b9a81 Add some basic tests for sortHash and sortHashDescending to the
test suite for WebGUI::Utility.
2006-11-10 00:11:36 +00:00
Colin Kuskie
204046d283 document object mocking 2006-11-09 17:50:59 +00:00
Colin Kuskie
8142321a52 splitting on an empty string returns undef, not empty string 2006-11-09 17:47:29 +00:00
Colin Kuskie
ce617607a8 Update Style test to check for new return value.
Fix broken labels in CS Help and hover help.
2006-11-08 23:28:55 +00:00
Roy Johnson
2733d4f9a9 Two new tests for snippet. Almost at 100% coverage for snippet now. 2006-11-08 20:42:36 +00:00
Colin Kuskie
7b1109fb83 update test to handle change in Scratch delete return value 2006-11-07 17:25:00 +00:00
Drake
29ee8a00c7 Add some tests for joinCSV and splitCSV in WebGUI::Text. 2006-11-06 23:41:25 +00:00
Colin Kuskie
c3a2e71cd1 Mock the Session::Http->getCookies method so that neither it nor
setCookie will be called.
2006-11-06 00:50:34 +00:00
Roy Johnson
19aa2b854e merge tests from branch into HEAD 2006-11-02 03:01:32 +00:00
Colin Kuskie
568a02a6af This is as good as it's going to get. In order to push
the coverage up any higher, we'd have to reverse engineer
the Apache::Cookie module, figure out what it's doing to
the request.
2006-11-02 00:08:12 +00:00
Drake
3239727eae Extra tests for interaction between version tags and assets. 2006-11-01 18:17:31 +00:00
Colin Kuskie
75f159f71b A whole batch of Http test, and a pseudo Request test module to help.
Added accessors to Session/Http.pm, and wrote tests to back them all up.
2006-10-30 18:09:25 +00:00
Colin Kuskie
0b1e077f69 Changed the Help so that chapters with only 1 page are directly linked, saving a click.
Added pluggable template parser docs.
From the dev list, changed HTMLTemplateExpr to translate all dots in template
variables to underscores, since EXPR's don't do dots, just like TemplateToolkit.
2006-10-29 23:36:18 +00:00
Drake
a25d621343 Add tests to make sure all asset classes in the config file can be loaded
correctly.
2006-10-26 23:23:47 +00:00
Roy Johnson
153b13207f merging tests and bug fixes from 7.1 branch
- fix Asset.t cache test
- fix Asset.t purgeCache test
- add Session.t test suite
2006-10-26 19:14:45 +00:00
Colin Kuskie
88ef9a412e bunch of basic HTTP tests 2006-10-22 02:02:29 +00:00
Colin Kuskie
ab502e84d8 make test more robust to handle multiple toolbars 2006-10-21 16:44:51 +00:00
Colin Kuskie
e434fb700c Remove crufty code from HTMLForm that was never used.
More tests for Session/Icon.pm.  Due to the way the code is written,
this test will not test 100% of the code.  Untestable conditions include
not being able to find the toolbar directory in getToolbarOptions, and
all code that sets a default pageUrl in any icon-specific method.
2006-10-21 02:12:34 +00:00
Drake
4deff2a0a9 The beginnings of a test subsuite for VersionTag.pm. 2006-10-20 23:07:22 +00:00
Colin Kuskie
d55789fce3 refactored test to make pick up tests easier 2006-10-20 22:56:30 +00:00
Colin Kuskie
6ad527c4a9 Bulk tests for Session::Icon
Documented the disabled flag for moveDown and moveUp.  Only the EMS uses this in
the core as far as I can tell.
Optimized out 1 profile call in getBaseURL
2006-10-20 21:19:08 +00:00
Colin Kuskie
052d0ddb15 Os tests covering all possible, valid operating systems. Also has 100% test coverage 2006-10-19 17:49:51 +00:00
Colin Kuskie
b7ff72d27b tests to add 100% coverage to Privilege 2006-10-19 16:49:19 +00:00
Roy Johnson
e4d3e5839f Added 3 new tests to article for the view method, caching of the view method, and the purgeCache method. They aren't quite working right yet though... 2006-10-18 22:42:58 +00:00
Colin Kuskie
eef214ebb6 beginning of Privilege test 2006-10-18 03:32:40 +00:00
Colin Kuskie
276a2aa99d update test to work with getStatusDescription 2006-10-16 16:09:15 +00:00
Colin Kuskie
ca7110249f Extend Session::Http::getStatus so that is will also return the
description when called in list context.
Build tests to verify that behavior, and the default settings
for code and description.
2006-10-15 05:23:32 +00:00
Colin Kuskie
d6a62df50c This test is failing in the smoke-tests, but manual runs by two different
people on different OS'es are passing.  I've added some diagnostic tests
to help us figure out what's going on.
2006-10-15 01:16:57 +00:00
Colin Kuskie
eadb9ada36 Implemented the last few tests to give Session::Style 100% coverage.
There are still a few functional tests that need to be written, they're
codified as TODOs.

In Session/Style.pm, in all methods that have a send immediate option
(when sent=1), they no longer send and cache.  This prevents duplicate
heag tags from being generated if generateAdditionalHeadTags was
ever called twice.
2006-10-12 22:43:33 +00:00
Colin Kuskie
45627b37ed Full test for Output.t using tied variables as filehandles.
Test requires perl 5.8 and up since it uses PerlIO.
Test provides 100% coverage of Session::Output.pm
2006-10-12 17:32:24 +00:00
Colin Kuskie
514c2263fc Added tests to cover userStyle.
fixed a bug in userStyle where it would not process data that was false.
process will do this, so I made userStyle do it as well by adding
in a definedness check on $output.
2006-10-12 04:53:43 +00:00