]> code.delx.au - gnu-emacs-elpa/blobdiff - test/context-coloring-test.el
Update compilation.
[gnu-emacs-elpa] / test / context-coloring-test.el
index 814fd6d575246a5b53cfda82374daaed9aee3da2..633aec4d7f02ceaa99f302d20ca28613f56e4945 100644 (file)
@@ -24,7 +24,7 @@ FIXTURE."
 FIXTURE."
   `(context-coloring-test-with-fixture
     ,fixture
-    (add-to-list 'load-path (context-coloring-test-resolve-path "./fixtures/js2-mode"))
+    (add-to-list 'load-path (context-coloring-test-resolve-path "../lib/js2-mode"))
     (require 'js2-mode)
     (setq js2-mode-show-parse-errors nil)
     (setq js2-mode-show-strict-warnings nil)
@@ -91,6 +91,13 @@ FIXTURE."
    ;; Don't error.
    ))
 
+(ert-deftest context-coloring-test-js2-mode-block-scopes ()
+  (context-coloring-test-js2-with-fixture
+   "./fixtures/block-scopes.js"
+   (js2-mode)
+   (context-coloring-mode)
+   (context-coloring-test-region-level-p 1 10 0)))
+
 (ert-deftest context-coloring-test-js2-mode-complexity ()
   (context-coloring-test-js2-with-fixture
    "../benchmark/fixtures/mkdirp-0.5.0.js"