[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/jade-mode f9522fc00a 105/128: reorder highlight tests to m
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/jade-mode f9522fc00a 105/128: reorder highlight tests to match regex order in jade-mode.el and display |
Date: |
Sat, 29 Jan 2022 08:24:51 -0500 (EST) |
branch: elpa/jade-mode
commit f9522fc00a68ad0ecab30061eba0f988431d1c63
Author: Matthew Conway <matthew.f.conway@gmail.com>
Commit: Matthew Conway <matthew.f.conway@gmail.com>
reorder highlight tests to match regex order in jade-mode.el and display
word in ert should
---
test/highlight-test.el | 12 ++++++------
test/test-helper.el | 9 +++++++--
2 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/test/highlight-test.el b/test/highlight-test.el
index 8d9c4aafa5..397faddbc3 100644
--- a/test/highlight-test.el
+++ b/test/highlight-test.el
@@ -13,13 +13,13 @@
(point-at-eol)))))
(ert-deftest jade-mode-highlights-in-isolation ()
- (jade-test-highlight-one-word "doctype html" 'font-lock-comment-face 0)
- (jade-test-highlight-one-word "head" 'font-lock-function-name-face 1)
- (jade-test-highlight-one-word "body" 'font-lock-function-name-face 2)
+ (jade-test-highlight-one-word "mixin" 'font-lock-keyword-face 2)
+
(jade-test-highlight-one-word "#container" 'font-lock-variable-name-face 2)
(jade-test-highlight-one-word ".class" 'font-lock-type-face 2)
- (jade-test-highlight-one-word "if" 'font-lock-keyword-face 2)
(jade-test-highlight-one-word "// this is a comment" 'font-lock-comment-face
2)
(jade-test-highlight-one-word "//- this is a comment"
'font-lock-comment-face 2)
- (jade-test-highlight-one-word "//- this is a comment"
'font-lock-comment-face 2)
- (jade-test-highlight-one-word "-// this is a comment"
'font-lock-comment-face 2))
+ (jade-test-highlight-one-word "-// this is a comment"
'font-lock-comment-face 2)
+ (jade-test-highlight-one-word "head" 'font-lock-function-name-face 0)
+ (jade-test-highlight-one-word "body" 'font-lock-function-name-face 2)
+ (jade-test-highlight-one-word "doctype html" 'font-lock-comment-face 0))
diff --git a/test/test-helper.el b/test/test-helper.el
index 84174d3eae..34a6c3f7a8 100644
--- a/test/test-helper.el
+++ b/test/test-helper.el
@@ -26,12 +26,17 @@
(and (eq (point) (point-max)) (goto-char (point-min)))
(search-forward string nil t 1))
+(defun jade-test--show-tested-text (text form)
+ form)
+
(defmacro jade-test-highlight-one-word (word face n)
`(jade-test-with-temp-buffer-pt-min
,(concat (s-repeat n "\t") word "\n\n")
(print (buffer-string))
- (should (eq (get-text-property
- ,(+ 1 n) 'face)
+ (should (eq (jade-test--show-tested-text
+ ,word
+ (get-text-property
+ ,(+ 1 n) 'face))
,face))
(goto-char ,(+ 1 n))
(should (eq
- [nongnu] elpa/jade-mode 05d671fcdb 057/128: Add comment syntax to allow for M-x (un)comment-region., (continued)
- [nongnu] elpa/jade-mode 05d671fcdb 057/128: Add comment syntax to allow for M-x (un)comment-region., ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 351f756569 083/128: [#37] Highlight string lit. manually - Closes #37, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode a90b512c6e 086/128: [#39] add two functions to hl JS blocks, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 57ab4d6555 085/128: [#39] add JS examples to highlight, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode bbaf2bb3a1 092/128: add a THIRD comment type and use THAT ad default, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 4336ae9cc4 097/128: [#46] ignore .elc files, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 42bb8501b4 099/128: fix some compile warnings and sexp-region, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 0de371694a 053/128: Match zero or more whitespace in BOL instead of one or more., ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode c4014d8a9c 098/128: Merge pull request #50 from tjefferson08/46_unit_tests, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode e9288f66dc 106/128: use named regexes in font-lock-keywords list, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode f9522fc00a 105/128: reorder highlight tests to match regex order in jade-mode.el and display,
ELPA Syncer <=
- [nongnu] elpa/jade-mode 97c460453b 116/128: Merge pull request #62 from robbyoconnor/remove-flymake-from-README, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 93c0dec9d4 121/128: fix `.pug` extension to be auto-loaded, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 4dbde92542 122/128: Merge pull request #68 from chillum/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 1ad7c51f3c 128/128: Merge pull request #72 from he-la/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 91c2d4be67 019/128: update to include keybinding information, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode ac71830de7 096/128: [#46] add Makefile and .travis.yml, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode a61ad07db6 094/128: Merge pull request #42 from tjefferson08/doctype_fontification, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 5752db7c36 012/128: added significant whitespace mode as sub-mode for jade-mode and (soon to be) stylus-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 2f0f55cae4 018/128: updated readme, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 823c573c29 042/128: Merge pull request #5 from ntotani/master, ELPA Syncer, 2022/01/29