Commit 13b9d954 authored by Sebastian Wiesner's avatar Sebastian Wiesner

Test against js3 again

This reverts commit 9e7cffc8.
parent 9e7cffc8
......@@ -19,6 +19,7 @@
(depends-on "haskell-mode")
(depends-on "web-mode")
(depends-on "js2-mode")
(depends-on "js3-mode")
(depends-on "less-css-mode")
(depends-on "lua-mode")
(depends-on "cperl-mode")
......
......@@ -42,6 +42,7 @@
haskell-mode
web-mode
js2-mode
js3-mode
less-css-mode
lua-mode
cperl-mode
......@@ -55,7 +56,8 @@
(eval-when-compile
;; Prevent warnings about unused lexical variables
(require 'js2-mode))
(require 'js2-mode)
(require 'js3-mode))
(require 'sh-script) ; For `sh-set-shell'
......@@ -469,9 +471,10 @@ See URL `https://github.com/flycheck/flycheck/issues/45' and URL
:expected-result (flycheck-testsuite-fail-unless-checker 'javascript-jshint)
;; Silence JS2 and JS3 parsers
(let ((js2-mode-show-parse-errors nil)
(js2-mode-show-strict-warnings nil))
(js2-mode-show-strict-warnings nil)
(js3-mode-show-parse-errors nil))
(flycheck-testsuite-should-syntax-check
"checkers/javascript-jshint-syntax-error.js" '(js-mode js2-mode) nil
"checkers/javascript-jshint-syntax-error.js" '(js-mode js2-mode js3-mode) nil
'(3 25 "Unclosed string." error)
'(4 1 "Unclosed string." error)
'(3 11 "Unclosed string." error)
......@@ -482,14 +485,14 @@ See URL `https://github.com/flycheck/flycheck/issues/45' and URL
"Use eval()"
:expected-result (flycheck-testsuite-fail-unless-checker 'javascript-jshint)
(flycheck-testsuite-should-syntax-check
"checkers/javascript-jshint-error.js" '(js-mode js2-mode) nil
"checkers/javascript-jshint-error.js" '(js-mode js2-mode js3-mode) nil
'(3 1 "eval can be harmful." error)))
(ert-deftest checker-javascript-jshint-warning ()
"An unused variable."
:expected-result (flycheck-testsuite-fail-unless-checker 'javascript-jshint)
(flycheck-testsuite-should-syntax-check
"checkers/javascript-jshint-warning.js" '(js-mode js2-mode) nil
"checkers/javascript-jshint-warning.js" '(js-mode js2-mode js3-mode) nil
'(5 nil "Unused variable: 'foo'" warning)))
(ert-deftest checker-json-jsonlint-error ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment