]> code.delx.au - gnu-emacs-elpa/commitdiff
Add small clarification
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 13 Oct 2013 02:53:34 +0000 (05:53 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 13 Oct 2013 02:53:34 +0000 (05:53 +0300)
tests/parser.el

index 0176f935cabd7d1831fcef082bb040f72103c87e..f92563655d8fd34468261a1e5122c4a5c8e5112b 100644 (file)
@@ -214,6 +214,7 @@ the test."
   (let* ((scope (js2-node-at-point (point-min)))\r
          (fn-entry (js2-scope-get-symbol scope 'bar))\r
          (var-entry (js2-scope-get-symbol scope 'x)))\r
+    (should (string= (js2-name-node-name (js2-function-node-name scope)) "foo"))\r
     (should (= (js2-symbol-decl-type fn-entry) js2-FUNCTION))\r
     (should (js2-function-node-p (js2-symbol-ast-node fn-entry)))\r
     (should (= (js2-symbol-decl-type var-entry) js2-VAR))\r