Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Unified Diff: tools/grit/grit/format/html_inline_unittest.py

Issue 2598863002: Allow and better handle single quotes in GRIT's <include> and <if> (Closed)
Patch Set: more correcter quotes Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/grit/grit/format/html_inline.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/format/html_inline_unittest.py
diff --git a/tools/grit/grit/format/html_inline_unittest.py b/tools/grit/grit/format/html_inline_unittest.py
index 16674cfe237432ee3b8db55066381fdbe2da174b..c236f4f7483de356f6ff3bbe05baab63ba64d011 100755
--- a/tools/grit/grit/format/html_inline_unittest.py
+++ b/tools/grit/grit/format/html_inline_unittest.py
@@ -34,7 +34,7 @@ class HtmlInlineUnittest(unittest.TestCase):
href="really-long-long-long-long-long-test.css">
</head>
<body>
- <include src="test.html">
+ <include src='test.html'>
<include
src="really-long-long-long-long-long-test-file-omg-so-long.html">
<iron-icon src="[[icon]]"></iron-icon><!-- Should be ignored. -->
@@ -90,6 +90,9 @@ class HtmlInlineUnittest(unittest.TestCase):
<if expr="lang == 'fr'">
bonjour
</if>
+ <if expr='lang == "de"'>
+ hallo
+ </if>
</if>
</html>
''',
@@ -397,6 +400,8 @@ class HtmlInlineUnittest(unittest.TestCase):
>
</include>
<img src="img1.png">
+ <include src='single-double-quotes.html"></include>
Nico 2017/01/04 01:35:33 Does the file single-double-quotes.html exist? (no
Dan Beam 2017/01/04 01:40:59 no, neither of these files exist. if they're acci
+ <include src="double-single-quotes.html'></include>
</html>
''',
'style1.css': '''h1 {}''',
@@ -419,6 +424,8 @@ class HtmlInlineUnittest(unittest.TestCase):
<h2></h2>
<h2></h2>
<img src="data:image/png;base64,YWJj">
+ <include src='single-double-quotes.html"></include>
+ <include src="double-single-quotes.html'></include>
</html>
'''
« no previous file with comments | « tools/grit/grit/format/html_inline.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698