aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-04-07 12:01:05 -0700
committerGravatar Tom Willemse2020-04-07 12:01:05 -0700
commit8121df576e71b42dc3b2e03b89dadd64656a92b9 (patch)
treec31afad18299f7b6acdaed341fc1d436a99136f7 /test
parent6642c7d717313a81a654a922ae8df10d302f0eef (diff)
downloademacs-config-8121df576e71b42dc3b2e03b89dadd64656a92b9.tar.gz
emacs-config-8121df576e71b42dc3b2e03b89dadd64656a92b9.zip
Use ‘nxml-mode’ for ‘.proj’ and ‘.targets’ files
Both of these file types are used for MSBuild.
Diffstat (limited to 'test')
-rw-r--r--test/integration/oni-csharp.bats20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/integration/oni-csharp.bats b/test/integration/oni-csharp.bats
index bdfcbd0..ba26d59 100644
--- a/test/integration/oni-csharp.bats
+++ b/test/integration/oni-csharp.bats
@@ -29,3 +29,23 @@
[[ "$output" == *"nxml-mode" ]]
}
+
+@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" {
+ run emacs -batch -l package -f packaeg-initialize \
+ -visit test.targets \
+ -eval "(prin1 major-mode)"
+
+ echo "$output"
+
+ [[ "$output" == *"nxml-mode" ]]
+}