summaryrefslogtreecommitdiffstats
path: root/core/js/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests for _parseTime with hex and empty stringsMorris Jobke2015-07-291-0/+2
|
* Fix parsing of sharetime as stringMorris Jobke2015-07-291-0/+14
| | | | | | | In some cases the ajax/share.php will return the share time as string. If this is the case it would get parsed completely wrong and cause the share dropdown to not work anymore. This change will properly cast the string to an interger and also fallback if this is not possible.
* Added unit test for reshare by share ownerVincent Petry2015-06-251-0/+26
| | | | | Conflicts: core/js/tests/specs/shareSpec.js
* Fix to make sure expiration date is properly setRoeland Jago Douma2015-05-181-0/+27
| | | | | | | | This did not happen correctly when the password was enforced since a different code path was taken. * moved generation of the default date string to separate function * added unit test
* generate valid human readable text for 0 - fixed #9342Thomas Müller2015-02-121-0/+2
|
* Indicate that the share owner is remote in the filelistJoas Schilling2015-01-271-3/+3
|
* Fix reshare permission issueVincent Petry2015-01-091-0/+156
| | | | | The actual share permissions sent to the server on reshare are now based on possiblePermissions + permissions inherited from parent share
* Add timeout for notificationsMorris Jobke2015-01-081-0/+97
| | | | | | | | * options for timeout in seconds and if it contains HTML * if timeout is 0 it will show the message permanently * removes the notification after a given (default: 5 seconds) timeframe * based on work by @brantje * provide JS unit tests for notifications
* Autoescape of placeholders in t() and p() - for JSMorris Jobke2015-01-071-0/+10
| | | | | | | * add disableEscape parameter to disable this functionality * drop usage of escapeHTML() that is now done inside t() * add unit test for escaped and not escaped placeholder * proper JSDoc
* Merge pull request #12795 from owncloud/files-layoutchangesMorris Jobke2014-12-131-2/+2
|\ | | | | Move file thumbnail element into the label tag
| * Move file thumbnail into the label elementVincent Petry2014-12-111-2/+2
| |
* | Merge pull request #12527 from owncloud/js-pluginsystemRobin Appelman2014-12-122-0/+34
|\ \ | |/ |/| Simple Plugin system for Javascript
| * Simple Plugin system for JavascriptVincent Petry2014-12-012-0/+34
| |
* | Add an option to disallow sending sharing emails to non-owncloud usersJoas Schilling2014-12-091-0/+11
|/ | | | Fix #10836
* Fix l10n promisesVincent Petry2014-11-191-2/+6
|
* Added function to load translations from JSVincent Petry2014-11-181-0/+48
| | | | | | For apps that support async translation loading, a new function OC.L10N.load() can be used to asynchronously load the translations for a given app.
* Added OC.L10N namespace with translation functionsVincent Petry2014-10-292-9/+101
| | | | | | | | | | | Added addTranslations and fixed de.js file Fixed de.js to use OC.L10N.register() and use to correct expected format. Added JS unit tests for OC.L10N class Include translations JS script for all apps
* Merge pull request #7254 from owncloud/core-sortalgoLukas Reschke2014-09-162-0/+161
|\ | | | | Fixed JS sort comparator to be consistent between JS and PHP
| * Fixed sort algo for additional casesVincent Petry2014-08-111-1/+5
| |
| * Fixed file list sortingVincent Petry2014-08-112-0/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | Now using a natural sort algorithm that is more consistent between JS and PHP (although not perfect in some corner cases) - added OC.Util.naturalSortComparator that uses the same algo that was used for the user list - changed user list and files list to use OC.Util.naturalSortComparator - removed toLowerCase() and changed the comparator to use String.localeCompare() - added unit tests - added OC_NaturalSort that is used by OCP\Util::naturalSortCompare()
* | Merge pull request #9753 from owncloud/filepath-cssThomas Müller2014-09-091-0/+20
|\ \ | | | | | | Remove special case for css in OC.filePath
| * | Add beforeeach and aftereachLukas Reschke2014-09-091-4/+6
| | |
| * | Add unittest for filePathLukas Reschke2014-09-091-0/+18
| | |
* | | Use a route instead of s.php and convert tokens asapkondou2014-09-041-3/+3
| | |
* | | Init vars with a value if none is providedClark Tomlinson2014-08-281-0/+3
| | |
* | | Fix share dropdown when links are not allowedVincent Petry2014-08-211-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | When links are not allowed, the email field does not exist and autocomplete returns null. This causes Javascript errors. The fix prevents entering the bogus block when links aren't allowed, as it doesn't make sense to enter it in such cases anyway.
* | | Fixed folder icon update routine when share owner existsVincent Petry2014-08-152-1/+70
| |/ |/| | | | | | | Whenever a folder has a "data-share-owner" attribute, the icon is now properly updated to a shared folder icon.
* | update unit test, min date should be always today + 1Bjoern Schiessle2014-08-081-3/+5
| |
* | Fix enforced share expiration date to be based on share timeVincent Petry2014-07-212-10/+135
|/
* reduce share action text to the user name onlyThomas Müller2014-07-141-7/+7
|
* Improved remote share owner displayVincent Petry2014-07-031-0/+79
| | | | | | | The parts of the remote share owner name is now split between user name, domain name and root so they can be formatted / displayed differently. The user name + domain name are displayed in the tooltip.
* Unit tests for share dropdown with nested link shareVincent Petry2014-06-271-1/+145
|
* Test runner now loads CSS and hides testAreaVincent Petry2014-06-241-1/+1
| | | | | | | - serve CSS and font files properly to make sure that measurements are correct for the tests that need them (breadcrumb) - added opacity to testArea to make sure nothing is visible during testing
* Added unit tests for heartbeat interval min/max valuesVincent Petry2014-06-121-1/+23
|
* Fixed Snap mockVincent Petry2014-06-061-5/+10
| | | | Also fixed JSHint errors
* close sidebar when switching navigation entry, except on add or change settingsJan-Christoph Borchardt2014-06-051-0/+3
|
* Merge pull request #8620 from owncloud/design-navigation-twoThomas Müller2014-06-051-82/+5
|\ | | | | Toggle app navigation not only on mobile, but on desktop as well
| * fix unit test templateMorris Jobke2014-06-051-1/+1
| |
| * fix first failing testMorris Jobke2014-06-051-2/+1
| |
| * Remove obsoleted code to trigger navigation menuVincent Petry2014-06-041-79/+3
| | | | | | | | | | Now that the navigation menu is always togglable, the media query dependent code can be removed.
* | Merge pull request #8791 from owncloud/share-overview-sharewithstatusMorris Jobke2014-06-041-5/+133
|\ \ | |/ |/| Update share action text to display owner/recipients
| * Use recipient display names when updating shares in the UIVincent Petry2014-06-041-23/+17
| | | | | | | | | | | | | | | | | | | | | | Since OC.Share didn't have any array containing the list of shares for the current file, OC.Share.currentShares has been introduced to contain the full share item structure instead of the reduced one OC.Share.itemShares. The event "sharesChanged" is now passing OC.Share.currentShares, which itself includes the display name to be displayed for the recipients in the action icon.
| * More unit tests and fixes for shareVincent Petry2014-06-021-5/+139
| |
* | Merge pull request #7485 from owncloud/scrutinizer_fix_1_kondouMorris Jobke2014-06-032-8/+9
|\ \ | | | | | | Scrutinizer cleanup
| * | Scrutinizer cleanupkondou2014-06-022-8/+9
| | |
* | | Merge pull request #8820 from owncloud/design-detailsFrank Karlitschek2014-06-021-0/+7
|\ \ \ | |/ / |/| | Design details
| * | fix unit tests after introduction of animations - adds delays for click triggerMorris Jobke2014-06-021-0/+7
| |/
* | Merge pull request #8613 from owncloud/filesize-alignmentMorris Jobke2014-06-021-0/+13
|\ \ | |/ |/| Improve aligment of file size
| * display "<1 kB" for really small filesMorris Jobke2014-06-021-0/+13
| | | | | | | | | | * added parameters for humanFileSize to trigger that behaviour * add unit tests for that
* | Merge pull request #8187 from owncloud/escape-more-characterMorris Jobke2014-06-021-0/+11
|\ \ | |/ |/| Also encode > and '