summaryrefslogtreecommitdiff
path: root/modules/gallery/tests
AgeCommit message (Collapse)Author
2009-07-30Remove debug statementsBharat Mediratta
2009-07-30Update golden fileBharat Mediratta
2009-07-28Revert commit 078c77a62b623322956457bfd7bfbdaf56203b00 and change theTim Almdal
tag_event:item_edit_form to use the new Form_Script library to inject script into a form. Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-07-28Revert commit 078c77a62b623322956457bfd7bfbdaf56203b00 and change theTim Almdal
tag_event:item_edit_form to use the new Form_Script library to inject script into a form.
2009-07-28Create A Forge Script element. Form_Script allows the specificationTim Almdal
of either a url to a script file or in line text which will be included in a script block. Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-07-27Create A Forge Script element. Form_Script allows the specificationTim Almdal
of either a url to a script file or in line text which will be included in a script block.
2009-07-27Allow a theme to override the page refresh mechanism. Create a newTim Almdal
javascript lib (gallery.reload.js) which defines the functions gallery_reload() and gallery_location(new_location). They just do a window.location.reload() and window.location = new_location. This change breaks the assumption that all themes will handle page reloads the same and allows the theme to customize the page refresh.
2009-07-27Updated.Bharat Mediratta
2009-07-27Back out the fix for ticket #452Tim Almdal
Revert "Changed access::user_can to force the owner of an item to have" This reverts commit 0b97cfd6f098be08be5f3cf1dbca1cce580ae330.
2009-07-26Merge branch 'master' of git://github.com/rledisez/gallery3 into rledisez/masterAndy Staudacher
2009-07-26Changed access::user_can to force the owner of an item to haveTim Almdal
view permission on the parent. Added a whitelist of allowable owner permissions. If the requested permission is view and the user requesting access is the owner, check that they have view permission to the parent.
2009-07-25Rename columns that use reserved SQL words : items.left and items.rightRomain LE DISEZ
2009-07-24Add tag autocomplete to the album and photo edit pop up dialogs.Tim Almdal
This required putting a wrapper view around the forms and passing this view as the parameter to the item_edit_form event. The view contains a $script variable that the modules can add script to be included in the form html when rendered as part of the ajax response.
2009-07-24Partial implementation of ticket #80. Provide auto complete and suggestions ↵Tim Almdal
on the tag add form in the tag sidebar block. Updated the xss golden file as well. Still to do figure out how toget it into the edit popup dialog
2009-07-23Updated golden fileBharat Mediratta
2009-07-22Add explicit unit tests for access::user_canTim Almdal
2009-07-21Updated for movieplayer.html.php updateBharat Mediratta
2009-07-17Fix a bug where moved items don't properly inherit permissions fromBharat Mediratta
their new target. After each move, recalculate the permissions for the new parent's hierarchy. Fixes ticket #552
2009-07-16Update golden file to match recent changes in event code.Bharat Mediratta
2009-07-16Non-trivial changes to the event handling code:Bharat Mediratta
1) The item_updated event no longer takes the old and new items. Instead we overload ORM to track the original data and make that available via the item. This will allow us to move event publishing down into the API methods which in turn will give us more stability since we won't require each controller to remember to do it. 2) ORM class now tracks the original values. It doesn't track the original relationships (no need for that, yet) 3) Added new events: item_deleted group_deleted user_deleted
2009-07-16Update Xss_Security_Test to know about p::purify() and checkpoint theBharat Mediratta
golden file.
2009-07-13Add quotes around all values that contain spaces in them, and add aBharat Mediratta
test to make sure that we continue to do so. This makes sure that we don't have problems with 5.3 which treats the literal "on" as a boolean.
2009-07-03Update the source so the third party code passes the File Structure TestTim Almdal
2009-06-30Checkpoint.Bharat Mediratta
2009-06-29Revert to serializing and deserializing data. The cache table can'tBharat Mediratta
accept PHP constructs like arrays (the tests were choking on this). Update tests to reflect the new `key` column.
2009-06-29Checkpoint.Bharat Mediratta
2009-06-28Clean up code (i.e. preamble, tabs) from the caching implementation so the ↵Tim Almdal
unit tests pass
2009-06-27Implemented a Database driver for the Kohana Cache library. Rather then ↵Tim Almdal
writing our own caching algorithm, we can leverage the Kohana library. This has the added advantage of allowing the administrator to replace the default caching with a 3rd party caching algorithm.
2009-06-22Update version comparison to match latest gallery module versionBharat Mediratta
2009-06-22UpdatedBharat Mediratta
2009-06-10Golden file updateBharat Mediratta
2009-06-06Update xss golden fileBharat Mediratta
2009-06-05Remove source code copy artefactAndy Staudacher
2009-06-05Update golden file of Xss testAndy Staudacher
2009-06-04Updated for csrf in admin.html.phpBharat Mediratta
2009-06-04Change "CLEAN" to an empty string to see if it's better visually.Bharat Mediratta
Looks like it is.
2009-06-04Update xss clean listBharat Mediratta
2009-06-02Improve test isolation so that Albums_Controller_Test doesn't fail when run ↵Tim Almdal
with Photos_Controller_Test
2009-06-02Restore "view" permissions on the root album in teardown.Bharat Mediratta
2009-06-02fix the xss_security_test in regards to the renaming of thumb_tag, ↵Tim Almdal
resize_tag and move_tag.
2009-05-31Update for changes to admin_users_group.html.phpBharat Mediratta
2009-05-31Updated for renamed variableBharat Mediratta
2009-05-31Merge branch 'master' of git://github.com/gallery/gallery3Bharat Mediratta
2009-05-31Xss scanner golden file. Up to date.Bharat Mediratta
2009-05-31Update the clean/dirty format, check all ffiles instead of just one (which ↵Bharat Mediratta
was for debugging)
2009-05-31First pass at an XSS security test, along with the "p" helper whichBharat Mediratta
can clean HTML output.
2009-05-31Remove the test images from the gallery module and move it to the developer ↵Tim Almdal
module in -contrib
2009-05-28Prepend all code files we copy from Gallery2 and put into var with ourBharat Mediratta
code preamble for security. Update File_Structure_Test::code_files_start_with_preamble_test to check all the php files in var, too.
2009-05-28Update tests to reflect cache-buster param on thumbnail urls.Bharat Mediratta
2009-05-28Rename Core_Installer_Test -> Gallery_Installer_Test to match theBharat Mediratta
change from application -> modules/gallery.