diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/progmodes/js-tests.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lisp/progmodes/js-tests.el b/test/lisp/progmodes/js-tests.el index 99f5898525b..07e659af605 100644 --- a/test/lisp/progmodes/js-tests.el +++ b/test/lisp/progmodes/js-tests.el | |||
| @@ -118,6 +118,16 @@ if (!/[ (:,='\"]/.test(value)) { | |||
| 118 | ;; implementation not recognizing the comment example. | 118 | ;; implementation not recognizing the comment example. |
| 119 | (should-not (syntax-ppss-context (syntax-ppss)))))) | 119 | (should-not (syntax-ppss-context (syntax-ppss)))))) |
| 120 | 120 | ||
| 121 | (ert-deftest js-mode-indentation-error () | ||
| 122 | (with-temp-buffer | ||
| 123 | (js-mode) | ||
| 124 | ;; The bug previously was that requesting re-indentation on the | ||
| 125 | ;; "{" line here threw an exception. | ||
| 126 | (insert "const TESTS = [\n{") | ||
| 127 | (js-indent-line) | ||
| 128 | ;; Any success is ok here. | ||
| 129 | (should t))) | ||
| 130 | |||
| 121 | (provide 'js-tests) | 131 | (provide 'js-tests) |
| 122 | 132 | ||
| 123 | ;;; js-tests.el ends here | 133 | ;;; js-tests.el ends here |