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

Unified Diff: lib/src/prism/tests/languages/textile/block-tag_feature.test

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 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
Index: lib/src/prism/tests/languages/textile/block-tag_feature.test
diff --git a/lib/src/prism/tests/languages/textile/block-tag_feature.test b/lib/src/prism/tests/languages/textile/block-tag_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..4598b14ea0d6189cb596cac7647531d18f2a3a80
--- /dev/null
+++ b/lib/src/prism/tests/languages/textile/block-tag_feature.test
@@ -0,0 +1,131 @@
+h1. Header 1
+
+h2>. Header 2
+
+bq. A block quotation
+
+p<. Foo
+
+p=. Bar
+
+p<>. Baz
+
+p(. Foobar
+baz
+
+p))). Foo
+
+h1(foo). Foo
+
+h2[en]. Bar
+
+h3{color: red}. Baz
+
+h4[fr]{text-decoration:underline;}(#bar). Foobar
+
+----------------------------------------------------
+
+[
+ ["phrase", [
+ ["block-tag", [["tag", "h1"], ["punctuation", "."]]],
+ " Header 1"
+ ]],
+ ["phrase", [
+ ["block-tag", [
+ ["tag", "h2"],
+ ["modifier", [["punctuation", ">"]]],
+ ["punctuation", "."]
+ ]],
+ " Header 2"
+ ]],
+ ["phrase", [
+ ["block-tag", [["tag", "bq"], ["punctuation", "."]]],
+ " A block quotation"
+ ]],
+ ["phrase", [
+ ["block-tag", [
+ ["tag", "p"],
+ ["modifier", [["punctuation", "<"]]],
+ ["punctuation", "."]
+ ]],
+ " Foo"
+ ]],
+ ["phrase", [
+ ["block-tag", [
+ ["tag", "p"],
+ ["modifier", [["punctuation", "="]]],
+ ["punctuation", "."]
+ ]],
+ " Bar"
+ ]],
+ ["phrase", [
+ ["block-tag", [
+ ["tag", "p"],
+ ["modifier", [["punctuation", "<"], ["punctuation", ">"]]],
+ ["punctuation", "."]
+ ]],
+ " Baz"
+ ]],
+ ["phrase", [
+ ["block-tag", [
+ ["tag", "p"],
+ ["modifier", [["punctuation", "("]]],
+ ["punctuation", "."]
+ ]],
+ " Foobar\r\nbaz"
+ ]],
+ ["phrase", [
+ ["block-tag", [
+ ["tag", "p"],
+ ["modifier", [["punctuation", ")"], ["punctuation", ")"], ["punctuation", ")"]]],
+ ["punctuation", "."]
+ ]],
+ " Foo"
+ ]],
+ ["phrase", [
+ ["block-tag", [
+ ["tag", "h1"],
+ ["modifier", [
+ ["punctuation", "("], ["class-id", "foo"], ["punctuation", ")"]
+ ]],
+ ["punctuation", "."]
+ ]],
+ " Foo"
+ ]],
+ ["phrase", [
+ ["block-tag", [
+ ["tag", "h2"],
+ ["modifier", [
+ ["punctuation", "["], ["lang", "en"], ["punctuation", "]"]
+ ]],
+ ["punctuation", "."]
+ ]],
+ " Bar"
+ ]],
+ ["phrase", [
+ ["block-tag", [
+ ["tag", "h3"],
+ ["modifier", [
+ ["css", ["{color: red}"]]
+ ]],
+ ["punctuation", "."]
+ ]],
+ " Baz"
+ ]],
+ ["phrase", [
+ ["block-tag", [
+ ["tag", "h4"],
+ ["modifier", [
+ ["punctuation", "["], ["lang", "fr"], ["punctuation", "]"],
+ ["css", ["{text-decoration:underline;}"]],
+ ["punctuation", "("], ["class-id", "#bar"], ["punctuation", ")"]
+ ]],
+ ["punctuation", "."]
+ ]],
+ " Foobar"
+ ]]
+]
+
+----------------------------------------------------
+
+Checks for tags at the beginning of a block and alignment modifiers.

Powered by Google App Engine
This is Rietveld 408576698