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

Unified Diff: lib/src/prism/tests/languages/yaml/datetime_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/yaml/datetime_feature.test
diff --git a/lib/src/prism/tests/languages/yaml/datetime_feature.test b/lib/src/prism/tests/languages/yaml/datetime_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..645680d9f61d64c42d636d04f7adb8988b05f10f
--- /dev/null
+++ b/lib/src/prism/tests/languages/yaml/datetime_feature.test
@@ -0,0 +1,31 @@
+---
+canonical: 2001-12-15T02:59:43.1Z
+iso8601: 2001-12-14t21:59:43.10-05:00
+spaced: 2001-12-14 21:59:43.10 -5
+date: 2002-12-14
+times:
+ - 10:53
+ - 10:53:20.53
+
+----------------------------------------------------
+
+[
+ ["punctuation", "---"],
+ ["key", "canonical"], ["punctuation", ":"],
+ ["datetime", "2001-12-15T02:59:43.1Z"],
+ ["key", "iso8601"], ["punctuation", ":"],
+ ["datetime", "2001-12-14t21:59:43.10-05:00"],
+ ["key", "spaced"], ["punctuation", ":"],
+ ["datetime", "2001-12-14 21:59:43.10 -5"],
+ ["key", "date"], ["punctuation", ":"],
+ ["datetime", "2002-12-14"],
+ ["key", "times"], ["punctuation", ":"],
+ ["punctuation", "-"],
+ ["datetime", "10:53"],
+ ["punctuation", "-"],
+ ["datetime", "10:53:20.53"]
+]
+
+----------------------------------------------------
+
+Checks for dates, times and datetimes.
« no previous file with comments | « lib/src/prism/tests/languages/yaml/comment_feature.test ('k') | lib/src/prism/tests/languages/yaml/directive_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698