aboutsummaryrefslogtreecommitdiff
path: root/t
Commit message (Collapse)AuthorAge
* textile-double-escape-bug.t: tolerate any valid encodingSimon McVittie2015-01-06
| | | | | | | | | | Discount in current Debian unstable turns the IURI href into a URI by encoding the Unicode as UTF-8 and %-escaping each byte. That is valid, and matches Wikipedia's expectations, but was breaking this test for me. It would also be entirely valid (and lead to equivalent parsing) if the ö was represented as ö, ö or &#xf6 in the text and/or the href.
* Turn positive test for wrong behaviour into a TODO test for right behaviourSimon McVittie2015-01-06
| | | | | We don't want ikiwiki's tests to stop passing when Text::Textile is fixed.
* Document an annoying Text::Textile encoding bug.Amitai Schlair2014-12-22
|
* Add regression test for libdir/libdirsSimon McVittie2014-12-09
|
* Merge branch 'ready/html5'Simon McVittie2014-11-26
|\
| * We no longer have a test for DTD-valid XHTML 1.0, but at least check ↵Simon McVittie2014-10-16
| | | | | | | | | | | | | | | | | | well-formedness This means that people can do XSLT nonsense if they want to. The failures are currently marked TODO because not everything in the docwiki is in fact well-formed.
| * Remove now-redundant test-cases for a non-default html5 settingSimon McVittie2014-10-16
| |
| * Now that we're always using HTML5, <base href> can be relativeSimon McVittie2014-10-16
| |
| * Always produce HTML5 doctype and new attributes, but not new elementsSimon McVittie2014-10-16
| | | | | | | | | | | | | | | | | | | | | | | | | | According to caniuse.com, a significant fraction of Web users are still using Internet Explorer versions that do not support HTML5 sectioning elements. However, claiming we're XHTML 1.0 Strict means we can't use features invented in the last 12 years, even if they degrade gracefully in older browsers (like the role and placeholder attributes). This means our output is no longer valid according to any particular DTD. Real browsers and other non-validator user-agents have never cared about DTD compliance anyway, so I don't think this is a real loss.
* | Work around Debian #771047: use a non-blank SVG for the regression testSimon McVittie2014-11-26
|/ | | | | | | Inkscape loses the bounding box of a SVG with no content when it converts it to EPS, and ImageMagick does not have a special case for converting SVG to PNG with Inkscape in one step (which Inkscape can do); it prefers to convert SVG to EPS with Inkscape, then EPS to whatever.
* Extract test subs for each site. No change meant.Amitai Schlair2014-10-12
|
* Extract run_cgi(). No functional change intended.Amitai Schlair2014-10-12
|
* Extract check_generated_content(). Same output.Amitai Schlair2014-10-11
|
* Extract check_cgi_mode_bits(). No change intended.Amitai Schlair2014-10-10
|
* Extract thoroughly_rebuild(), a slight test change.Amitai Schlair2014-10-10
| | | | | | | I didn't try to parameterize when a test should fail when we can't remove ikiwiki.cgi because there already isn't one. (Hooray, natural language.) Instead, we stop worrying about it and always tolerate ENOENT.
* Extract write_setup_file(). No functional change.Amitai Schlair2014-10-10
| | | | Test output differs only by the line numbers of the TODO items.
* simplify IPC::Run check (same behavior)Amitai Schlair2014-10-06
|
* In html5 mode, generate a host- or protocol-relative <base> for the CGISimon McVittie2014-10-05
| | | | This increases the number of situations in which we do the right thing.
* Add reverse_proxy option which hard-codes cgiurl in CGI outputSimon McVittie2014-10-05
| | | | | This solves several people's issues with the CGI trying to be too clever when IkiWiki is placed behind a reverse-proxy.
* Avoid mixed content when cgiurl is https but url is notSimon McVittie2014-10-05
|
* Use protocol-relative URIs if cgiurl and url differ only by authority (hostname)Simon McVittie2014-10-05
|
* Fix a test-case that actually just repeated the previous one insteadSimon McVittie2014-10-05
|
* Force use of $config{url} as top URL in w3mmodeSimon McVittie2014-10-05
|
* relative URLs test: pass an appropriate PERL5LIB throughSimon McVittie2014-10-05
| | | | | We were previously using the system copy of IkiWiki, because the CGI resets its environment.
* add the beginnings of a test for CGI/static URL interactionsSimon McVittie2014-10-05
|
* Search $PATH for "validate", since the test does.Amitai Schlair2014-10-01
| | | | | "validate" is a very generic command name, and it validates against an old standard, so the value of this test is questionable.
* img test: skip SVG tests if unsupported by Image::MagickSimon McVittie2014-09-16
|
* Pass -templatedir to get this test passing again.Amitai Schlair2014-09-15
|
* Merge branch 'ready/templatebody'Simon McVittie2014-09-15
|\
| * Add templatebody plugin and directive, and enable it by defaultSimon McVittie2014-03-05
| | | | | | | | Also add a regression test for templatebody.
* | Merge branch 'ready/autoindex-more-often'Simon McVittie2014-09-15
|\ \
| * | Allow creation of transient index pages for directories outside srcdirSimon McVittie2014-07-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After this change autoindex creates index pages also for empty directories included in underlays, but only if it isn't going to commit them to the srcdir ($config{autoindex_commit} = 0). Inspired by a patch from Tuomas Jormola. Bug-Debian: http://bugs.debian.org/611068
| * | Add a regression test for autoindex_commit => 1Simon McVittie2014-07-04
| | |
| * | autoindex test: check what happens to files in transient/normal underlaysSimon McVittie2014-07-04
| | |
* | | 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
|\ \