summaryrefslogtreecommitdiff
path: root/common/tests/functional
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-02-12 15:27:33 -0500
committerKris Maglione <maglione.k@gmail.com>2011-02-12 15:27:33 -0500
commit8277d4b0c423417e2110ace07497f2bda597d56f (patch)
tree2bebec9890ec1a6af31229872ea90756a45d580b /common/tests/functional
parentff2da13c707dfc7c3eefc3904492967710dfe520 (diff)
downloadpentadactyl-8277d4b0c423417e2110ace07497f2bda597d56f.tar.gz
Frob tests.
Diffstat (limited to 'common/tests/functional')
-rw-r--r--common/tests/functional/testCommands.js76
1 files changed, 52 insertions, 24 deletions
diff --git a/common/tests/functional/testCommands.js b/common/tests/functional/testCommands.js
index e11a3cb3..dd2f05b5 100644
--- a/common/tests/functional/testCommands.js
+++ b/common/tests/functional/testCommands.js
@@ -52,9 +52,6 @@ var tests = {
noOutput: ["abc def", "-js abc def"],
completions: ["", "abc ", "-js abc "]
},
- abclear: {
- noOutput: [""]
- },
addons: {
multiOutput: ["", "dactyl", "-type=extension", "-type=extension dactyl"],
completions: [
@@ -118,7 +115,7 @@ var tests = {
error: ["", "some-nonexistent-scheme"]
},
command: {
- init: ["comclear"],
+ init: ["delc!"],
singleOutput: ["", "foobar"],
noOutput: ["foo bar", "-js bar baz"],
multiOutput: [""],
@@ -134,9 +131,6 @@ var tests = {
["-group=user ", hasItems]
]
},
- comclear: {
- noOutput: [""]
- },
contexts: {}, // Not testable in this manner
cookies: {
anyOutput: ["dactyl.sf.net", "dactyl.sf.net list"],
@@ -149,13 +143,14 @@ var tests = {
delbmarks: { anyOutput: ["", "about:pentadactyl"] },
delcommand: [
{
- init: ["comclear", "command foo bar"],
+ init: ["delc!", "command foo bar"],
+ error: [""],
completions: [
["", hasItems],
["-group=", hasItems],
["-group=user ", hasItems]
],
- noOutput: ["foo"]
+ noOutput: ["foo", "! "]
},
{
init: ["comclear"],
@@ -353,7 +348,9 @@ var tests = {
completions: [""]
},
map: {
- multiOutput: ["", "i"],
+ init: ["unmap!"],
+ anyOutput: [""],
+ singleOutput: ["i"],
noOutput: [
"i j",
"-builtin i j",
@@ -363,6 +360,7 @@ var tests = {
"-silent i :j",
"-mode=ex -b <C-a> <C-a>"
],
+ multiOutput: ["", "i"],
error: [
"-mode=some-nonexistent-mode <C-a> <C-a>",
"-group=some-nonexistent-group <C-a> <C-a>",
@@ -379,16 +377,6 @@ var tests = {
["-javascript i ", hasItems]
]
},
- mapclear: {
- noOutput: [""],
- error: [
- "-group=builtin"
- ],
- completions: [
- "",
- "-group="
- ]
- },
mark: {
error: ["", "#", "xy"],
noOutput: ["y"],
@@ -554,7 +542,31 @@ var tests = {
noOutput: [""]
},
scriptnames: {},
- set: {},
+ set: {
+ multiOutput: [
+ "vb?", "cpt?", "messages?", "titlestring?", "au?", "eht?",
+ "cpt", "messages", "titlestring", "au", "eht"
+ ],
+ noOutput: ["vb", "novb"],
+ completions: [
+ ["", hasItems],
+ ["c", hasItems],
+ ["cpt=", hasItems],
+ ["cpt=l", hasItems],
+ ["cpt+=", hasItems],
+ ["cpt+=f", hasItems],
+ ["activate=", hasItems],
+ ["activate=links,", hasItems],
+ ["activate+=", hasItems],
+ ["activate+=links,", hasItems],
+ ["activate^=", hasItems],
+ ["activate^=links,", hasItems],
+ ["activate-=", hasItems],
+ ["activate-=links,", hasItems],
+ ["activate!=", hasItems],
+ ["activate!=links,", hasItems]
+ ]
+ },
get setglobal() this.set,
get setlocal() this.set,
sidebar: {
@@ -702,12 +714,28 @@ var tests = {
],
error: ["", "foo"]
},
- tunmap: {},
- unabbreviate: {},
+ unabbreviate: {
+ noOutput: ["abc", "! "],
+ error: [""]
+ },
undo: {},
undoall: {},
unlet: {},
- unmap: {},
+ unmap: {
+ noOutput: [
+ "i",
+ "! "
+ ],
+ error: [
+ "i",
+ "-group=builtin k",
+ "! -group=builtin"
+ ],
+ completions: [
+ "",
+ "-group="
+ ]
+ },
verbose: {},
version: {
multiOutput: [