Commit 94c349ea00178f1d20a2a3703b460a931b0bbf58

Golmote 2015-08-19T00:23:28

Add tests for ActionScript

diff --git a/tests/languages/actionscript/keyword_feature.test b/tests/languages/actionscript/keyword_feature.test
new file mode 100644
index 0000000..c41a852
--- /dev/null
+++ b/tests/languages/actionscript/keyword_feature.test
@@ -0,0 +1,71 @@
+as; break; case; catch; class;
+const; default; delete; do; else;
+extends; finally; for; function; if;
+implements; import; in; instanceof; interface;
+internal; is; native; new; null;
+package; private; protected; public; return;
+super; switch; this; throw; try;
+typeof; use; var; void; while;
+with; dynamic; each; final; get;
+include; namespace; native; override; set;
+static;
+
+----------------------------------------------------
+
+[
+	["keyword", "as"], ["punctuation", ";"],
+	["keyword", "break"], ["punctuation", ";"],
+	["keyword", "case"], ["punctuation", ";"],
+	["keyword", "catch"], ["punctuation", ";"],
+	["keyword", "class"], ["punctuation", ";"],
+	["keyword", "const"], ["punctuation", ";"],
+	["keyword", "default"], ["punctuation", ";"],
+	["keyword", "delete"], ["punctuation", ";"],
+	["keyword", "do"], ["punctuation", ";"],
+	["keyword", "else"], ["punctuation", ";"],
+	["keyword", "extends"], ["punctuation", ";"],
+	["keyword", "finally"], ["punctuation", ";"],
+	["keyword", "for"], ["punctuation", ";"],
+	["keyword", "function"], ["punctuation", ";"],
+	["keyword", "if"], ["punctuation", ";"],
+	["keyword", "implements"], ["punctuation", ";"],
+	["keyword", "import"], ["punctuation", ";"],
+	["keyword", "in"], ["punctuation", ";"],
+	["keyword", "instanceof"], ["punctuation", ";"],
+	["keyword", "interface"], ["punctuation", ";"],
+	["keyword", "internal"], ["punctuation", ";"],
+	["keyword", "is"], ["punctuation", ";"],
+	["keyword", "native"], ["punctuation", ";"],
+	["keyword", "new"], ["punctuation", ";"],
+	["keyword", "null"], ["punctuation", ";"],
+	["keyword", "package"], ["punctuation", ";"],
+	["keyword", "private"], ["punctuation", ";"],
+	["keyword", "protected"], ["punctuation", ";"],
+	["keyword", "public"], ["punctuation", ";"],
+	["keyword", "return"], ["punctuation", ";"],
+	["keyword", "super"], ["punctuation", ";"],
+	["keyword", "switch"], ["punctuation", ";"],
+	["keyword", "this"], ["punctuation", ";"],
+	["keyword", "throw"], ["punctuation", ";"],
+	["keyword", "try"], ["punctuation", ";"],
+	["keyword", "typeof"], ["punctuation", ";"],
+	["keyword", "use"], ["punctuation", ";"],
+	["keyword", "var"], ["punctuation", ";"],
+	["keyword", "void"], ["punctuation", ";"],
+	["keyword", "while"], ["punctuation", ";"],
+	["keyword", "with"], ["punctuation", ";"],
+	["keyword", "dynamic"], ["punctuation", ";"],
+	["keyword", "each"], ["punctuation", ";"],
+	["keyword", "final"], ["punctuation", ";"],
+	["keyword", "get"], ["punctuation", ";"],
+	["keyword", "include"], ["punctuation", ";"],
+	["keyword", "namespace"], ["punctuation", ";"],
+	["keyword", "native"], ["punctuation", ";"],
+	["keyword", "override"], ["punctuation", ";"],
+	["keyword", "set"], ["punctuation", ";"],
+	["keyword", "static"], ["punctuation", ";"]
+]
+
+----------------------------------------------------
+
+Checks for all keywords.
\ No newline at end of file
diff --git a/tests/languages/actionscript/operator_feature.test b/tests/languages/actionscript/operator_feature.test
new file mode 100644
index 0000000..14c007c
--- /dev/null
+++ b/tests/languages/actionscript/operator_feature.test
@@ -0,0 +1,29 @@
++ - * / % ^
++= -= *= /= %= ^=
+& && | ||
+&= &&= |= ||=
+< << > >> >>>
+<= <<= >= >>= >>>=
+! != = ==
+!== ===
+~ ? @
+++ --
+
+----------------------------------------------------
+
+[
+	["operator", "+"], ["operator", "-"], ["operator", "*"], ["operator", "/"], ["operator", "%"], ["operator", "^"],
+	["operator", "+="], ["operator", "-="], ["operator", "*="], ["operator", "/="], ["operator", "%="], ["operator", "^="],
+	["operator", "&"], ["operator", "&&"], ["operator", "|"], ["operator", "||"],
+	["operator", "&="], ["operator", "&&="], ["operator", "|="], ["operator", "||="],
+	["operator", "<"], ["operator", "<<"], ["operator", ">"], ["operator", ">>"], ["operator", ">>>"],
+	["operator", "<="], ["operator", "<<="], ["operator", ">="], ["operator", ">>="], ["operator", ">>>="],
+	["operator", "!"], ["operator", "!="], ["operator", "="], ["operator", "=="],
+	["operator", "!=="], ["operator", "==="],
+	["operator", "~"], ["operator", "?"], ["operator", "@"],
+	["operator", "++"], ["operator", "--"]
+]
+
+----------------------------------------------------
+
+Checks for all operators.
\ No newline at end of file
diff --git a/tests/languages/markup+actionscript/xml_feature.test b/tests/languages/markup+actionscript/xml_feature.test
new file mode 100644
index 0000000..8686652
--- /dev/null
+++ b/tests/languages/markup+actionscript/xml_feature.test
@@ -0,0 +1,64 @@
+var employees:XML =
+	<employees>
+		<employee ssn="123-123-1234"></employee>
+	</employees>;
+
+----------------------------------------------------
+
+[
+	["keyword", "var"],
+	" employees",
+	["punctuation", ":"],
+	"XML ",
+	["operator", "="],
+	["xml", [
+		["tag", [
+			["tag", [
+				["punctuation", "<"],
+				"employees"
+			]],
+			["punctuation", ">"]
+		]]
+	]],
+	["xml", [
+		["tag", [
+			["tag", [
+				["punctuation", "<"],
+				"employee"
+			]],
+			["attr-name", [
+				"ssn"
+			]],
+			["attr-value", [
+				["punctuation", "="],
+				["punctuation", "\""],
+				"123-123-1234",
+				["punctuation", "\""]
+			]],
+			["punctuation", ">"]
+		]]
+	]],
+	["xml", [
+		["tag", [
+			["tag", [
+				["punctuation", "</"],
+				"employee"
+			]],
+			["punctuation", ">"]
+		]]
+	]],
+	["xml", [
+		["tag", [
+			["tag", [
+				["punctuation", "</"],
+				"employees"
+			]],
+			["punctuation", ">"]
+		]]
+	]],
+	["punctuation", ";"]
+]
+
+----------------------------------------------------
+
+Checks for XML variables in ActionScript.
\ No newline at end of file