[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 68824f6 193/271: Add failing test for key names.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master 68824f6 193/271: Add failing test for key names. |
Date: |
Thu, 05 Feb 2015 18:31:07 +0000 |
branch: master
commit 68824f69fa8fa8d5ec59f3b2bf920a73e82883cf
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Add failing test for key names.
---
test/context-coloring-test.el | 17 +++++++++++++++++
test/fixtures/key-names.js | 6 ++++++
test/fixtures/property-lookup.js | 4 ++++
3 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/test/context-coloring-test.el b/test/context-coloring-test.el
index 88b556e..9f2bd12 100644
--- a/test/context-coloring-test.el
+++ b/test/context-coloring-test.el
@@ -196,4 +196,21 @@ invoke when it is done."
"./fixtures/catch.js"
(context-coloring-test-js-catch)))
+(defun context-coloring-test-js-key-names ()
+ (context-coloring-test-assert-region-level 20 63 1))
+
+(ert-deftest-async context-coloring-test-js-mode-key-names (done)
+ (context-coloring-test-js-mode
+ "./fixtures/key-names.js"
+ (lambda (teardown)
+ (unwind-protect
+ (context-coloring-test-js-key-names)
+ (funcall teardown))
+ (funcall done))))
+
+(ert-deftest context-coloring-test-js2-mode-key-names ()
+ (context-coloring-test-js2-mode
+ "./fixtures/key-names.js"
+ (context-coloring-test-js-key-names)))
+
(provide 'context-coloring-test)
diff --git a/test/fixtures/key-names.js b/test/fixtures/key-names.js
new file mode 100644
index 0000000..d8ad17c
--- /dev/null
+++ b/test/fixtures/key-names.js
@@ -0,0 +1,6 @@
+(function () {
+ return {
+ a: 0,
+ b : 2
+ };
+}());
diff --git a/test/fixtures/property-lookup.js b/test/fixtures/property-lookup.js
new file mode 100644
index 0000000..d12d1c1
--- /dev/null
+++ b/test/fixtures/property-lookup.js
@@ -0,0 +1,4 @@
+(function () {
+ window.foo();
+ window. bar();
+}());
- [elpa] master ef461da 230/271: Stop maintaining benchmarks in readme., (continued)
- [elpa] master ef461da 230/271: Stop maintaining benchmarks in readme., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 5e46686 173/271: Remove JS tests and benchmarks. Remove color schemer., Jackson Ray Hamilton, 2015/02/05
- [elpa] master f9c3de8 252/271: Version 3.1.1., Jackson Ray Hamilton, 2015/02/05
- [elpa] master f2b5d79 264/271: Remove unnecessary .elpaignore., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 75f6705 251/271: Fix on Windows., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 8665ff3 233/271: Simplify `context-coloring-set-colors'., Jackson Ray Hamilton, 2015/02/05
- [elpa] master eaece82 263/271: Version 4.0.0., Jackson Ray Hamilton, 2015/02/05
- [elpa] master d885920 231/271: Merge branch 'feature/comments-and-strings' into develop, Jackson Ray Hamilton, 2015/02/05
- [elpa] master 96da8de 219/271: Merge branch 'master' into develop, Jackson Ray Hamilton, 2015/02/05
- [elpa] master c947690 238/271: Documentation. Cleanup. Copyright notices., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 68824f6 193/271: Add failing test for key names.,
Jackson Ray Hamilton <=
- [elpa] master 784910c 266/271: externals-list: Add context-coloring, Jackson Ray Hamilton, 2015/02/05
- [elpa] master 079a5a8 237/271: Document tests., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 5c8855f 212/271: Merge branch 'feature/key-values' into develop, Jackson Ray Hamilton, 2015/02/05
- [elpa] master 3944181 223/271: Renames. Cleanup., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 1f06301 198/271: Pass property lookup test., Jackson Ray Hamilton, 2015/02/05
- [elpa] master f836bd2 141/271: Add js2-mode test., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 32aacc9 216/271: Add customization interface., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 0830f53 104/271: Merge branch 'develop', Jackson Ray Hamilton, 2015/02/05
- [elpa] master 1df629d 222/271: Enable rainbow-mode., Jackson Ray Hamilton, 2015/02/05
- [elpa] master dc9644e 271/271: Merge branch 'master' of git://git.sv.gnu.org/emacs/elpa, Jackson Ray Hamilton, 2015/02/05