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

Unified Diff: lib/src/prism/tests/languages/dart/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/dart/keyword_feature.test
diff --git a/lib/src/prism/tests/languages/dart/keyword_feature.test b/lib/src/prism/tests/languages/dart/keyword_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..a5e3c6c2da8c0e13d7925fcdba7f17031005d989
--- /dev/null
+++ b/lib/src/prism/tests/languages/dart/keyword_feature.test
@@ -0,0 +1,49 @@
+async* sync* yield*
+abstract assert async await
+break case catch
+class;
+const
+continue default deferred
+do dynamic else enum
+export external
+extends;
+factory final finally for
+get if
+implements;
+import
+in library
+new;
+null
+operator part rethrow return
+set static super switch this
+throw try typedef var
+void while with yield
+
+----------------------------------------------------
+
+[
+ ["keyword", "async*"], ["keyword", "sync*"], ["keyword", "yield*"],
+ ["keyword", "abstract"], ["keyword", "assert"], ["keyword", "async"], ["keyword", "await"],
+ ["keyword", "break"], ["keyword", "case"], ["keyword", "catch"],
+ ["keyword", "class"], ["punctuation", ";"],
+ ["keyword", "const"],
+ ["keyword", "continue"], ["keyword", "default"], ["keyword", "deferred"],
+ ["keyword", "do"], ["keyword", "dynamic"], ["keyword", "else"], ["keyword", "enum"],
+ ["keyword", "export"], ["keyword", "external"],
+ ["keyword", "extends"], ["punctuation", ";"],
+ ["keyword", "factory"], ["keyword", "final"], ["keyword", "finally"], ["keyword", "for"],
+ ["keyword", "get"], ["keyword", "if"],
+ ["keyword", "implements"], ["punctuation", ";"],
+ ["keyword", "import"],
+ ["keyword", "in"], ["keyword", "library"],
+ ["keyword", "new"], ["punctuation", ";"],
+ ["keyword", "null"],
+ ["keyword", "operator"], ["keyword", "part"], ["keyword", "rethrow"], ["keyword", "return"],
+ ["keyword", "set"], ["keyword", "static"], ["keyword", "super"], ["keyword", "switch"], ["keyword", "this"],
+ ["keyword", "throw"], ["keyword", "try"], ["keyword", "typedef"], ["keyword", "var"],
+ ["keyword", "void"], ["keyword", "while"], ["keyword", "with"], ["keyword", "yield"]
+]
+
+----------------------------------------------------
+
+Checks for all keywords.
« no previous file with comments | « lib/src/prism/tests/languages/d/token-string_feature.test ('k') | lib/src/prism/tests/languages/dart/metadata_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698