summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2010-11-29Add Nickname test cases for @-reply regexes in common_find_mentionsBrion Vibber
2010-11-29Nickname class to encapsulate validation & common regexes for nickname formats.Brion Vibber
This provides initial infrastructure for decoupling display names from internal canonical names, but continues to have us storing and using the canonical forms. It should be/become possible to provide mixed-case and underscore-containing names in links, @-mention, !-group, etc, but we don't store those alternate forms generally.
2010-11-29Work in progress on nickname validation changes. lib/nickname.php appears to ↵Brion Vibber
have been destroyed by NetBeans and will be rewritten shortly. Sigh.
2010-11-29Start on some nickname-validation test cases: several of these fail right ↵Brion Vibber
now because we had regressions in 0.8 or 0.9 where we lost normalization of uppercase and some other chars.
2010-11-15Add some data integrity checks on oembed tests (shows a bug on identi.ca ↵Brion Vibber
test case -- missing width/height in photo data)
2010-11-15Test oEmbed lookups with oohembed both on and off explicitlyBrion Vibber
2010-11-15Restructure oembed test sourcesBrion Vibber
2010-11-15Add some basic oEmbed lookup test cases; fixed a bug in discovery fallback.Brion Vibber
2010-10-20Fix option settings on oauth_post_notice.phpBrion Vibber
2010-10-20Fix --oauth-token-secret on oauth_verify_creds.phpBrion Vibber
2010-10-18Update URLDetectionTest.php for rel="nofollow external". There are still ↵Brion Vibber
some broken tests due to bad quote splitting, which is unrelated.
2010-10-12Default to ssl in oauth tests examples configZach Copley
2010-10-07Update OAuth test script READMEZach Copley
2010-10-07Rename oauth.ini example to oauth.ini.sampleZach Copley
2010-10-07Rename OAuth status update scriptZach Copley
2010-10-07Some fixupsZach Copley
2010-10-07Renamed the OAuth verify credentials test scriptZach Copley
2010-10-07Some fixups to this the OAuth verify credentials test scriptZach Copley
2010-10-07Rename OAuth token credential fetching scriptZach Copley
2010-10-07Update access token fetching test script to 1.0aZach Copley
2010-10-07Make the verifier pin display a little nicerZach Copley
2010-10-07More OAuthy name for temp credentials fetching test scriptZach Copley
2010-10-07Change temp credential test script to use POST instead of GET (moreZach Copley
useful for testing in general)
2010-10-06Some more cleanupZach Copley
2010-10-06- Update getrequesttoken test script to use 1.0aZach Copley
- Some cleanup
2010-10-06A bit more work on the request token fetching test scriptZach Copley
2010-10-06Somewhat improved test script for fetching an OAuth request tokenZach Copley
2010-08-03update tests to include 'mentioned' linksEvan Prodromou
2010-08-03add actor info to testsEvan Prodromou
2010-08-03more tests for activity generationEvan Prodromou
2010-08-03add some more tests for replies and group postsEvan Prodromou
2010-08-03initial unit tests for activity generationEvan Prodromou
2010-06-28Enhanced upload file type detection. If given an original filename, we'll ↵Brion Vibber
attempt to detect type from the extension if we were unable to make a definitive match from content. Generic octet-stream, zip, and MS Office type are explicitly singled out for re-checks, which fixes OpenOffice and MS Office documents to come up with the proper types when misdetected. File extensions can also be added to the upload type whitelist; they'll be normalized to types for the actual comparison, so only known extensions will work.
2010-06-28Test cases for MediaFile::getUploadedFileType() with OpenOffice, MS Office, ↵Brion Vibber
and PDF sample files (as saved from OpenOffice 3.2) Only 3 of 16 cases pass on my dev box with default config. Ouch!
2010-04-29Merge branch 'master' into testingBrion Vibber
2010-04-23Test cases and fixes for Atom and RSS content decoding.Brion Vibber
Fix extraction of Atom <content type="text"> and <content type="html">; we were failing to escape plaintext source data to HTML, and doing an extraneous double-deescape on HTML source resulting in breakage of notices containing text that looks like HTML. Only <content type="xhtml"> was working correctly previously. Fixes for RSS2 content processing: we were failing to load <content:encoded> at all due to using wrong element name, and were applying an extraneous de-escape for <description> rather than the escaping that is required to turn plaintext into HTML. (Per spec, <description> must be plaintext.)
2010-03-30Ticket #1281: JID validation now more or less follows spec instead of ↵Brion Vibber
calling e-mail validator Basic splitting/validation code submitted via http://status.net/wiki/XMPP/JID_validation -- Copyright 2009 Patrick Georgi <patrick@georgi-clan.de> Licensed under ISC-L, which is compatible with everything else that keeps the copyright notice intact. Added PEAR Net_IDNA package to extlib to handle IDN normalization (also used by Validate's email verifier if present). * added test suite, supplemented my own test cases with JID validation and normalization test cases from libpurple * follows XMPP rules for validation of name part * fixes for normalization with non-ASCII names * will do domain checks if $config['email']['check_domain'] is on, checking for an XMPP-server SRV record or any lookup. (We don't actually need to ping those direct though.) * some more obscure stringprep validation rules aren't quite followed yet, but we err on the side of permissiveness. * we still don't actually let you save your address with a resource on it, as we strip resources when looking up users who've sent us presence or message updates. I would recommend saving the outgoing resource as a separate field if/when we add that..?
2010-03-27reverse order of activity parse test argumentsEvan Prodromou
2010-03-22Some initial media parsingZach Copley
- Activity now returns a list of activity objects - Processing of photo objects
2010-03-21Fix broken assertionZach Copley
2010-03-20test posterous author useEvan Prodromou
2010-03-19Parse RSS items as activitiesEvan Prodromou
First steps to parsing RSS items as activities. RSS feeds don't seem to have enough data to make good remote profiles, but this may work with some "hints".
2010-03-03Test a small user feed to ensure we're taking the activity actor from the ↵Zach Copley
subject
2010-02-25Fix test to account for new way avatars are stored in ActivityObjectZach Copley
2010-02-24Populate more profile information when doing a remote subscribeZach Copley
2010-02-23- Move ActivityParseTests to coreZach Copley
- Add test for Portable Contacts stuff
2010-02-20Add a library to mint tag URIsEvan Prodromou
We've been making pretty crummy tag: URIs for a while. We should continue to favor HTTP URIs, since it's nice to be able to discover things about an object you've shared the ID of. Where that's not possible, this makes nicer tag URIs.
2010-01-27Test script to update your status via OAuthZach Copley
2010-01-24Fixed some spelling mistakes in the READMEZach Copley
2010-01-24Some rough test scripts for poking at the OAuth systemZach Copley