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

[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();
+}());



reply via email to

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