From: Glenn Morris Date: Fri, 10 Aug 2012 07:13:06 +0000 (-0700) Subject: * test/automated/files.el (files-test-disable-local-variables): New test. X-Git-Tag: emacs-24.2~22 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=711f4590cddbc83c509c1c5e852ef4e528a39780;p=emacs.git * test/automated/files.el (files-test-disable-local-variables): New test. --- diff --git a/test/ChangeLog b/test/ChangeLog index d330311e1d3..b4195ea7d58 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,7 @@ +2012-08-10 Glenn Morris + + * automated/files.el (files-test-disable-local-variables): New test. + 2012-08-08 Glenn Morris * automated/files.el: New file. diff --git a/test/automated/files.el b/test/automated/files.el index 43287ec0ed3..e43d8c32f85 100644 --- a/test/automated/files.el +++ b/test/automated/files.el @@ -38,4 +38,15 @@ (hack-local-variables) (should (eq files-test-var1 nil))))) +(ert-deftest files-test-disable-local-variables () + "Test that setting enable-local-variables to nil works." + (with-temp-buffer + (insert "text\n" + ";; Local Variables:\n" + ";; files-test-var1: t\n" + ";; End:\n") + (let ((enable-local-variables nil)) + (hack-local-variables) + (should (eq files-test-var1 nil))))) + ;;; files.el ends here