2020-01-29 06:48:28 +01:00
|
|
|
#!/usr/bin/env bats
|
|
|
|
|
|
|
|
@test "Opening a .cs file loads oni-csharp" {
|
|
|
|
run emacs -batch -l package -f package-initialize \
|
|
|
|
-visit test.cs \
|
|
|
|
-eval "(prin1 (featurep 'oni-csharp))"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"t" ]]
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "Opening a .xaml file loads nxml-mode" {
|
|
|
|
run emacs -batch -l package -f package-initialize \
|
|
|
|
-visit test.xaml \
|
|
|
|
-eval "(prin1 major-mode)"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"nxml-mode" ]]
|
|
|
|
}
|
2020-01-29 07:15:41 +01:00
|
|
|
|
|
|
|
@test "Opening a .csproj file loads nxml-mode" {
|
|
|
|
run emacs -batch -l package -f package-initialize \
|
|
|
|
-visit test.csproj \
|
|
|
|
-eval "(prin1 major-mode)"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"nxml-mode" ]]
|
|
|
|
}
|
2020-04-07 21:01:05 +02:00
|
|
|
|
|
|
|
@test "Opening a .proj fiile loads nxml-mode" {
|
|
|
|
run emacs -batch -l package -f package-initialize \
|
|
|
|
-visit test.proj \
|
|
|
|
-eval "(prin1 major-mode)"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"nxml-mode" ]]
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "Opening a .targets file loads nxml-mode" {
|
2020-04-07 22:14:09 +02:00
|
|
|
run emacs -batch -l package -f package-initialize \
|
2020-04-07 21:01:05 +02:00
|
|
|
-visit test.targets \
|
|
|
|
-eval "(prin1 major-mode)"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"nxml-mode" ]]
|
|
|
|
}
|