diff options
| author | Paul Eggert | 2016-05-13 07:45:30 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-05-13 07:45:30 -0700 |
| commit | 1adfb5ee55d16cd3d9d78998ae7bbb8e5708d9c5 (patch) | |
| tree | 8a02e7689c33e13e15120508d724c497a14847c4 /test | |
| parent | 97c05cc892af85abd9438d2f685d08c557a0d9fb (diff) | |
| parent | 9c2a1a264cf418fcf187b95b49fe986b32ceabef (diff) | |
| download | emacs-1adfb5ee55d16cd3d9d78998ae7bbb8e5708d9c5.tar.gz emacs-1adfb5ee55d16cd3d9d78998ae7bbb8e5708d9c5.zip | |
Merge from origin/emacs-25
9c2a1a2 * doc/misc/texinfo.tex: Sync from gnulib.
66cd4d8 * lisp/emacs-lisp/find-func.el (find-feature-regexp) (find-al...
1a5a05c Do not mistake colon at the end of regexp for slash symbol
4c5a00b Make package-install-from-buffer not move point
9596ea1 ; Revert "* emacs-lisp/lisp-mnt.el (lm-header): save-excursion"
f79c352 Redo the fix for bug#21839
8d2f78c Don't treat JS spread as contination method call
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/progmodes/ruby-mode-tests.el | 3 | ||||
| -rw-r--r-- | test/manual/indent/js.js | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/lisp/progmodes/ruby-mode-tests.el b/test/lisp/progmodes/ruby-mode-tests.el index 7e85fb83edd..52126a3bdf1 100644 --- a/test/lisp/progmodes/ruby-mode-tests.el +++ b/test/lisp/progmodes/ruby-mode-tests.el | |||
| @@ -146,6 +146,9 @@ VALUES-PLIST is a list with alternating index and value elements." | |||
| 146 | (ert-deftest ruby-slash-char-literal-is-not-mistaken-for-regexp () | 146 | (ert-deftest ruby-slash-char-literal-is-not-mistaken-for-regexp () |
| 147 | (ruby-assert-state "?/" 3 nil)) | 147 | (ruby-assert-state "?/" 3 nil)) |
| 148 | 148 | ||
| 149 | (ert-deftest ruby-regexp-is-not-mistaken-for-slash-symbol () | ||
| 150 | (ruby-assert-state "x = /foo:/" 3 nil)) | ||
| 151 | |||
| 149 | (ert-deftest ruby-indent-simple () | 152 | (ert-deftest ruby-indent-simple () |
| 150 | (ruby-should-indent-buffer | 153 | (ruby-should-indent-buffer |
| 151 | "if foo | 154 | "if foo |
diff --git a/test/manual/indent/js.js b/test/manual/indent/js.js index 23fae17b3ce..b40d47b3e5d 100644 --- a/test/manual/indent/js.js +++ b/test/manual/indent/js.js | |||
| @@ -103,6 +103,12 @@ Foobar | |||
| 103 | console.log(num); | 103 | console.log(num); |
| 104 | }); | 104 | }); |
| 105 | 105 | ||
| 106 | var z = [ | ||
| 107 | ...iterableObj, | ||
| 108 | 4, | ||
| 109 | 5 | ||
| 110 | ] | ||
| 111 | |||
| 106 | var arr = [ | 112 | var arr = [ |
| 107 | -1, 2, | 113 | -1, 2, |
| 108 | -3, 4 + | 114 | -3, 4 + |