[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 3cff176 210/271: Add failing key-value pair test.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master 3cff176 210/271: Add failing key-value pair test. |
Date: |
Thu, 05 Feb 2015 18:31:17 +0000 |
branch: master
commit 3cff17629369e14366f95b93af6fb66acbb74b64
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Add failing key-value pair test.
---
test/context-coloring-test.el | 17 +++++++++++++++++
test/fixtures/key-values.js | 8 ++++++++
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/test/context-coloring-test.el b/test/context-coloring-test.el
index 3fa7953..52a93fb 100644
--- a/test/context-coloring-test.el
+++ b/test/context-coloring-test.el
@@ -235,4 +235,21 @@ invoke when it is done."
"./fixtures/property-lookup.js"
(context-coloring-test-js-property-lookup)))
+(defun context-coloring-test-js-key-values ()
+ (context-coloring-test-assert-region-level 78 79 1))
+
+(ert-deftest-async context-coloring-test-js-mode-key-values (done)
+ (context-coloring-test-js-mode
+ "./fixtures/key-values.js"
+ (lambda (teardown)
+ (unwind-protect
+ (context-coloring-test-js-key-values)
+ (funcall teardown))
+ (funcall done))))
+
+(ert-deftest context-coloring-test-js2-mode-key-values ()
+ (context-coloring-test-js2-mode
+ "./fixtures/key-values.js"
+ (context-coloring-test-js-key-values)))
+
(provide 'context-coloring-test)
diff --git a/test/fixtures/key-values.js b/test/fixtures/key-values.js
new file mode 100644
index 0000000..41bdedd
--- /dev/null
+++ b/test/fixtures/key-values.js
@@ -0,0 +1,8 @@
+(function () {
+ var a;
+ (function () {
+ return {
+ b: a
+ };
+ }());
+}());
- [elpa] master 310aca4 228/271: Use `save-excursion' before fontifying., (continued)
- [elpa] master 310aca4 228/271: Use `save-excursion' before fontifying., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 5cc5224 249/271: Update sentence spacing., Jackson Ray Hamilton, 2015/02/05
- [elpa] master de8eacd 204/271: Update benchmarks in readme., Jackson Ray Hamilton, 2015/02/05
- [elpa] master f15c193 189/271: Escape., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 31ee972 197/271: Improve property lookup test., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 3d034f9 262/271: Merge branch 'develop', Jackson Ray Hamilton, 2015/02/05
- [elpa] master 6d24750 206/271: Update docs., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 6059dca 179/271: Add Travis CI., Jackson Ray Hamilton, 2015/02/05
- [elpa] master f2ace00 224/271: Add faces dynamically. Stop looping around at the last level., Jackson Ray Hamilton, 2015/02/05
- [elpa] master d44b426 208/271: Merge branch 'master' into develop, Jackson Ray Hamilton, 2015/02/05
- [elpa] master 3cff176 210/271: Add failing key-value pair test.,
Jackson Ray Hamilton <=
- [elpa] master e09d9ad 227/271: Add tests for comments and strings., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 21cc6c6 200/271: Save benchmark logs to an untracked directory., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 30a24f9 265/271: Add 'packages/context-coloring/' from commit 'f2b5d796d4dffc71b10503a8ae119bfa3274978e', Jackson Ray Hamilton, 2015/02/05
- [elpa] master 03d111c 235/271: Cleanup., Jackson Ray Hamilton, 2015/02/05
- [elpa] master eba74ae 192/271: Improve assertion functions., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 127b312 225/271: Remove rear-nonsticky., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 441dde0 178/271: Cleanup, comments., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 9fb06d8 254/271: Merge branch 'master' into develop, Jackson Ray Hamilton, 2015/02/05
- [elpa] master 5826178 239/271: Update the dispatch API., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 3c8f842 195/271: Write failing property lookup test., Jackson Ray Hamilton, 2015/02/05