1
0
Fork 0
emacs-config/test/integration/oni-gui.bats

55 lines
1.5 KiB
Text
Raw Normal View History

#!/usr/bin/env bats
@test "Opening emacs loads oni-gui" {
run emacs -batch -l package -f package-initialize \
-eval "(prin1 (featurep 'oni-gui))"
echo "$output"
[[ "$output" == *"t" ]]
}
@test "Opening emacs diminishes isearch-mode" {
run emacs -batch -l package -f package-initialize \
-eval "(prin1 (string= (string ?\s oni-gui-isearch-icon)
(car (alist-get 'isearch-mode minor-mode-alist))))"
echo "$output"
[[ "$output" == *"t" ]]
}
@test "Reloading isearch diminishes isearch-mode" {
run emacs -batch -l package -f package-initialize \
-eval "(load-library \"isearch\")" \
-eval "(prin1 (string= (string ?\s oni-gui-isearch-icon)
(car (alist-get 'isearch-mode minor-mode-alist))))"
echo "$output"
[[ "$output" == *"t" ]]
}
2020-04-09 22:17:05 +02:00
2020-04-09 23:03:33 +02:00
@test "Loading autorevert diminishes auto-revert-mode" {
2020-04-09 22:17:05 +02:00
run emacs -batch -l package -f package-initialize \
2020-04-09 23:03:33 +02:00
-l autorevert \
2020-04-09 22:17:05 +02:00
-eval "(prin1 (string= (string ?\s oni-gui-arev-icon)
(car (alist-get 'auto-revert-mode minor-mode-alist))))"
echo "$output"
[[ "$output" == *"t" ]]
}
@test "Reloading autorevert diminishes auto-revert-mode" {
run emacs -batch -l package -f package-initialize \
2020-04-09 23:03:33 +02:00
-l autorevert \
2020-04-09 22:17:05 +02:00
-eval "(load-library \"autorevert\")" \
-eval "(prin1 (string= (string ?\s oni-gui-arev-icon)
(car (alist-get 'auto-revert-mode minor-mode-alist))))"
echo "$output"
[[ "$output" == *"t" ]]
}