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

Unified Diff: tests/expected_output/relative/de/rel_path

Issue 29947567: Issue 5333 - Ensure links in metadata and in most tags can be made relative (Closed) Base URL: https://hg.adblockplus.org/cms/
Patch Set: Combine regex in converters.py Created Jan. 7, 2019, 10:23 p.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 | « cms/converters.py ('k') | tests/expected_output/relative/en/rel_path » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/expected_output/relative/de/rel_path
===================================================================
--- a/tests/expected_output/relative/de/rel_path
+++ b/tests/expected_output/relative/de/rel_path
@@ -1,20 +1,34 @@
+<!DOCTYPE html>
<html>
+ <head>
+
+ <title>Page Title</title>
+ <link rel="stylesheet" href="../dist/css/main.min.css">
+ <base href="https://www.example.com/news/index.html">
+ <script src="../scripts/myscript.js"></script>
+ </head>
+
<body>
-Simple TS with default: Übersetzen.
-Same TS with no default: Übersetzen.
-Nested translation: <a href="http://bar.de/">Bar</a> und <a href="http://baz.de/">Baz</a>.
-Link resolving: <a href="translate" hreflang="de">Diese Seite</a>.
-Link to a non-translatable page: <a href="../en/sitemap" hreflang="en">Seitenverzeichnis</a>.
-Entity escaping in links: <a href="http://foo.com/?a&amp;b">Bar</a>.
-Image link: <img src="../img/icon"></img>
-Link to external source: <a href="http://bar.de/">Bar</a>
-Link to self: <a href="rel_path" hreflang="de">
-Link to self with extension: <a href="rel_path.html" hreflang="de">
-Relative link to local page: <a href="../en/sitemap">
-Absolute link to local page: <a href="../en/sitemap">
-Relative link to different locale: <a href="../de/sitemap">
-Absolute link to diferent locale: <a href="sitemap">
-Relative link to page in subfolder: <a href="../foo/bar">
-Absolute link to page in subfolder: <a href="../foo/bar">
+ Simple TS with default: Übersetzen.
+ Same TS with no default: Übersetzen.
+ Nested translation: <a href="http://bar.de/">Bar</a> und <a href="http://baz.de/">Baz</a>.
+ Link resolving: <a href="translate" hreflang="de">Diese Seite</a>.
+ Link to a non-translatable page: <a href="../en/sitemap" hreflang="en">Seitenverzeichnis</a>.
+ Entity escaping in links: <a href="http://foo.com/?a&amp;b">Bar</a>.
+ Image link: <img src="../img/icon"></img>
+ Iframe link: <iframe src="../default.asp"></iframe>
+ Script link: <script src="myscripts.js"></script>
+ Input link: <input type="image" src="../img/submit.gif" alt="Submit">
+ Link to external source: <a href="http://bar.de/">Bar</a>
+ Link to self: <a href="rel_path" hreflang="de">
+ Link to self with extension: <a href="rel_path.html" hreflang="de">
+ Relative link to local page: <a href="../en/sitemap">
+ Absolute link to local page: <a href="../en/sitemap">
+ Relative link to different locale: <a href="../de/sitemap">
+ Absolute link to diferent locale: <a href="sitemap">
+ Relative link to page in subfolder: <a href="../foo/bar">
+ Absolute link to page in subfolder: <a href="../foo/bar">
+ Resource URL: <link rel="stylesheet" href="../dist/css/main.min.css">
</body>
+
</html>
« no previous file with comments | « cms/converters.py ('k') | tests/expected_output/relative/en/rel_path » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld