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/rest/command-line-option_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/rest/command-line-option_feature.test
diff --git a/lib/src/prism/tests/languages/rest/command-line-option_feature.test b/lib/src/prism/tests/languages/rest/command-line-option_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..9394b0d38e8fe6f5b5c50c763536c8edee9f8579
--- /dev/null
+++ b/lib/src/prism/tests/languages/rest/command-line-option_feature.test
@@ -0,0 +1,37 @@
+-a Simple option
+-b
+ Simple option on next line
+--very-long-option Long option
++f Option using +
+-f FILE Option with value 1
+--file=FILE Option with value 2
+-2, --two Two options in a row.
+-f FILE, --file=FILE Two options with values in a row.
+/V A VMS/DOS-style option.
+
+----------------------------------------------------
+
+[
+ ["command-line-option", "-a"],
+ " Simple option\r\n",
+ ["command-line-option", "-b"],
+ "\r\n Simple option on next line\r\n",
+ ["command-line-option", "--very-long-option"],
+ " Long option\r\n",
+ ["command-line-option", "+f"],
+ " Option using +\r\n",
+ ["command-line-option", "-f FILE"],
+ " Option with value 1\r\n",
+ ["command-line-option", "--file=FILE"],
+ " Option with value 2\r\n",
+ ["command-line-option", "-2, --two"],
+ " Two options in a row.\r\n",
+ ["command-line-option", "-f FILE, --file=FILE"],
+ " Two options with values in a row.\r\n",
+ ["command-line-option", "/V"],
+ " A VMS/DOS-style option."
+]
+
+----------------------------------------------------
+
+Checks for command line options.
« no previous file with comments | « lib/src/prism/tests/languages/r/string_feature.test ('k') | lib/src/prism/tests/languages/rest/comment_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698