[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master c1b6b52 06/79: Update function scopes and global tests.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master c1b6b52 06/79: Update function scopes and global tests. |
Date: |
Sun, 14 Jun 2015 00:05:14 +0000 |
branch: master
commit c1b6b52f17a379f8d76fd47345fe99f5786f8d27
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Update function scopes and global tests.
---
test/context-coloring-test.el | 36 +++++++++++++++---------------------
1 files changed, 15 insertions(+), 21 deletions(-)
diff --git a/test/context-coloring-test.el b/test/context-coloring-test.el
index cd2864b..24ec280 100644
--- a/test/context-coloring-test.el
+++ b/test/context-coloring-test.el
@@ -45,7 +45,10 @@
(defun context-coloring-test-before-all ()
"Prepare before all tests."
(setq context-coloring-syntactic-comments nil)
- (setq context-coloring-syntactic-strings nil))
+ (setq context-coloring-syntactic-strings nil)
+ ;; TODO: Should only be for js2-mode tests.
+ (setq js2-mode-show-parse-errors nil)
+ (setq js2-mode-show-strict-warnings nil))
(defun context-coloring-test-after-all ()
"Cleanup after all tests."
@@ -164,10 +167,6 @@ initial colorization if colorization should occur."
:extension "js"
:async t)
-;; TODO: Do we need some way to do
-;; (setq js2-mode-show-parse-errors nil)
-;; (setq js2-mode-show-strict-warnings nil)
-;; ?
(context-coloring-test-define-deftest js2
:mode 'js2-mode
:extension "js")
@@ -255,7 +254,7 @@ initial colorization if colorization should occur."
(cond
;; Newline
((= char 10)
- (next-logical-line)
+ (forward-line)
(beginning-of-line))
;; Number
((and (>= char 48)
@@ -980,24 +979,19 @@ see that function."
(context-coloring-test-deftest-js-js2 function-scopes
(lambda ()
- (context-coloring-test-assert-region-level 1 9 0)
- (context-coloring-test-assert-region-level 9 23 1)
- (context-coloring-test-assert-region-level 23 25 0)
- (context-coloring-test-assert-region-level 25 34 1)
- (context-coloring-test-assert-region-level 34 35 0)
- (context-coloring-test-assert-region-level 35 52 1)
- (context-coloring-test-assert-region-level 52 66 2)
- (context-coloring-test-assert-region-level 66 72 1)
- (context-coloring-test-assert-region-level 72 81 2)
- (context-coloring-test-assert-region-level 81 82 1)
- (context-coloring-test-assert-region-level 82 87 2)
- (context-coloring-test-assert-region-level 87 89 1)))
+ (context-coloring-test-assert-coloring "
+000 0 0 11111111 11 110
+11111111 011 1
+ 111 1 1 22222222 22 221
+ 22222222 122 22
+1")))
(context-coloring-test-deftest-js-js2 global
(lambda ()
- (context-coloring-test-assert-region-level 20 28 1)
- (context-coloring-test-assert-region-level 28 35 0)
- (context-coloring-test-assert-region-level 35 41 1)))
+ (context-coloring-test-assert-coloring "
+(xxxxxxxx () {
+ 111 1 1 00000001xxx11
+}())")))
(context-coloring-test-deftest-js2 block-scopes
(lambda ()
- [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, 2015/06/13
- [elpa] master c1b6b52 06/79: Update function scopes and global tests.,
Jackson Ray Hamilton <=
- [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
- [elpa] master bc0cb0d 16/79: Pass lambda test with recursive colorizer., Jackson Ray Hamilton, 2015/06/13