Index: tests/_regtest_outputs/test_page_outputs.test_dynamic.out |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/tests/_regtest_outputs/test_page_outputs.test_dynamic.out |
@@ -0,0 +1,266 @@ |
+### en/filter ### |
+foo |
+ |
+### en/get_page_url ### |
+ |
+global_canonical_url = http://localhost:5000/global |
+ |
+# 'filter' is default page name for the test website, so we check that the |
+# link would not include the page name itself. |
+filter_canonical_url = http://localhost:5000/ |
+### en/global ### |
+METHOD TEST PASSEDFalseTrueexists |
+### en/includer ### |
+<h1>Foobar</h1> |
+ |
+ |
+<p>This is an included example</p> |
+ |
+Variable from included piece: bar |
+### en/sitemap ### |
+ |
+ |
+ |
+<h1> Unfiltered </h1> |
+<ul> |
+ <li>title : includer </li> |
+ <li>title : translate-template </li> |
+ <li>title : sitemap </li> |
+</ul> |
+ |
+<h1> Filtered </h1> |
+<ul><li>title : sitemap </li> |
+</ul> |
+ |
+<h1> String Filter For Listy Option </h1> |
+<ul><li>title : sitemap </li> |
+</ul> |
+### en/translate-html ### |
+<html> |
+ <body> |
+Simple TS with default: Translate. |
+ |
+Same TS with no default: Translate. |
+ |
+TS with fixed text: Fixed text. |
+ |
+Nested translation: <a href="http://foo.com/">Foo</a> and <a href="http://baz.com/">Baz</a>. |
+ |
+Link resolving: <a href="/en/translate" hreflang="en">This page</a>. |
+ |
+Link to a non-translatable page: <a href="/en/sitemap" hreflang="en">Site map</a>. |
+ |
+Entity escaping: Drag&drop. |
+ |
+Entity escaping in links: <a href="http://foo.com/?a&b">Foo</a>. |
+ </body> |
+</html> |
+ |
+### en/translate-include ### |
+<h1>Translations from an include fragment</h1> |
+Simple TS with default: Translate. |
+ |
+Same TS with no default: Translate. |
+ |
+TS with fixed text: Fixed text. |
+ |
+Nested translation: <a href="http://foo.com/">Foo</a> and <a href="http://baz.com/">Baz</a>. |
+ |
+Link resolving: <a href="/en/translate" hreflang="en">This page</a>. |
+ |
+Link to a non-translatable page: <a href="/en/sitemap" hreflang="en">Site map</a>. |
+ |
+Entity escaping: Drag&drop. |
+ |
+Entity escaping in links: <a href="http://foo.com/?a&b">Foo</a>. |
+ |
+### en/translate-not-enough ### |
+<p>This page doesn't have enough translation in German so it shouldn't be generated.</p> |
+<ul> |
+<li>TS1 - this one has translation to German, others don't.</li> |
+<li>TS2.</li> |
+<li>TS3.</li> |
+<li>TS4.</li> |
+</ul> |
+### en/translate-partial ### |
+<p>This page only has half of translation in German, but enough to be generated.</p> |
+<ul> |
+<li>TS1.</li> |
+<li>TS2.</li> |
+</ul> |
+### en/translate-template ### |
+<h1>Translation strings are all in the template</h1> |
+ |
+Simple TS with default: Translate. |
+ |
+Same TS with no default: doesn't work in templates. |
+ |
+TS with fixed text: Fixed text. |
+ |
+Nested translation: <a href="http://foo.com/">Foo</a> and <a href="http://baz.com/">Baz</a>. |
+ |
+Link resolving: <a href="/en/translate" hreflang="en">This page</a>. |
+ |
+Entity escaping: Drag&drop. |
+ |
+Entity escaping in links: <a href="http://foo.com/?a&b">Foo</a>. |
+### en/translate-tmpl ### |
+<html> |
+ <body> |
+Simple TS with default: Translate. |
+ |
+Same TS with no default: Translate. |
+ |
+TS with fixed text: Fixed text. |
+ |
+Nested translation: <a href="http://foo.com/">Foo</a> and <a href="http://baz.com/">Baz</a>. |
+ |
+Link resolving: <a href="/en/translate" hreflang="en">This page</a>. |
+ |
+Entity escaping: Drag&drop. |
+ |
+Entity escaping in links: <a href="http://foo.com/?a&b">Foo</a>. |
+ </body> |
+</html> |
+### en/translate ### |
+<p>Simple TS with default: Translate.</p> |
+<p>Same TS with no default: Translate.</p> |
+<p>TS with fixed text: Fixed text.</p> |
+<p>Nested translation: <a href="http://foo.com/">Foo</a> and <a href="http://baz.com/">Baz</a>.</p> |
+<p>Link resolving: <a href="/en/translate" hreflang="en">This page</a>.</p> |
+<p>Link to a non-translatable page: <a href="/en/sitemap" hreflang="en">Site map</a>.</p> |
+<p>Entity escaping: Drag&drop.</p> |
+<p>Entity escaping in links: <a href="http://foo.com/?a&b">Foo</a>.</p> |
+### de/filter ### |
+foo |
+ |
+### de/get_page_url ### |
+ |
+global_canonical_url = http://localhost:5000/global |
+ |
+# 'filter' is default page name for the test website, so we check that the |
+# link would not include the page name itself. |
+filter_canonical_url = http://localhost:5000/ |
+### de/global ### |
+METHOD TEST PASSEDFalseTrueexists |
+### de/includer ### |
+<h1>Foobar</h1> |
+ |
+ |
+<p>This is an included example</p> |
+ |
+Variable from included piece: bar |
+### de/sitemap ### |
+ |
+ |
+ |
+<h1> Unfiltered </h1> |
+<ul> |
+ <li>title : includer </li> |
+ <li>title : translate-template </li> |
+ <li>title : sitemap </li> |
+</ul> |
+ |
+<h1> Filtered </h1> |
+<ul><li>title : sitemap </li> |
+</ul> |
+ |
+<h1> String Filter For Listy Option </h1> |
+<ul><li>title : sitemap </li> |
+</ul> |
+### de/translate-html ### |
+<html> |
+ <body> |
+Simple TS with default: Übersetzen. |
+ |
+Same TS with no default: Übersetzen. |
+ |
+TS with fixed text: Fester text. |
+ |
+Nested translation: <a href="http://bar.de/">Bar</a> und <a href="http://baz.de/">Baz</a>. |
+ |
+Link resolving: <a href="/de/translate" hreflang="de">Diese Seite</a>. |
+ |
+Link to a non-translatable page: <a href="/en/sitemap" hreflang="en">Seitenverzeichnis</a>. |
+ |
+Entity escaping: Draggen&droppen. |
+ |
+Entity escaping in links: <a href="http://foo.com/?a&b">Bar</a>. |
+ </body> |
+</html> |
+ |
+### de/translate-include ### |
+<h1>Translations from an include fragment</h1> |
+Simple TS with default: Übersetzen. |
+ |
+Same TS with no default: Übersetzen. |
+ |
+TS with fixed text: Fester text. |
+ |
+Nested translation: <a href="http://bar.de/">Bar</a> und <a href="http://baz.de/">Baz</a>. |
+ |
+Link resolving: <a href="/de/translate" hreflang="de">Diese Seite</a>. |
+ |
+Link to a non-translatable page: <a href="/en/sitemap" hreflang="en">Seitenverzeichnis</a>. |
+ |
+Entity escaping: Draggen&droppen. |
+ |
+Entity escaping in links: <a href="http://foo.com/?a&b">Bar</a>. |
+ |
+### de/translate-not-enough ### |
+<p>This page doesn't have enough translation in German so it shouldn't be generated.</p> |
+<ul> |
+<li>Übersetzen - this one has translation to German, others don't.</li> |
+<li>TS2.</li> |
+<li>TS3.</li> |
+<li>TS4.</li> |
+</ul> |
+### de/translate-partial ### |
+<p>This page only has half of translation in German, but enough to be generated.</p> |
+<ul> |
+<li>Übersetzen.</li> |
+<li>TS2.</li> |
+</ul> |
+### de/translate-template ### |
+<h1>Translation strings are all in the template</h1> |
+ |
+Simple TS with default: Übersetzen. |
+ |
+Same TS with no default: doesn't work in templates. |
+ |
+TS with fixed text: Fester text. |
+ |
+Nested translation: <a href="http://bar.de/">Bar</a> und <a href="http://baz.de/">Baz</a>. |
+ |
+Link resolving: <a href="/de/translate" hreflang="de">Diese Seite</a>. |
+ |
+Entity escaping: Draggen&droppen. |
+ |
+Entity escaping in links: <a href="http://foo.com/?a&b">Bar</a>. |
+### de/translate-tmpl ### |
+<html> |
+ <body> |
+Simple TS with default: Übersetzen. |
+ |
+Same TS with no default: Übersetzen. |
+ |
+TS with fixed text: Fester text. |
+ |
+Nested translation: <a href="http://bar.de/">Bar</a> und <a href="http://baz.de/">Baz</a>. |
+ |
+Link resolving: <a href="/de/translate" hreflang="de">Diese Seite</a>. |
+ |
+Entity escaping: Draggen&droppen. |
+ |
+Entity escaping in links: <a href="http://foo.com/?a&b">Bar</a>. |
+ </body> |
+</html> |
+### de/translate ### |
+<p>Simple TS with default: Übersetzen.</p> |
+<p>Same TS with no default: Übersetzen.</p> |
+<p>TS with fixed text: Fester text.</p> |
+<p>Nested translation: <a href="http://bar.de/">Bar</a> und <a href="http://baz.de/">Baz</a>.</p> |
+<p>Link resolving: <a href="/de/translate" hreflang="de">Diese Seite</a>.</p> |
+<p>Link to a non-translatable page: <a href="/en/sitemap" hreflang="en">Seitenverzeichnis</a>.</p> |
+<p>Entity escaping: Draggen&droppen.</p> |
+<p>Entity escaping in links: <a href="http://foo.com/?a&b">Bar</a>.</p> |