aboutsummaryrefslogtreecommitdiff
path: root/t
Commit message (Collapse)AuthorAge
* extend rst test to cover a fixed bugSimon McVittie2014-09-14
|
* extend regression test for inline to cover inlining, show, reverseSimon McVittie2014-09-14
|
* Merge branch 'ready/imgforpdf-and-more'Simon McVittie2014-09-12
|\
| * use readfile() instead of reinventing itSimon McVittie2014-09-01
| | | | | | | | | | This avoids potential action-at-a-distance from locally redefining $/ but never reaching the end of the redefinition's scope.
| * unit test for bugs/image_rescaling_distorts_with_small_pictureschrysn2014-07-15
| |
| * make img unittest easier to debugchrysn2014-07-15
| |
| * img plugin: split resizing calculations and actual resizingchrysn2014-07-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | there is now a size calculating part (which chooses a final size) and a scaling part (which triggers if the sizes calculated by the former indicate a downscaling). this solves the issue of unproportional upscalings (bugs/image_rescaling_distorts_with_small_pictures). also, "small" pdf files (or pdf files without explicit size settings), which would not be converted under the old mechanism, now get rendered to pngs. this commit affects a unit test: while svgs were previously unconditionally rendered to pngs, this now only happens on downscaling. this is intentional -- while a small version of an svg graphic is likely to be more compact when rendered (eg as a preview), a large version would not have that benefit, and why convert something that browsers basically can show and be inconsistend with how other images are handled. the new unit test simply makes the original svg larger to check for the same behaviros as before.
| * drop unittest workaround for new perlmagickchrysn2014-07-04
| | | | | | | | just install -extra to make it work
| * drop unittest workaround for perlmagickchrysn2014-07-04
| | | | | | | | this was actually http://bugs.debian.org/753770
| * make unittest work with all all three packages that provide perlmagickchrysn2014-07-04
| |
| * add unittests for imgchrysn2014-07-04
| | | | | | | | | | this focuses on the features introduced in http://ikiwiki.info/bugs/svg_and_pdf_conversion_fails/
* | inline: postform=no should take precedence over rootpage existingSimon McVittie2014-07-04
| | | | | | | | | | | | | | | | If someone has explicitly disabled the postform, it seems reasonable from a least-astonishment point of view for that to take precedence over rootpage, even though that makes rootpage useless. Also add a regression test; so far, this is all it tests.
* | fix test case ogg mime typeJoey Hess2014-06-13
|/ | | | Seems that a better mime type is detected now on Debian stable.
* Merge remote-tracking branch 'remotes/smcv/ready/template-syntax-test'Joey Hess2014-02-23
|\
| * template_syntax.t: include doc/templates/*.mdwn in testSimon McVittie2014-02-21
| | | | | | | | | | Previously, this test assigned the first glob to @templates, and evaluated the second for its (practically nonexistent) side-effects.
* | Merge remote-tracking branch 'intrigeri/fix_diffurl_vs._cgit'Joey Hess2014-02-23
|\ \
| * | Do not UTF8-escape "/" in Git's diffurl: cgit does not support this.intrigeri2013-12-31
| | |
* | | Merge remote-tracking branch 'anarcat/dev/syslog_utf8'Joey Hess2014-02-23
|\ \ \ | |_|/ |/| |
| * | don't edit config setting, but a temporary variable, complete and unbreak testsAntoine Beaupré2013-11-29
| | |
| * | failing test caseAntoine Beaupré2013-11-29
| | |
* | | avoid running this test if File:MimeInfo is not installedJoey Hess2014-01-25
| |/ |/| | | | | it's needed to get mime types in the feed
* | remove test for page state saved for disabled pluginJoey Hess2013-11-16
|/ | | | | | | | | | | | | | | | | My change did cause this state to be retained. I hope this is not a problem. Afaik, plugins test if they were disabled before by looking at the toplevel plugin state, not the per-page plugin state. So the only remaining problem might be a) A plugin is disabled but its state keeps being saved. Which is not ideal, perhaps, but the large speedup of my optimisation seems worth it. b) A plugin might have been enabled, be disabled, and get re-enabled, and see old state from before. I don't see how this would be different from the plugin seeing any other old state, though, so hopefully no breakage. My optmisation looks a little more risky, but I still hope I can keep it.
* Fix test suite to work with perl 5.18. Closes: #719969Joey Hess2013-08-30
|
* Genericize download link for more use cases.Amitai Schlair2013-06-26
|
* Merge branch 'master' into fancypodcastAmitai Schlair2013-05-12
|\
| * avoid running test if xml::twig is not installedJoey Hess2013-05-09
| |
* | Merge branch 'master' into fancypodcastAmitai Schlair2013-03-17
|\| | | | | | | | | Conflicts: doc/todo/fancypodcast.mdwn
| * permalink test: start by deleting t/tmpSimon McVittie2013-02-24
| | | | | | | | | | Otherwise, tests that don't end by deleting t/tmp (which is a useful change when debugging a failing test) would cause this one to fail.
| * map test: clean up after ourselvesSimon McVittie2013-02-24
| |
| * map test: print maps' source as commentsSimon McVittie2013-02-24
| |
| * extend test, some cases now failSimon McVittie2013-02-24
| |
| * Add a test for the map directiveSimon McVittie2013-02-24
| |
* | Un-copy-paste the fancy-podcast tests.Amitai Schlair2013-02-21
| |
* | Render fancy podcast enclosures.Amitai Schlair2013-02-20
| | | | | | | | | | | | | | | | | | | | | | Simple podcast feeds didn't have content tags and I made sure to keep it that way. This may be unnecessarily conservative. Changing the behavior to include empty content tags might be fine, but I don't want to think about it right now, I just want my tests to keep passing! The new fancy-podcast tests are copy-pasted-edited from the simple-podcast tests. These tests shall be refactored.
* | Make enclosures absolute (in feeds they have to be).Amitai Schlair2013-02-20
| |
* | When inlining HTML pages, render enclosures.Amitai Schlair2013-02-19
| |
* | Let tests determine whether feeds get made.Amitai Schlair2013-02-19
| |
* | Document that last enclosure wins.Amitai Schlair2013-02-19
| |
* | Make enclosure follow WikiLink LinkingRules.Amitai Schlair2013-02-19
| |
* | Rename some posts and fix wrong assumptions.Amitai Schlair2013-02-19
| |
* | Make [[!meta enclosure=foo.mp3]] "work" for HTML.Amitai Schlair2013-02-19
| |
* | Document that podcasts are text XOR enclosure.Amitai Schlair2013-02-19
| |
* | Wrap a long line.Amitai Schlair2013-02-19
| |
* | Add tests for existing podcast behavior.Amitai Schlair2013-02-19
|/
* Bump test count for previous.Amitai Schlair2013-02-02
|
* Fix diffurl links (cvsweb expects unescaped '/').Amitai Schlair2013-02-02
|
* Fix longstanding bug (chdir to nonexistent dirs).Amitai Schlair2013-01-27
| | | | | | | | | | | | | | | | | In test, set up the post-commit hook for more realism (and bugs!). To make wrappers work in test, set PERL5LIB, and allow the wrappee's path to be overridden. Meta-test that post-commit is really hooked up by verifying that content is getting generated in destdir. About the longstanding bug, which as far as I know was harmless: CVS can't operate outside a srcdir, so we're always setting $CWD. "local $CWD" restores the previous value when we go out of scope. Usually that's correct. But if we're removing the last file from a directory, the post-commit hook will exec in a working directory that's about to not exist (CVS will prune it). The fix: chdir() manually in cvs_runcvs(), so we can selectively not chdir() back.
* Merge branch 'master' into cvsAmitai Schlair2013-01-25
|\
| * If the title of a trail or trail-member changes, rebuild affected pagesSimon McVittie2013-01-02
| | | | | | | | | | | | | | | | If the title of a trail changes, each member of that trail must be rebuilt, for its prev/up/next box to reflect the new title. If the title of a member changes, its next and previous items (if any) must be rebuilt, for their prev/up/next boxes to reflect the new title.
| * Add more trail regression testsSimon McVittie2013-01-02
| | | | | | | | | | Some of these untested bits have in fact regressed, and as such, are marked as TODO.