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

Unified Diff: sky/tests/parser/whitespace.sky

Issue 867963006: Add the <t> element and ignore whitespace outside it. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Do it for a whole subtree. Created 5 years, 11 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 | « sky/tests/parser/voidtag-expected.txt ('k') | sky/tests/parser/whitespace-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/parser/whitespace.sky
diff --git a/sky/tests/parser/whitespace.sky b/sky/tests/parser/whitespace.sky
new file mode 100644
index 0000000000000000000000000000000000000000..8f56106a5edc586fb4df9b92b4ab72656debb538
--- /dev/null
+++ b/sky/tests/parser/whitespace.sky
@@ -0,0 +1,33 @@
+<sky>
+<import src="../resources/dump-as-markup.sky"></import>
+
+<t>
+ <span>
+ A
+ <div>
+ <span></span>
+
+ <!-- All whitespace in a subtree should be kept under <t>. -->
+
+
+ <span></span>
+ </div>
+ </span>
+
+
+ <!-- This whitespace should be preserved. -->
+
+ <span>B</span>
+</t>
+
+<div>
+ <span>
+ A
+ </span>
+
+ <!-- This whitespace should be ignored. -->
+
+ <span>B</span>
+</div>
+
+</sky>
« no previous file with comments | « sky/tests/parser/voidtag-expected.txt ('k') | sky/tests/parser/whitespace-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698