]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/js2-mode/tests/externs.el
Merge commit 'f2f9e47725782527b5f2b52b26db7267f173fa20'
[gnu-emacs-elpa] / packages / js2-mode / tests / externs.el
index 7860058d4f674457f9b19b6e92d99f54a2634fc2..40957f600cf85fa3636fb23573562c0a36b9d274 100644 (file)
@@ -1,3 +1,24 @@
+;;; tests/externs.el --- Some tests for js2-mode.
+
+;; Copyright (C) 2009, 2011-2013  Free Software Foundation, Inc.
+
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; GNU Emacs is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
+
+;;; Code:
+
 (require 'ert)
 (require 'js2-mode)
 
@@ -20,3 +41,7 @@
     (js2-mode)
     (should (equal (js2-get-jslint-globals)
                    '("quux" "tee" "$")))))
+
+;;;TODO
+;; ensure that any symbols bound with the import syntax are added to the extern list
+;; ensure that any symbols bound with the export syntax exist in the file scope