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

Unified Diff: lib/src/prism/tests/languages/stylus/keyword_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/stylus/keyword_feature.test
diff --git a/lib/src/prism/tests/languages/stylus/keyword_feature.test b/lib/src/prism/tests/languages/stylus/keyword_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..51827751913dde1033fb478907d712c5dbf0f75d
--- /dev/null
+++ b/lib/src/prism/tests/languages/stylus/keyword_feature.test
@@ -0,0 +1,44 @@
+for i in 1..5
+if a == 3
+z-index: 1 unless @z-index;
+return pair[1] if pair[0] == key for pair in hash
+
+----------------------------------------------------
+
+[
+ ["statement", [
+ ["keyword", "for"],
+ " i ",
+ ["operator", "in"],
+ ["number", "1"],
+ ["operator", ".."],
+ ["number", "5"]
+ ]],
+ ["statement", [
+ ["keyword", "if"],
+ " a ",
+ ["operator", "=="],
+ ["number", "3"]
+ ]],
+ ["property-declaration", [
+ ["property", ["z-index"]],
+ ["punctuation", ":"],
+ ["number", "1"],
+ ["keyword", "unless"],
+ ["keyword", "@z-index"],
+ ["punctuation", ";"]
+ ]],
+ ["statement", [
+ ["keyword", "return"], " pair",
+ ["punctuation", "["], ["number", "1"], ["punctuation", "]"],
+ ["keyword", "if"], " pair",
+ ["punctuation", "["], ["number", "0"], ["punctuation", "]"],
+ ["operator", "=="], " key ",
+ ["keyword", "for"], " pair ",
+ ["operator", "in"], " hash"
+ ]]
+]
+
+----------------------------------------------------
+
+Checks for statements and keywords.
« no previous file with comments | « lib/src/prism/tests/languages/stylus/important_feature.test ('k') | lib/src/prism/tests/languages/stylus/number_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698