aboutsummaryrefslogtreecommitdiff
path: root/test/mastodon-tl-tests.el
Commit message (Collapse)AuthorAgeFilesLines
* fix rel ts test to work w monnier's human durationmarty hiatt2024-08-221-24/+28
|
* comment on some timestamp testsmarty hiatt2024-08-221-1/+6
|
* fix report to mods testsmarty hiatt2024-08-221-4/+4
|
* fix a bunch of testsmarty hiatt2024-08-131-17/+17
|
* indent tl testsmarty hiatt2024-08-051-73/+73
|
* fix user-action fun testmarty hiatt2024-08-051-5/+7
|
* fix some tl timestamp testsmarty hiatt2024-08-051-11/+16
|
* add 2 map alist testsmarty hiatt2024-08-051-0/+18
|
* triage: call cb on response. do-user-action-fun: check response datamarty hiatt2023-10-281-45/+57
| | | | this means the triage callback always needs to handle 1 arg.
* toot-id>item-id, toot-json>item-json, item-type for nav, byline still neededmarty hiatt2023-10-151-33/+33
|
* tests docstringmarty hiatt2023-10-141-4/+2
|
* fix reporting rules testsmarty hiatt2023-10-131-6/+6
|
* actually fix report to mods testsmarty hiatt2023-04-211-19/+17
|
* add read-rules-ids testmarty hiatt2023-04-211-0/+29
|
* refactor tl--report-build-params and a hack test for itmarty hiatt2023-04-211-0/+42
|
* refactor and basic test for report to modsmarty hiatt2023-04-211-45/+77
|
* fix byline tests w horiz-bar. FIX #428.marty hiatt2023-04-051-26/+31
|
* fix byline tests: dummy toot-stats mockmarty hiatt2023-03-211-27/+35
|
* Fixed test for new elative stringsNicolas P. Rougier2022-11-281-10/+10
|
* Merge branch 'develop' into filter-follow-by-langmarty hiatt2022-11-261-18/+28
|\
| * hack to fix other byline testsmarty hiatt2022-11-261-2/+10
| |
| * fix byline-favourited and byline-boosted testsmarty hiatt2022-11-261-16/+18
| |
* | fix do user fun test in tlmarty hiatt2022-11-261-45/+45
|/
* remove trailing double space from sparatormarty hiatt2022-11-251-2/+2
| | | | tl-tests: remove trailing double spaces from separator again
* tl-tests: fix stray double space after separatormarty hiatt2022-11-251-6/+6
|
* fix some tests due to paramsmarty hiatt2022-11-221-21/+24
|
* http--post - make args + headers optional argsmarty hiatt2022-11-191-45/+45
| | | | also update all calls to it, no need for nil nil everywhere.
* fix spoiler text and indent tl-testsmarty hiatt2022-09-121-56/+59
|
* Fix the timer test that was broken with the recent timer fix.Holger Dürer2022-02-121-1/+1
| | | | | When we corrected the time arg for `run-at-time` we forgot to update the corresponding test which was strictly checking the time arg.
* improve delete toot testsmousebot2021-12-201-1/+1
|
* add block/mute calls to test do user action functionmousebot2021-12-201-2/+22
|
* test mastodon-tl--do-user-action-functionmousebot2021-12-201-1/+95
|
* Hamonize tests.Holger Dürer2021-11-101-9/+18
| | | | | | | - Add a header comment explicitly switching off lexical binding - Harmonize naming (always start with module and double hyphen) - Ensure all tests have at least a minimal doc string. - Move tests from `mastodon-auth-test.el` to `mastodon-auth-tests.el`
* Reformatting `mastodon-search-tests.el`.Holger Dürer2021-11-101-209/+209
| | | | | - Remove redundant let binding of vars - Re-indent various things to better fit reasonably on a screen.
* Reformat all code.Holger Dürer2021-11-061-210/+210
| | | | | | | | | | | Basically, in Emacs for each file: select all text and `indent-region`. - This also removes one redundant comment, and - fixes an error with json decoding where the `json-read-from-string` was actually not within the intended `unless` clause (which explains the warning about "result of (string-equal "" json-string) will be ignored" which I never understood.
* Fix tests.Holger Dürer2021-11-011-3/+3
| | | | | | | | | | | | These needed a bit of tender love and care to get back into passing state. - Move the auth tests to the `test` directory. No idea what it was doing in `lisp`. - Image tests are mostly broken because with later Emacsen we no longer need the `imagemagic` option on create-image. - Some method signatures have changed and mocking calls needed to follow suit.
* fix tests to work with my changes: bylines + notifs asyncmousebot2021-08-071-27/+31
|
* Clean up whitespaceJohnson Denen2018-08-101-5/+5
|
* Adjusted mastodon-tl.el to open user profiles in emacs. (#189)Alexander Griffith2018-08-101-4/+6
| | | | | | * Adjusted mastodon-tl.el to open user profiles in emacs. This also fixes an issue in user profiles where new statuses were insert at the above rather than below the user profile header.
* Make users handles tabstops (#188) Closes #166H Durer2018-08-101-10/+65
| | | | | | * User ids in the body are tab stops. * Make user handles in byline also links to profile.
* Support toggling content warning anywhere in the toot. (#180)H Durer2018-08-101-1/+20
| | | | | This new functionality is bound to the 'c' key. To help with this functionality this also changes the 'toot-json and 'toot-id properties. These are now applied to the whole toot not just the toot's byline.
* Generalizations for notifications (#174)Alexander Griffith2018-08-101-10/+33
| | | | | | | | * Added generalizations needed for adding notifications #37 - Made generalizations to toot and bylines to enable notifications. - Fixed tl tests to account for the new function arguments. - fixed whitespace
* Recognise hashtag links and make them link to our own tag browsing ↵Holger Durer2018-08-101-0/+47
| | | | functionality instead.
* Make "Content warning" a tab stop and toggle to show/hide the main contents. ↵H Durer2018-03-051-2/+60
| | | | | | | | | | | | | (#170) * Allow user to navigate interesting things in a buffer via tabbing (tab to go forward, M-tab and S-Tab to go back). This has always been possible while on a hyperlink but now works everywhere. Currently only hyperlinks are tab stops but in the future we will want to support other things and there are already TODO comments in the code to note where we may want to do this. * Add a new tab stop and link type: spoiler toggling. This initially hides the spoiler in a toot and makes the "Content warning" a link and tab stop. The action taken is to toggle the visibility of the toot.
* Allow user to navigate interesting things in a buffer via tabbing (tab to go ↵Holger Dürer2018-03-051-14/+159
| | | | | | | forward, M-tab and S-Tab to go back). This has always been possible while on a hyperlink but now works everywhere. Currently only hyperlinks are tab stops but in the future we will want to support other things and there are already TODO comments in the code to note where we may want to do this.
* Closes #152 and extends the fix for #150 as well as a host of bug fixesAlexander Griffith2018-02-281-0/+22
| | | | | | | | | | | | | | | | | | We now kill the http get request buffer once JSON has been extracted. mastodon-tl--as-string was implemented and replaced any occurrence of number-to-string or int-to-string Added variable mastodon-tl--display-media-p. By default it is 't but can be made a local buffer variable and set to nil. When nil rather than displaying the media it just provides a link Media::<link> Fixed checking for faves and boosts, they should now render properly. The return from json-read-from-string for nil is :json-false which evaluates to 't in elisp. Fixed the format string that gets printed when faving and boosting Fixed mastodon-tl--thread updating and requesting and changed its behaviour such that it tries to open the original toot thread rather than the boosted thread. Added tests for both the new mastodon-tl--as-string function and the mastodon-tl--toot-id utility. enter mastodon mode before defining local buffer variable mastodon-tl--buffer-spec. This fixes some oddities with the local buffer variable.
* Merge branch 'develop' into fix-numericpAlexander Griffith2018-02-261-0/+340
|\
| * Add periodic updating of the timestamp displays.Holger Dürer2017-06-191-4/+290
| | | | | | | | | | | | | | For each buffer we add a timer that periodically checks all timestamps and updates them as needed. The logic tries to be smart and - only schedule an update when at least one timestamps display needs changing (although at the moment we update at least every 5 minutes), and - only do a limited amount of work in each timer callback so as to not block Emacs's interactive work.
| * Show the posting date in a more readable, relative to current time format.Holger Dürer2017-06-191-0/+54
| | | | | | | | This is still static, i.e. doesn't update as time progresses.
* | Added tests to ensure that ids passed to mastodon-tl--updated-json and ↵alexjgriffith2018-02-251-0/+20
|/ | | | mastodon-tl--more-json work as both strings and integers