tests: Specify the style key instead of the style itself

This commit is contained in:
Matthew Martin
2016-04-24 14:22:24 -05:00
parent c54c076cfa
commit a830613467
70 changed files with 246 additions and 246 deletions

View File

@@ -35,13 +35,13 @@ ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=$unused_highlight
BUFFER='sudo -C3 -u otheruser -i ls /; sudo ; sudo -u ;'
expected_region_highlight=(
"1 4 ${(q-)ZSH_HIGHLIGHT_STYLES[precommand]}" # sudo
"6 8 ${(q-)ZSH_HIGHLIGHT_STYLES[single-hyphen-option]}" # -C3
"10 11 ${(q-)ZSH_HIGHLIGHT_STYLES[single-hyphen-option]}" # -u
"13 21 ${(q-)ZSH_HIGHLIGHT_STYLES[default]}" # otheruser
"23 24 ${(q-)ZSH_HIGHLIGHT_STYLES[single-hyphen-option]}" # -i
"26 27 ${(q-)ZSH_HIGHLIGHT_STYLES[command]}" # ls
"29 29 ${(q-)ZSH_HIGHLIGHT_STYLES[path]}" # /
"37 37 ${(q-)ZSH_HIGHLIGHT_STYLES[unknown-token]}" # ;, error because empty command
"47 47 ${(q-)ZSH_HIGHLIGHT_STYLES[unknown-token]}" # ;, error because incomplete command
"1 4 precommand" # sudo
"6 8 single-hyphen-option" # -C3
"10 11 single-hyphen-option" # -u
"13 21 default" # otheruser
"23 24 single-hyphen-option" # -i
"26 27 command" # ls
"29 29 path" # /
"37 37 unknown-token" # ;, error because empty command
"47 47 unknown-token" # ;, error because incomplete command
)