[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master af536a4 07/79: Update coloring assertion syntax.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master af536a4 07/79: Update coloring assertion syntax. |
Date: |
Sun, 14 Jun 2015 00:05:14 +0000 |
branch: master
commit af536a41a89443496b1a603668623b92b608a2cd
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Update coloring assertion syntax.
---
test/context-coloring-test.el | 32 +++++++++++++++++---------------
1 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/test/context-coloring-test.el b/test/context-coloring-test.el
index 24ec280..d6aaeb2 100644
--- a/test/context-coloring-test.el
+++ b/test/context-coloring-test.el
@@ -262,13 +262,13 @@ initial colorization if colorization should occur."
(context-coloring-test-assert-position-level
(point) (string-to-number char-string))
(forward-char))
- ;; ';' = Comment
- ((= char 59)
- (context-coloring-test-assert-position-comment (point))
+ ;; 'C' = Constant comment
+ ((= char 67)
+ (context-coloring-test-assert-position-constant-comment (point))
(forward-char))
- ;; 'c' = Constant comment
+ ;; 'c' = Comment
((= char 99)
- (context-coloring-test-assert-position-constant-comment (point))
+ (context-coloring-test-assert-position-comment (point))
(forward-char))
;; 'n' = nil
((= char 110)
@@ -991,15 +991,17 @@ see that function."
(context-coloring-test-assert-coloring "
(xxxxxxxx () {
111 1 1 00000001xxx11
-}())")))
+}());")))
(context-coloring-test-deftest-js2 block-scopes
(lambda ()
- (context-coloring-colorize)
- (context-coloring-test-assert-region-level 20 27 1)
- (context-coloring-test-assert-region-level 27 41 2)
- (context-coloring-test-assert-region-level 41 42 1)
- (context-coloring-test-assert-region-level 42 64 2))
+ (context-coloring-test-assert-coloring "
+(xxxxxxxx () {
+ 11 111 2
+ 222 12
+ 222 22
+ 2
+}());"))
:before (lambda ()
(setq context-coloring-js-block-scopes t))
:after (lambda ()
@@ -1103,8 +1105,8 @@ see that function."
;; Just check that the comment isn't parsed syntactically.
(context-coloring-test-assert-coloring "
(xxxxx x ()
- (xx (x xxxxx-xxxx xx) ;;;;;;;;;;
- 11 00000-0000 11))) ;;;;;;;;;;"))
+ (xx (x xxxxx-xxxx xx) cccccccccc
+ 11 00000-0000 11))) cccccccccc"))
:before (lambda ()
(setq context-coloring-syntactic-comments t)))
@@ -1161,7 +1163,7 @@ see that function."
(let ((context-coloring-emacs-lisp-iterations-per-pause 1))
(context-coloring-colorize)
(context-coloring-test-assert-coloring "
-;; `cc' `cc'
+cc `CC' `CC'
(xxxxx x ())")
(context-coloring-test-remove-faces)
(context-coloring-test-insert-unread-space)
@@ -1169,7 +1171,7 @@ see that function."
;; The first iteration will color the first part of the comment, but
;; that's it. Then it will be interrupted.
(context-coloring-test-assert-coloring "
-;; nnnn nnnn
+cc nnnn nnnn
nnnnnn n nnn")))
:before (lambda ()
(setq context-coloring-syntactic-comments t)
- [elpa] master updated (7df8d42 -> e2f402c), Jackson Ray Hamilton, 2015/06/13
- [elpa] master c337716 01/79: Add statistics., Jackson Ray Hamilton, 2015/06/13
- [elpa] master ac22f0a 02/79: Silence obsolete warnings., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 57e87f0 04/79: Refactor js test definitions., Jackson Ray Hamilton, 2015/06/13
- [elpa] master cfcf112 03/79: Add define-deftest macro., Jackson Ray Hamilton, 2015/06/13
- [elpa] master ae03324 05/79: Define js and js2 tests simultaneously., Jackson Ray Hamilton, 2015/06/13
- [elpa] master af536a4 07/79: Update coloring assertion syntax.,
Jackson Ray Hamilton <=
- [elpa] master c1b6b52 06/79: Update function scopes and global tests., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 5e0a0d9 10/79: Newlines., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 23cf7b3 09/79: Refactor derived mode tests., Jackson Ray Hamilton, 2015/06/13
- [elpa] master fd2f2d0 08/79: Refactor remaining js tests., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 1f474d9 11/79: Reorganize functions., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 92166ba 13/79: Add no-fixture option., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 8ea8c9c 15/79: Pass defun test with recursive colorizer., Jackson Ray Hamilton, 2015/06/13
- [elpa] master ea6b4ef 14/79: Increase test documentation., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 7975003 18/79: Pass ignored test with recursive colorizer., Jackson Ray Hamilton, 2015/06/13
- [elpa] master d8b5f03 12/79: Remove before-all and after-all., Jackson Ray Hamilton, 2015/06/13