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

Unified Diff: lib/src/prism/tests/languages/jade/flow-control_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/jade/flow-control_feature.test
diff --git a/lib/src/prism/tests/languages/jade/flow-control_feature.test b/lib/src/prism/tests/languages/jade/flow-control_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..2b68ddf8dc5aa2ff742d24a4eb7f52c952ff8ebe
--- /dev/null
+++ b/lib/src/prism/tests/languages/jade/flow-control_feature.test
@@ -0,0 +1,75 @@
+each val, index in [1,2,3]
+
+if foo
+else if bar
+else
+
+unless foo
+
+while n < 4
+
+case foo
+ when "bar"
+ default
+
+----------------------------------------------------
+
+[
+ ["flow-control", [
+ ["each", [
+ ["keyword", "each"],
+ " val",
+ ["punctuation", ","],
+ " index ",
+ ["keyword", "in"]
+ ]],
+ ["punctuation", "["],
+ ["number", "1"],
+ ["punctuation", ","],
+ ["number", "2"],
+ ["punctuation", ","],
+ ["number", "3"],
+ ["punctuation", "]"]
+ ]],
+
+ ["flow-control", [
+ ["branch", "if"],
+ " foo"
+ ]],
+ ["flow-control", [
+ ["branch", "else"],
+ ["keyword", "if"],
+ " bar"
+ ]],
+ ["flow-control", [
+ ["branch", "else"]
+ ]],
+
+ ["flow-control", [
+ ["branch", "unless"],
+ " foo"
+ ]],
+
+ ["flow-control", [
+ ["branch", "while"],
+ " n ",
+ ["operator", "<"],
+ ["number", "4"]
+ ]],
+
+ ["flow-control", [
+ ["branch", "case"],
+ " foo"
+ ]],
+ ["flow-control", [
+ ["branch", "when"],
+ ["string", "\"bar\""]
+ ]],
+ ["flow-control", [
+ ["branch", "default"]
+ ]]
+]
+
+----------------------------------------------------
+
+Checks for all flow-control structures.
« no previous file with comments | « lib/src/prism/tests/languages/jade/doctype_feature.test ('k') | lib/src/prism/tests/languages/jade/keyword_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698