aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| * Catch any errors thrown during url-retrieve.Holger Dürer2017-06-191-0/+18
| | | | | | | | | | On Emacs24 I've been able to reliably fail url fetching which exposed issues in loading a timeline (it aborts the loading). This catches any errors, marking the image load as failed so that we won't retry (retries are a TODO item I guess) and then succeeds the function so the rest of the timeline loading can proceed.
* | 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
* | Catch any errors thrown during url-retrieve.Holger Dürer2017-06-191-0/+18
|/ | | | | On Emacs24 I've been able to reliably fail url fetching which exposed issues in loading a timeline (it aborts the loading). This catches any errors, marking the image load as failed so that we won't retry (retries are a TODO item I guess) and then succeeds the function so the rest of the timeline loading can proceed.
* Remove most byte-compile warnings.Holger Dürer2017-05-183-23/+23
| | | | | | | We do this by - moving vars into the files where they are (mostly) used - "declaring" vars used elsewhere with the (defvar <var-name>) pattern, - declaring functions defined in others functions rather than loading the file via require.
* Putting buffer name and update function in buffer local varalexjgriffith2017-05-181-44/+0
| | | | | | | | | | removed tests for previous version documented mastodon-buffer-spec getters moved mastodon-buffer-spec to mastodon.el combined mastodon-tl--get and mastodon-tl--init, along with other cleanups
* Fix for #84Alexander Griffith2017-05-181-1/+45
| | | | | | | | | | | | changed more-json in mastodon-tl-tests to recieve an endpont more evocative names and fixed whitespace replaced remaining end eith endpoint-plist added basic unit tests for endpoint selection replaced equalp with equal in tests
* Add tests for mastodon-media.elHolger Dürer2017-05-122-0/+181
| | | | This also includes tweaks to make Travis happy — tests previously did pass on my laptop but Travis's environment is different.
* Move the rendering of images fully into mastodon-media.el and use default ↵Holger Dürer2017-05-101-6/+46
| | | | | | | images. Having all the logic in one file reduces interdependencies. Having default images is more pleasing during the incremental loading.
* Add the time of posting to the byline.Holger Dürer2017-04-281-0/+178
|
* Add mastodon-media to test helperJohnson Denen2017-04-241-0/+1
|
* Close #52 with mastodon-tl--more functionJohnson Denen2017-04-232-0/+8
| | | | You can request more toots by hitting 'j' at the end of a timeline buffer
* Group API endpoint function with mastodon-httpJohnson Denen2017-04-231-1/+1
|
* Clean up tests and update DOCSTRINGsJohnson Denen2017-04-233-35/+13
|
* Rewrite mastodon-authJohnson Denen2017-04-233-129/+37
| | | | | | - Remove client functions - Use mastodon-http--post - No more callback spaghetti
* Use Cask to run tests in TravisCIJohnson Denen2017-04-238-13/+6
|
* Add mastodon-client featureJohnson Denen2017-04-231-0/+76
|
* Retrieve home timeline with `mastodon' functionJohnson Denen2017-04-141-0/+16
|
* Use synchronous calls for simpler JSON parsingJohnson Denen2017-04-141-2/+3
|
* Add GET functionJohnson Denen2017-04-141-0/+10
|
* Add `mastodon-auth--client' functionJohnson Denen2017-04-121-4/+7
| | | | Replace direct references to `mastodon--client-app-plist'
* Add tests for `mastodon--access-token'Johnson Denen2017-04-121-1/+15
|
* Add mastodon--get-access-token testJohnson Denen2017-04-121-0/+16
| | | | Abstract Email and Password prompts to `mastodon-auth--user-and-passwd' function
* Abstract success lambda to its own function and testJohnson Denen2017-04-121-0/+14
| | | | | | Add `mastodon-auth--get-token-success' Add test for `mastodon-auth--get-token-success' Add test for `mastodon--get-access-token-triage'
* Add mastodon--client-app testsJohnson Denen2017-04-123-0/+25
|
* Add store-client-id-and-secret testJohnson Denen2017-04-121-0/+24
| | | | | Add `mastodon-auth--token-file' function Add test for `mastodon-auth--token-file'
* Add mastodon--register-and-return-client-app testJohnson Denen2017-04-121-14/+27
| | | | Refactor tests to check plist return value
* Add mastodon-auth--register-client-app testJohnson Denen2017-04-121-0/+19
| | | | Add mastodon-auth--register-client-app-triage test
* Add mastodon-auth--registration-success testJohnson Denen2017-04-121-0/+12
|
* Add tests for mastodon-toot.el functionsJohnson Denen2017-04-101-0/+25