Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit da74bc25 authored by Ryan C. Thompson's avatar Ryan C. Thompson

Fix test for #613

parent 0a3c869b
;; https://github.com/dimitri/el-get/issues/613
;;
;; Do recipe autoloads in :prepare instead of :post-init
(require 'loadhist)
(let ((debug-on-error t)
;; (el-get-byte-compile nil)
(el-get-default-process-sync t)
(el-get-verbose t)
(el-get-is-lazy t))
(el-get 'sync 'n3-mode)
(assert (not (featurep 'n3-mode)) nil.
"n3-mode should not be loaded because el-get is lazy")
(assert (not (file-loadhist-lookup "n3-mode")) nil
"n3-mode package should not be loaded because el-get is lazy")
(assert (functionp 'n3-mode) nil
"n3-mode function should be defined because it is autoloaded")
(assert (equal 'autoload (car (symbol-function 'n3-mode))) nil
"n3-mode function definition should be an autoload"))
"n3-mode function definition should be an autoload")
(with-temp-buffer (n3-mode))
(assert (file-loadhist-lookup "n3-mode") nil
"n3-mode package should be loaded after calling n3-mode function")
(assert (not (equal 'autoload (car-safe (symbol-function 'n3-mode)))) nil
"n3-mode function should no longer be an autoload after calling it"))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment