summaryrefslogtreecommitdiffstats
path: root/core/js/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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 '
| * Fix typoLukas Reschke2014-05-311-1/+1
| |
| * Add unit tests for escapeHTMLLukas Reschke2014-05-281-0/+11
| |
* | Added ground work for OC.Share unit testsVincent Petry2014-05-132-0/+100
| |
* | Fix file summary to use the whole file listVincent Petry2014-04-281-0/+17
|/ | | | | | - moved the summary code into a new class FileSummary - FileSummary is calculated only once, then updated with add/remove - added new OC.Util namespace for JS utility functions
* Moved SVGSupport call to use OC.Util.SVGSupport()Vincent Petry2014-04-091-3/+3
|
* Moved code to replace svg with png to OC.UtilVincent Petry2014-04-041-0/+26
| | | | | | | | | - Moved code that replaces the "svg" extension for the given file to core as OC.Util.replaceSVGIcon. - Added unit test for OC.Util.replaceSVGIcon - Moved "replaceSVG" to OC.Util.replaceSVG and deprecated the global "replaceSVG" function. - Added alias for SVGSupport() as OC.Util.hasSVGSupport() (for now)
* Fixed parseQueryString to handle empty values and plus signsVincent Petry2014-04-011-1/+66
| | | | | | - now correctly parse query strings with '+' signs - empty values are now parsed either as null or empty string - added unit test for parseQueryString()
* Fixed matchMedia usage to make unit tests work in PhantomJSVincent Petry2014-03-181-12/+15
| | | | | | PhantomJS has a bug that makes it impossible to properly stub window.matchMedia. This fix adds a wrapper as OC._matchMedia that is used for unit tests
* Add/remove main menu action when switching between desktop/mobile modeVincent Petry2014-03-181-0/+101
|
* Merge pull request #7592 from owncloud/fixstoragefreespaceVincent Petry2014-03-061-0/+7
|\ | | | | Fixed upload issue when free space is not known (ex: FTP)
| * Added testArea for JS Unit testsVincent Petry2014-03-061-0/+7
| | | | | | | | | | | | | | | | | | | | Added a testArea that is outside the viewport but still considered as visible from the jQuery code. The testArea is useful when: - tested code tries to access DOM elements using global ids - tested code is requiring some UI elements to be visible to activate themselves
* | Merge pull request #7579 from owncloud/introduce-generateUrl-masterMorris Jobke2014-03-061-0/+9
|\ \ | | | | | | Introduce OC.generateUrl() in master
| * | adding js unit tests for OC.generateUrl()Thomas Müller2014-03-061-0/+9
| |/
* | Removed obsolete OC.Router stubs in specHelperVincent Petry2014-03-051-10/+0
| |
* | fixing js unit testsThomas Müller2014-03-052-10/+5
|/
* Added oc_defaults stub in specHelper.jsVincent Petry2014-02-241-0/+1
| | | | | This is needed for JS Unit tests to run properly as they are expecting the new "oc_default" map to exist.