Commit graph

197 commits

Author SHA1 Message Date
Doug Bell
cf4dbc93a3 added WWW::Mech tests for Photo, which do not work because File upload controls require JavaScript 2008-04-18 00:29:17 +00:00
Doug Bell
d2faf8cd23 GalleryFile now sets Album thumbnail if Album doesnt have one 2008-04-18 00:28:26 +00:00
Doug Bell
4ebed16c69 added more vars to GalleryAlbum and GalleryFile. fixed some tests 2008-04-17 22:54:19 +00:00
Doug Bell
7668f68980 add: Calendar can now choose workflow for Events
fix: Event now saves ownerUserId correctly
add: GalleryAlbum now shows link to add a Photo
added a test skeleton for Test::WWW::Mechanize tests
2008-04-16 23:32:12 +00:00
Chris Nehren
684ce5a7ca The export system has been completely rewritten to be less monolithic and
easier to understand. It's also got a fully rewritten test suite (145 and
counting). It uses Path::Class for much of its work, which is now a requirement
for wG.
2008-04-16 22:16:11 +00:00
Doug Bell
8ec2c763b4 fix: Events can no longer be edited by anyone who can add events 2008-04-15 18:10:39 +00:00
Graham Knop
be4e872277 small test fix 2008-03-27 17:17:21 +00:00
Doug Bell
3ea9420479 fix: Fixed permission issues with Gallery comments
Gallery now checks to see if it's committed before allowing Albums to be added
Slideshow and thumbnails work better
Much, much more
2008-03-27 00:24:00 +00:00
Doug Bell
ab6f4defe3 - moved Gallery utility methods to WebGUI::Utility::Gallery
- Added tests for GalleryAlbum RSS
- More tests for comments
- Test International Macro sprintf as third+ arguments
- Add Gallery search limiting by user ID
- Remaining i18n for Gallery templates
- Fix: Search form now visible in Photo assets
Moved a lot of stuff from Photo to GalleryFile
2008-03-20 18:51:44 +00:00
Yung Han Khoe
f70549720b fix: defaultThingId was not automatically set after creating first thing, also added a test for this. 2008-03-15 15:47:55 +00:00
Graham Knop
cef5f68603 Fix test failures 2008-03-13 22:08:24 +00:00
Yung Han Khoe
9de7e34112 add: Thingy asset 2008-03-13 19:06:18 +00:00
Doug Bell
3842ebf6fa Added WebGUI::Asset::File::GalleryFile
Changed Photo to subclass WebGUI::Asset::File::GalleryFile
2008-03-05 23:06:58 +00:00
Doug Bell
8af6f28988 fix: GalleryAlbum and Photo were not showing correct confirmation messages on editSave
add: Ability to edit comments to Photos
add: Ability to choose which rich editor for Albums
2008-03-04 21:26:30 +00:00
Colin Kuskie
06f52bae9a Fix how logging gets intercepted. It used to be on by default, now it must be turned on. 2008-02-29 22:09:32 +00:00
Graham Knop
8533cf8ae8 fixing test warnings, Storage should always return to the correct directory 2008-02-29 07:00:29 +00:00
Doug Bell
4a65691dcc add: Calendar List view and associated Help
add: Ical Page length
add: WWW::Mech tests for Auth and Redirect
2008-02-28 18:40:06 +00:00
Colin Kuskie
c920bee629 add an explicit test for the safe copying of Asset properties inside get 2008-02-20 16:40:50 +00:00
Colin Kuskie
04da356822 take more advantage of getTestCollateralPath file concat 2008-02-09 04:44:15 +00:00
Doug Bell
fb4d77e958 fix: possibly fixed. 2008-02-08 01:21:20 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
Doug Bell
ec3bc19d77 Added i18n for Gallery (Search) template
Fix: Album description showing up in Photos when photo has no synopsis
fix: Photo now shows correct confirmation screen
fix: Photo now gets auto-committed according to Gallery approval workflow
fix: Formatting problems in Album view
fix: Photo and Album assets now retain their Owner after other users edit them.
fix: Gallery::Utility migration now retains createdBy, creationDate, and ownerUserId.
Testing Gallery::Utility a bit more thoroughly.
fix: Photo EXIF data now gets cached correctly and sanitized for references (since JSON won't store them and they're of no use to us anyway).
2008-01-25 22:34:37 +00:00
Doug Bell
054534564b fixed tests for newByDynamicClass and added a couple more for it 2008-01-25 17:47:03 +00:00
Colin Kuskie
36b622622e resolved bug/question about assetAddPrivilege and Turn On Admin group. Fixing test 2008-01-09 17:25:16 +00:00
Doug Bell
6fcfa3f80d fixes for Gallery and Gallery Utility 2008-01-09 04:23:52 +00:00
Doug Bell
f56c0873d8 Added userDefined fields to GalleryAlbum assets. Modified Gallery::Utility to migrate userDefined fields from Threads to GalleryAlbums. Added tests for the previous. 2008-01-07 22:38:59 +00:00
Colin Kuskie
10ef562d94 refine the one newByDynamicClass test 2008-01-05 05:36:11 +00:00
Colin Kuskie
a05e90408e convert the commented out code into TODOs 2008-01-05 05:00:27 +00:00
Colin Kuskie
2eb1883345 Add a stub test for newByDynamicUrl, that really should
have been a stub test for update.
Add tests for getNotFound, testing what is returned for both
a page and a Snippet.
2008-01-05 04:05:37 +00:00
Doug Bell
0e55ec42cd Added migration utility for Gallery 2008-01-04 06:23:38 +00:00
Colin Kuskie
058a6353a1 AssetTrash bugfix exposes bad test code. There's no need to
purge when you can roll back a commit container asset like the CS.
2008-01-03 21:37:36 +00:00
Colin Kuskie
047b0c5d3e update plan and invert test for new default for isExportable 2008-01-03 00:23:16 +00:00
Chris Nehren
7accc3c57f Add fine-grained export controls. You can now specify whether you want specific
assets to be exportable. If any of an asset's parents aren't exportable, that
asset also won't be exportable.
2008-01-02 22:32:40 +00:00
Colin Kuskie
3a33baee4e Cover several other small utility routines. More getNotFound
tests need to be written.
2008-01-02 02:27:25 +00:00
Colin Kuskie
fb54ca2a1c Coverage tests for assetExists. 2008-01-01 21:35:19 +00:00
Colin Kuskie
33c4cd833b Add the failing test for assetAddPrivileges back in, but don't run it.
Add tests for assetUiLevel and getUiLevel.
2008-01-01 19:38:34 +00:00
Colin Kuskie
280cc48094 tests for getToolbarState, toggleToolbar and getUiLevel 2008-01-01 04:09:35 +00:00
Colin Kuskie
7299ba8f7e add tests for getTitle and getMenuTitle 2008-01-01 03:07:49 +00:00
Colin Kuskie
01577051cd re test #6. Making the hash ref a bag causes an automatic mismatch and interferes with
test diagnostics.
Test fails due to a mismatch in the assetSize param in the first (and probably further)
entry of the loop.  Marked as TODO.
2007-12-31 21:25:35 +00:00
Colin Kuskie
ea10fc3047 Add tests for getName. Note that the coverage tests said this
was already covered, even though there were no direct tests for
it.  This is because it's called by other methods.
2007-12-31 05:21:00 +00:00
Colin Kuskie
d65f9f1e51 add tests for getContainer 2007-12-31 04:59:52 +00:00
Colin Kuskie
5a5a749643 Add tests for Asset->addMissing 2007-12-31 04:45:07 +00:00
Colin Kuskie
1e1e7a2afa Clean up left-over scratch in two tests to try and get
Workflow/Activity/DeleteExpiredSessions to work in the smoke
tests.
Comment out the two failing tests in Asset.t until my bug
gets answered.  Turns out you can't TODO them because
it requires using Test::Builder instead of Test::More.
2007-12-31 02:12:12 +00:00
Colin Kuskie
44162ea113 add some more comments to make sure that nothing bad happens 2007-12-27 20:38:31 +00:00
Colin Kuskie
cf968818b4 WGBP indent Asset::canView.
Add coverage tests for canView.
2007-12-27 06:36:04 +00:00
Colin Kuskie
ed177c614e WebGUI::Test::Maker::Permission will now use usernames instead of userIds in comments
if they are available.
Move the getLanguage test out of the SKIP block dependent on install the PigLatin
language pack.
Update Maker users with usernames in Asset.t
Add tests for assetAddPrivileges.  These tests currently cause the Turn On Admin
checks to fail.  A bug has been filed for this, and the tests may be rewritten
based on the resolution of the bug.
2007-12-27 06:06:32 +00:00
Doug Bell
af271b9f26 fixed a bunch of GalleryAlbum/Photo tests 2007-12-26 00:39:08 +00:00
Colin Kuskie
6dfe05b119 add more users and groups to check canEdit 2007-12-25 19:39:44 +00:00
Colin Kuskie
d0228ddbb4 add some more users for testing canAdd and canEdit 2007-12-24 01:25:10 +00:00
Colin Kuskie
924f09a09f Extend WebGUI::Test::Maker::Permission to handle class methods, like Asset->canAdd and Operations.
Add canEdit and canAdd tests to Asset.t
2007-12-23 23:30:26 +00:00