branch: elpa/rainbow-delimiters
commit d723eb0a8c5d95835a56c9c521045f4d0763b459
Author: Fanael Linithien <[email protected]>
Commit: Fanael Linithien <[email protected]>
In the C++ template syntax test, remove some text properties.
We're not interested in category, syntax-table and c-type, so remove
them, especially as Emacs 23 and 24+ set different properties.
---
rainbow-delimiters-test.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/rainbow-delimiters-test.el b/rainbow-delimiters-test.el
index 2cf27c9d74..08f9553a37 100644
--- a/rainbow-delimiters-test.el
+++ b/rainbow-delimiters-test.el
@@ -144,12 +144,15 @@
(with-temp-buffer-in-mode 'c++-mode
(with-string (str "foo<int> x;")
(should (ert-equal-including-properties
- (buffer-string)
+ (progn
+ (remove-list-of-text-properties
+ (point-min) (point-max) '(category c-type syntax-table))
+ (buffer-string))
#("foo<int> x;"
0 3 (face font-lock-type-face)
- 3 4 (category c-<-as-paren-syntax face
(rainbow-delimiters-depth-1-face))
+ 3 4 (face (rainbow-delimiters-depth-1-face))
4 7 (face font-lock-type-face)
- 7 8 (category c->-as-paren-syntax c-type c-decl-id-start face
(rainbow-delimiters-depth-1-face))
+ 7 8 (face (rainbow-delimiters-depth-1-face))
9 10 (face font-lock-variable-name-face)))))))
(ert-deftest doesnt-higlight-nondelimiters-1 ()