diff options
| author | Alan Mackenzie | 2017-02-12 10:59:03 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2017-02-12 10:59:03 +0000 |
| commit | f4d5b687150810129b7a1d5b006e31ccf82b691b (patch) | |
| tree | 4229b13800349032697daae3904dc3773e6b7a80 /test/lisp/progmodes/js-tests.el | |
| parent | d5514332d4a6092673ce1f78fadcae0c57f7be64 (diff) | |
| parent | 148100d98319499f0ac6f57b8be08cbd14884a5c (diff) | |
| download | emacs-comment-cache.tar.gz emacs-comment-cache.zip | |
Merge branch 'master' into comment-cachecomment-cache
Diffstat (limited to 'test/lisp/progmodes/js-tests.el')
| -rw-r--r-- | test/lisp/progmodes/js-tests.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/lisp/progmodes/js-tests.el b/test/lisp/progmodes/js-tests.el index 84749efa45b..7cb737c30e2 100644 --- a/test/lisp/progmodes/js-tests.el +++ b/test/lisp/progmodes/js-tests.el | |||
| @@ -85,6 +85,20 @@ if (!/[ (:,='\"]/.test(value)) { | |||
| 85 | (should (= (current-column) x)) | 85 | (should (= (current-column) x)) |
| 86 | (forward-line)))) | 86 | (forward-line)))) |
| 87 | 87 | ||
| 88 | (ert-deftest js-mode-auto-fill () | ||
| 89 | (with-temp-buffer | ||
| 90 | (js-mode) | ||
| 91 | (setq fill-column 70) | ||
| 92 | (insert "/* ") | ||
| 93 | (dotimes (_ 16) | ||
| 94 | (insert "test ")) | ||
| 95 | (do-auto-fill) | ||
| 96 | ;; The bug is that, after auto-fill, the second line starts with | ||
| 97 | ;; "/*", whereas it should start with " * ". | ||
| 98 | (goto-char (point-min)) | ||
| 99 | (forward-line) | ||
| 100 | (should (looking-at " \\* test")))) | ||
| 101 | |||
| 88 | (provide 'js-tests) | 102 | (provide 'js-tests) |
| 89 | 103 | ||
| 90 | ;;; js-tests.el ends here | 104 | ;;; js-tests.el ends here |