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

Unified Diff: lib/src/prism/tests/languages/docker/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/docker/keyword_feature.test
diff --git a/lib/src/prism/tests/languages/docker/keyword_feature.test b/lib/src/prism/tests/languages/docker/keyword_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..8b39af93553b9fd7f7c651da6f6dca9347593d12
--- /dev/null
+++ b/lib/src/prism/tests/languages/docker/keyword_feature.test
@@ -0,0 +1,37 @@
+ONBUILD ADD . /app/src
+FROM ubuntu
+MAINTAINER SvenDowideit@home.org.au
+RUN cd /tmp
+EXPOSE 5900
+ENV myName John Doe
+COPY hom* /mydir/
+VOLUME /myvol
+USER daemon
+WORKDIR /a
+CMD echo "foo"
+LABEL version="1.0"
+ENTRYPOINT ["top", "-b"]
+
+----------------------------------------------------
+
+[
+ ["keyword", "ONBUILD"], ["keyword", "ADD"], " . /app/src\r\n",
+ ["keyword", "FROM"], " ubuntu\r\n",
+ ["keyword", "MAINTAINER"], " SvenDowideit@home.org.au\r\n",
+ ["keyword", "RUN"], " cd /tmp\r\n",
+ ["keyword", "EXPOSE"], " 5900\r\n",
+ ["keyword", "ENV"], " myName John Doe\r\n",
+ ["keyword", "COPY"], " hom* /mydir/\r\n",
+ ["keyword", "VOLUME"], " /myvol\r\n",
+ ["keyword", "USER"], " daemon\r\n",
+ ["keyword", "WORKDIR"], " /a\r\n",
+ ["keyword", "CMD"], " echo ", ["string", "\"foo\""],
+ ["keyword", "LABEL"], " version=", ["string", "\"1.0\""],
+ ["keyword", "ENTRYPOINT"],
+ ["punctuation", "["], ["string", "\"top\""], ["punctuation", ","],
+ ["string", "\"-b\""], ["punctuation", "]"]
+]
+
+----------------------------------------------------
+
+Checks for keywords.
« no previous file with comments | « lib/src/prism/tests/languages/docker/comment_feature.test ('k') | lib/src/prism/tests/languages/docker/string_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698