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

Unified Diff: lib/src/prism/tests/languages/javascript/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/javascript/keyword_feature.test
diff --git a/lib/src/prism/tests/languages/javascript/keyword_feature.test b/lib/src/prism/tests/languages/javascript/keyword_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..13f7bf7136b4caa3101860bef65695607d2c5af2
--- /dev/null
+++ b/lib/src/prism/tests/languages/javascript/keyword_feature.test
@@ -0,0 +1,72 @@
+as; async; await; break; case;
+catch; class; const; continue; debugger;
+default; delete; do; else; enum;
+export; extends; false; finally; for;
+from; function; get; if; implements;
+import; in; instanceof; interface; let;
+new; null; of; package; private;
+protected; public; return; set; static;
+super; switch; this; throw; true;
+try; typeof; var; void; while;
+with; yield;
+
+----------------------------------------------------
+
+[
+ ["keyword", "as"], ["punctuation", ";"],
+ ["keyword", "async"], ["punctuation", ";"],
+ ["keyword", "await"], ["punctuation", ";"],
+ ["keyword", "break"], ["punctuation", ";"],
+ ["keyword", "case"], ["punctuation", ";"],
+ ["keyword", "catch"], ["punctuation", ";"],
+ ["keyword", "class"], ["punctuation", ";"],
+ ["keyword", "const"], ["punctuation", ";"],
+ ["keyword", "continue"], ["punctuation", ";"],
+ ["keyword", "debugger"], ["punctuation", ";"],
+ ["keyword", "default"], ["punctuation", ";"],
+ ["keyword", "delete"], ["punctuation", ";"],
+ ["keyword", "do"], ["punctuation", ";"],
+ ["keyword", "else"], ["punctuation", ";"],
+ ["keyword", "enum"], ["punctuation", ";"],
+ ["keyword", "export"], ["punctuation", ";"],
+ ["keyword", "extends"], ["punctuation", ";"],
+ ["keyword", "false"], ["punctuation", ";"],
+ ["keyword", "finally"], ["punctuation", ";"],
+ ["keyword", "for"], ["punctuation", ";"],
+ ["keyword", "from"], ["punctuation", ";"],
+ ["keyword", "function"], ["punctuation", ";"],
+ ["keyword", "get"], ["punctuation", ";"],
+ ["keyword", "if"], ["punctuation", ";"],
+ ["keyword", "implements"], ["punctuation", ";"],
+ ["keyword", "import"], ["punctuation", ";"],
+ ["keyword", "in"], ["punctuation", ";"],
+ ["keyword", "instanceof"], ["punctuation", ";"],
+ ["keyword", "interface"], ["punctuation", ";"],
+ ["keyword", "let"], ["punctuation", ";"],
+ ["keyword", "new"], ["punctuation", ";"],
+ ["keyword", "null"], ["punctuation", ";"],
+ ["keyword", "of"], ["punctuation", ";"],
+ ["keyword", "package"], ["punctuation", ";"],
+ ["keyword", "private"], ["punctuation", ";"],
+ ["keyword", "protected"], ["punctuation", ";"],
+ ["keyword", "public"], ["punctuation", ";"],
+ ["keyword", "return"], ["punctuation", ";"],
+ ["keyword", "set"], ["punctuation", ";"],
+ ["keyword", "static"], ["punctuation", ";"],
+ ["keyword", "super"], ["punctuation", ";"],
+ ["keyword", "switch"], ["punctuation", ";"],
+ ["keyword", "this"], ["punctuation", ";"],
+ ["keyword", "throw"], ["punctuation", ";"],
+ ["keyword", "true"], ["punctuation", ";"],
+ ["keyword", "try"], ["punctuation", ";"],
+ ["keyword", "typeof"], ["punctuation", ";"],
+ ["keyword", "var"], ["punctuation", ";"],
+ ["keyword", "void"], ["punctuation", ";"],
+ ["keyword", "while"], ["punctuation", ";"],
+ ["keyword", "with"], ["punctuation", ";"],
+ ["keyword", "yield"], ["punctuation", ";"]
+]
+
+----------------------------------------------------
+
+Checks for all keywords.

Powered by Google App Engine
This is Rietveld 408576698