4141 (goto-char (point-min ))
4242 ,@body ))
4343
44- (defmacro clojurex-test-with-temp-buffer (content &rest body )
45- " Evaluate BODY in a temporary buffer with CONTENTS."
46- (declare (debug t )
47- (indent 1 ))
48- `(with-temp-buffer
49- (insert , content )
50- (clojurex-mode)
51- (font-lock-fontify-buffer )
52- (goto-char (point-min ))
53- ,@body ))
54-
5544(defun clojure-get-face-at-range (start end )
5645 (let ((start-face (get-text-property start 'face ))
5746 (all-faces (cl-loop for i from start to end collect (get-text-property i 'face ))))
@@ -69,16 +58,6 @@ buffer."
6958 (clojure-get-face-at-range start end))
7059 (clojure-get-face-at-range start end)))
7160
72- (defun clojurex-test-face-at (start end &optional content )
73- " Get the face between START and END in CONTENT.
74-
75- If CONTENT is not given, return the face at the specified range in the current
76- buffer."
77- (if content
78- (clojurex-test-with-temp-buffer content
79- (clojure-get-face-at-range start end))
80- (clojure-get-face-at-range start end)))
81-
8261(defconst clojure-test-syntax-classes
8362 [whitespace punctuation word symbol open-paren close-paren expression-prefix
8463 string-quote paired-delim escape character-quote comment-start
@@ -322,11 +301,6 @@ POS."
322301 (should (eq (clojure-test-face-at 1 2 " \\ ," ) 'clojure-character-face ))
323302 (should (eq (clojure-test-face-at 1 2 " \\ ;" ) 'clojure-character-face )))
324303
325- (ert-deftest clojurex-mode-syntax-table/cljx ()
326- :tags '(fontification syntax-table)
327- (should (eq (clojurex-test-face-at 1 5 " #+clj x" ) 'font-lock-preprocessor-face ))
328- (should (eq (clojurex-test-face-at 1 6 " #+cljs x" ) 'font-lock-preprocessor-face )))
329-
330304(ert-deftest clojure-mode-syntax-table/refer-ns ()
331305 :tags '(fontification syntax-table)
332306 (should (eq (clojure-test-face-at 1 3 " foo/var" ) 'font-lock-type-face ))
0 commit comments