Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tests/_regtest_outputs/test_page_outputs.test_dynamic.out

Issue 29755806: Noissue - convert test_page_outputs to pytest-regtest (Closed)
Patch Set: Combine page outputs Created April 23, 2018, 8:55 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/_regtest_outputs/test_page_outputs.test_static[None].out » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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&amp;drop.
+
+Entity escaping in links: <a href="http://foo.com/?a&amp;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&amp;drop.
+
+Entity escaping in links: <a href="http://foo.com/?a&amp;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&amp;drop.
+
+Entity escaping in links: <a href="http://foo.com/?a&amp;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&amp;drop.
+
+Entity escaping in links: <a href="http://foo.com/?a&amp;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&amp;drop.</p>
+<p>Entity escaping in links: <a href="http://foo.com/?a&amp;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&amp;droppen.
+
+Entity escaping in links: <a href="http://foo.com/?a&amp;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&amp;droppen.
+
+Entity escaping in links: <a href="http://foo.com/?a&amp;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&amp;droppen.
+
+Entity escaping in links: <a href="http://foo.com/?a&amp;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&amp;droppen.
+
+Entity escaping in links: <a href="http://foo.com/?a&amp;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&amp;droppen.</p>
+<p>Entity escaping in links: <a href="http://foo.com/?a&amp;b">Bar</a>.</p>
« no previous file with comments | « no previous file | tests/_regtest_outputs/test_page_outputs.test_static[None].out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld