emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 549e523 149/271: Add failing test for block scopes.


From: Jackson Ray Hamilton
Subject: [elpa] master 549e523 149/271: Add failing test for block scopes.
Date: Thu, 05 Feb 2015 18:30:40 +0000

branch: master
commit 549e5232a6d1ce2a893d0d94692a17c4411412da
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>

    Add failing test for block scopes.
---
 test/context-coloring-test.el |    7 +++++++
 test/fixtures/block-scopes.js |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/test/context-coloring-test.el b/test/context-coloring-test.el
index 814fd6d..9b17a36 100644
--- a/test/context-coloring-test.el
+++ b/test/context-coloring-test.el
@@ -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"
diff --git a/test/fixtures/block-scopes.js b/test/fixtures/block-scopes.js
new file mode 100644
index 0000000..cb0c6db
--- /dev/null
+++ b/test/fixtures/block-scopes.js
@@ -0,0 +1 @@
+if (1) {}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]