aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Set comment-multi-line in js-modeTom Tromey2017-02-041-0/+14
| | | | | | Bug#6806: * lisp/progmodes/js.el (js-mode): Set comment-multi-line to t. * test/lisp/progmodes/js-tests.el (js-mode-auto-fill): New test.
* * test/manual/indent/scss-mode.scss: Fix indentationSimen Heggestøyl2017-02-041-13/+13
|
* Fix indentation of multiline CSS property valuesSimen Heggestøyl2017-02-042-0/+45
| | | | | | | | | | | | | * lisp/textmodes/css-mode.el (css-smie-grammar): Give colons belonging to properties higher precedence. (css--colon-inside-selector-p, css--colon-inside-funcall): New functions for helping SMIE during tokenization. (css-smie--forward-token, css-smie--backward-token): Distinguish colons belonging to properties from other colons. * test/manual/indent/css-mode.css: Add tests for the changes above. * test/manual/indent/scss-mode.scss: Ditto.
* Add tests for lisp/kmacro.elGemini Lasswell2017-02-041-0/+890
| | | | * test/lisp/kmacro-tests.el: New file. (Bug#24939)
* Fix autorevert-tests on MS-WindowsEli Zaretskii2017-02-041-1/+3
| | | | | | * test/lisp/autorevert-tests.el (auto-revert-test02-auto-revert-deleted-file): Don't check that auto-revert-use-notify was reset to nil on w32.
* New macro 'ert-with-message-capture'Gemini Lasswell2017-02-042-121/+101
| | | | | | | | | | | | | | * lisp/emacs-lisp/ert-x.el (ert-with-message-capture): New macro. (Bug#25158) * test/lisp/autorevert-tests.el (auto-revert--wait-for-revert) (auto-revert-test00-auto-revert-mode) (auto-revert-test01-auto-revert-several-files) (auto-revert-test02-auto-revert-deleted-file) (auto-revert-test03-auto-revert-tail-mode) (auto-revert-test04-auto-revert-mode-dired): * test/lisp/filenotify-tests.el (file-notify-test03-autorevert): Use ert-with-message-capture.
* Add tests for lisp/emacs-lisp/testcover.elGemini Lasswell2017-02-042-0/+679
| | | | | | | * test/lisp/emacs-lisp/testcover-tests.el: New file. * test/lisp/emacs-lisp/testcover-resources/testcases.el: New file. Co-authored-by: Noam Postavsky <npostavs@users.sourceforge.net>
* Add tests for scrollingNoam Postavsky2017-02-021-0/+130
| | | | * test/manual/scroll-tests.el: New tests for scroll-margin behavior.
* * test/lisp/vc/diff-mode-tests.el: Require diff-mode.Tino Calancha2017-02-011-0/+4
|
* New test for diff-mode handling trailing --Dima Kogan2017-01-311-0/+199
| | | | test/lisp/vc/diff-mode-tests.el: New test file
* css-mode documentation lookup featureTom Tromey2017-01-301-0/+15
| | | | | | | | | | | | * etc/NEWS: Mention new feature. * lisp/textmodes/css-mode.el (css-mode-map): New defvar. (css--mdn-lookup-history): New defvar. (css-lookup-url-format): New defcustom. (css--mdn-property-regexp, css--mdn-completion-list): New defconsts. (css--mdn-after-render, css--mdn-find-symbol, css-lookup-symbol): New defuns. * test/lisp/textmodes/css-mode-tests.el (css-mdn-symbol-guessing): New test.
* test/*.el: Avoid byte-compiler warningsJuanma Barranquero2017-01-2811-18/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/abbrev-tests.el (abbrev-table-p-test): Remove unused 'let*'. * test/lisp/faces-tests.el (faces--test): New customization group. (faces--test1, faces--test2): Use it. * test/lisp/ffap-tests.el (ffap-tests-25243): Call 'mark-whole-buffer' interactively. * test/lisp/ibuffer-tests.el (ibuffer-filter-groups, ibuffer-filtering-alist) (ibuffer-filtering-qualifiers, ibuffer-save-with-custom) (ibuffer-saved-filter-groups, ibuffer-saved-filters): Defvar. (ibuffer-format-qualifier, ibuffer-unary-operand): Declare. * test/lisp/minibuffer-tests.el (completion-test1): Mark unused lexical arguments. * test/lisp/simple-tests.el (simple-test--dummy-buffer): Wrap result in 'with-no-warnings' to avoid them when the macro is invoked for effect. * test/lisp/emacs-lisp/cl-seq-tests.el (cl-seq-count-test): Mark unused lexical arguments. * test/lisp/emacs-lisp/let-alist-tests.el (let-alist-surface-test): Mark unused lexical arguments. (let-alist-cons): Remove unused let binding. * test/lisp/net/dbus-tests.el (dbus-debug): Defvar. (dbus-get-unique-name): Declare. * test/lisp/progmodes/python-tests.el (python-bob-infloop-avoid): Call 'font-lock-fontify-buffer' interactively. * test/lisp/textmodes/tildify-tests.el (tildify-space-undo-test--test): Mark unused lexical argument.
* Don't require a shell when loading htmlfontifyPhilipp Stephani2017-01-271-0/+12
| | | | | | | * lisp/htmlfontify.el (hfy-which-etags): Don't call a shell for detecting the etags version (Bug#25468). * test/lisp/htmlfontify-tests.el (htmlfontify-bug25468): Add unit test.
* Fix filenotify-tests on MS-WindowsEli Zaretskii2017-01-271-0/+14
| | | | | | | | | * test/lisp/filenotify-tests.el (file-notify-test04-file-validity) (file-notify-test05-dir-validity) (file-notify-test06-many-events) (file-notify-test08-watched-file-in-watched-dir): Manually remove the watch descriptor before calling file-notify--test-cleanup-p. (Bug#25539)
* python-mode: Fix detection for opening blocks.Hong Xu2017-01-261-0/+21
| | | | | | | | | * python.el (python-info-dedenter-opening-block-positions): There can't be any back-indented lines between an opening block and the current line. * python-tests.el (python-indent-electric-colon-4): Add an indent test case where there is one-more indented previous opening block.
* xml: Fix parsing of default namespace with quoted namesDavid Engster2017-01-241-0/+15
| | | | | | | * lisp/xml.el (xml-parse-attlist): Properly extract namespace when parsing is done with quoted symbol names (bug#23440). * test/lisp/xml-tests.el (xml-parse-test--default-namespace-qnames) (xml-parse-test-default-namespace-qnames): Test for the above.
* Fix comment detection on open parensNoam Postavsky2017-01-231-0/+85
| | | | | | | | | | | | | | | Characters having both open paren syntax and comment start syntax were being detected as open parens even when they should have been part a comment starter (Bug#24870). * src/syntax.c (in_2char_comment_start): New function, extracted from `scan_sexps_forward'. (scan_sexps_forward): Add check for a 2-char comment starter before the loop. Inside the loop, do that check after incrementing the 'from' character index. Move the single char comment syntax cases into the switch instead of special casing them before. * test/src/syntax-tests.el (parse-partial-sexp-paren-comments): (parse-partial-sexp-continue-over-comment-marker): New tests.
* Check that variable lists are actually listsPhilipp Stephani2017-01-191-0/+10
| | | | | | | | | | 'let' and 'let*' document that their first argument has to be a list, but don't check for that; instead, they allow (and silently ignore) other types. Introduce an explicit type check. * src/eval.c (Flet, FletX): Check that the variable list is indeed a list. * test/src/eval-tests.el: Add unit tests.
* Rudimentary error handling for non-main threadsEli Zaretskii2017-01-181-4/+13
| | | | | | | | | | | | | | * src/thread.c (last_thread_error): New static variable. (syms_of_threads): Staticpro it. (record_thread_error, Fthread_last_error): New functions. (syms_of_threads): Defsubr Fthread_last_error. * doc/lispref/threads.texi (Basic Thread Functions): Document thread-last-error. * test/src/thread-tests.el (thread-errors, thread-signal-early) (threads-condvar-wait): Test the values returned by thread-last-error.
* Fix JS regexp literal syntax propertization in expressionsTom Tromey2017-01-171-0/+26
| | | | | | | Bug#25465: * lisp/progmodes/js.el (js-syntax-propertize): Recognize a regexp literal after "!", "&", and "|". test/lisp/progmodes/js-tests.el (js-mode-regexp-syntax): New test.
* Fix auto-save-file-name problem in Tramp on MS WindowsMichael Albinus2017-01-171-6/+10
| | | | | | | | | | | * lisp/files.el (make-auto-save-file-name): Use `file-remote-p' rather than an ange-ftp regexp. * lisp/net/tramp.el (tramp-handle-make-auto-save-file-name): Fix a problem when running on MS Windows. * test/lisp/net/tramp-tests.el (tramp-test31-make-auto-save-file-name): Adapt test.
* Improve ffap-gopher-at-point handling of long linesNoam Postavsky2017-01-151-0/+17
| | | | | | | | | | * lisp/ffap.el (ffap-gopher-regexp): Only match the KEY part. Note setting to nil is now supported. (ffap--gopher-var-on-line): New function. (ffap-gopher-at-point): Use it instead of the old ffap-gopher-regexp which could overflow the regexp stack on long lines (Bug#25391). Use `let-alist' instead of calling `set' on local variables. * test/lisp/ffap-tests.el (ffap-gopher-at-point): New test.
* Add chained indentation to js-modeTom Tromey2017-01-132-0/+33
| | | | | | | | | | Bug#20896 * lisp/progmodes/js.el (js-chain-indent): New variable. (js--skip-term-backward, js--skip-terms-backward) (js--chained-expression-p): New functions. (js--proper-indentation): Call js--chained-expression-p. * test/manual/indent/js-chain.js: New file. * test/manual/indent/js.js: Add (non-)chained indentation test.
* Fix js-mode indentation bugTom Tromey2017-01-131-0/+6
| | | | | | | Bug#15582: * lisp/progmodes/js.el (js--find-newline-backward): New function. (js--continued-expression-p): Use it. * test/manual/indent/js.js: Add new test.
* Fix definition of EMACS in test/manual/indent/MakefileTom Tromey2017-01-131-1/+1
| | | | * test/manual/indent/Makefile (EMACS): Add one more "..".
* Fix two js-mode filling bugsTom Tromey2017-01-131-0/+64
| | | | | | | Bug#19399 and Bug#22431: * lisp/progmodes/js.el (js-mode): Set comment-line-break-function and c-block-comment-start-regexp. * test/lisp/progmodes/js-tests.el: New file.
* Fix last changeEli Zaretskii2017-01-131-9/+9
| | | | | | * test/src/thread-tests.el (threads-condvar-wait): Revert previous change. Make sure no other threads from previous tests are running, to avoid interfering with our thread counts.
* Fix the new condvar testEli Zaretskii2017-01-131-2/+3
| | | | | | * test/src/thread-tests.el (threads-condvar-wait): Enlarge the time we sleep in the main thread to let the other thread process notifications.
* Minor improvements in the new condvar testEli Zaretskii2017-01-131-11/+14
| | | | | | | | * test/src/thread-tests.el (threads-test-condvar-wait): Use with-mutex instead of emulating it inline. (threads-condvar-wait): Improve comments. Check that the new thread is alive before waiting for it to become blocked on the conditional variable.
* Fix a bug in waiting for condition variableEli Zaretskii2017-01-131-0/+41
| | | | | | | | | | | * src/thread.c (lisp_mutex_lock, lisp_mutex_unlock) (lisp_mutex_unlock_for_wait, condition_wait_callback) (condition_notify_callback): Improve commentary. (condition_wait_callback): Call post_acquire_global_lock before attempting to lock the mutex, to make sure the lock's owner is recorded correctly. * test/src/thread-tests.el (threads-condvar-wait): New test.
* Fix extracting async def type and name in python mode imenuDmitry Lazurkin2017-01-121-2/+10
| | | | | | | | | | * lisp/progmodes/python.el (python-imenu--get-defun-type-name): New function. (python-imenu--build-tree): Use python-imenu--get-defun-type-name for extract async or simple def type and name at current position (Bug#24820). * test/lisp/progmodes/python-tests.el (python-imenu-create-index-1): (python-imenu-create-flat-index-1): Add async def's.
* Convert some network test failures to skippingGlenn Morris2017-01-111-2/+2
| | | | | | | | | | These tests intermittently fail on hydra.nixos.org for unclear reasons related to starting the external process. This isn't an Emacs issue, and the failures cause noise on the emacs-buildstatus list. (Bug#24503) * test/lisp/net/network-stream-tests.el (echo-server-nowait) (connect-to-tls-ipv4-nowait): Skip rather than fail if the external process fails to start properly.
* Add support for Unicode whitespace in [:blank:]Philipp Stephani2017-01-062-1/+11
| | | | | | | | | | | | | | | | See Bug#25366. * src/character.c (blankp): New function for checking Unicode horizontal whitespace. * src/regex.c (ISBLANK): Use 'blankp' for non-ASCII horizontal whitespace. (BIT_BLANK): New bit for range table. (re_wctype_to_bit, execute_charset): Use it. * test/lisp/subr-tests.el (subr-tests--string-match-p--blank): Add unit test for [:blank:] character class. * test/src/regex-tests.el (test): Adapt unit test. * doc/lispref/searching.texi (Char Classes): Document new Unicode behavior for [:blank:].
* Turn on lexical-binding in md4.elMark Oteiza2017-01-031-0/+61
| | | | | * lisp/md4.el: Turn on lexical-binding. * test/lisp/md4-tests.el: New file.
* Finish work on filenotify-tests.elMichael Albinus2017-01-031-14/+70
| | | | | | | | | | | | * test/lisp/filenotify-tests.el (file-notify--test-monitors): New variable. (file-notify--test-cleanup, file-notify--test-monitor): Use it. (file-notify--test-read-event, file-notify-test02-events) (file-notify-test04-file-validity): Handle "gvfs-monitor-dir.exe". (file-notify-test03-autorevert) (file-notify-test08-watched-file-in-watched-dir): Set `file-notify--test-desc' for proper work of `file-notify--test-monitor'. (Bug#21804)
* Fix encoding of JSON surrogate pairsPhilipp Stephani2017-01-011-0/+3
| | | | | | | | | | | | JSON requires that such pairs be treated as UTF-16 surrogate pairs, not individual code points; cf. Bug #24784. * lisp/json.el (json-read-escaped-char): Fix decoding of surrogate pairs. (json--decode-utf-16-surrogates): New defun. * test/lisp/json-tests.el (test-json-read-string): Add test for surrogate pairs.
* Update copyright year to 2017 in masterPaul Eggert2017-01-0144-44/+44
| | | | | | Run admin/update-copyright in the master branch. This fixes files that were not already fixed in the emacs-25 branch before it was merged here.
* Remove test/automated detritus from mergePaul Eggert2017-01-019-3124/+0
|
* Merge from origin/emacs-25Paul Eggert2017-01-01141-132/+3258
|\ | | | | | | | | 2e2a806 Fix copyright years by hand 5badc81 Update copyright year to 2017
| * Update copyright year to 2017Paul Eggert2016-12-31141-141/+143
| | | | | | | | Run admin/update-copyright.
* | Further improve filenotify-tests.elKen Brown2016-12-311-4/+7
| | | | | | | | | | | | | | * test/lisp/filenotify-tests.el (file-notify--test-read-event): Adapt to file monitors of type GFamFileMonitor, which occur on Cygwin. (file-notify--test-monitor): Update doc string.
* | Checkdoc: use syntax functions instead of regexPhilipp Stephani2016-12-311-0/+13
| | | | | | | | | | | | | | | | | | | | | | In checkdoc.el, get rid of the error-prone regex to find definition forms, and use existing syntax-based navigation functions instead. This fixes a corner case with one-argument `defvar' forms. * lisp/emacs-lisp/checkdoc.el (checkdoc--next-docstring): New function. (checkdoc-next-docstring, checkdoc-defun): Use it. * test/lisp/emacs-lisp/checkdoc-tests.el (checkdoc-tests--next-docstring): Add unit test.
* | ffap-string-at-point: Limit max length of active regionTino Calancha2016-12-301-0/+54
| | | | | | | | | | | | | | | | | | Prevents that 'ffap-guesser' waste time checking large strings which are likely not valid candidates (Bug#25243). * lisp/ffap.el (ffap-max-region-length): New variable. (ffap-string-at-point): Use it. * test/lisp/ffap-tests.el: New test suite. (ffap-tests-25243): Add test for this bug.
* | Improve filenotify-tests.elMichael Albinus2016-12-291-41/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/inotify.c (Finotify_valid_p): * src/kqueue.c (Fkqueue_valid_p): * src/w32notify.c (Fw32notify_valid_p): * src/gfilenotify.c (Fgfile_valid_p): Fix typo in docstring. (Fgfile_monitor_name): New defun. (syms_of_gfilenotify): Declare Sgfile_monitor_name. * test/lisp/filenotify-tests.el (file-notify--test-read-event): New defun, derived from `file-notify--test-read-event-timeout'. Replace all calls of `read-event' by this. (file-notify--test-timeout): Fix docstring. (file-notify--test-monitor): New defun. (file-notify--deftest-remote): Do not bind `file-notify--test-read-event-timeout' anymore. (file-notify-test00-availability): Print also monitor, if existent. (file-notify--test-with-events): Add an additional `file-notify--test-read-event' call, in order to get it work after `file-notify-add-watch'. Remove special timeout for cygwin. (file-notify-test02-events): Make a better check for cygwin. (file-notify-test06-many-events): Improve event list for cygwin. (file-notify-test08-watched-file-in-watched-dir): Add cygwin case.
* | Improve filenotify-tests.el on Cygwin (Bug #21804)Ken Brown2016-12-271-39/+39
| | | | | | | | | | | | | | | | * test/lisp/filenotify-tests.el [CYGWIN] (file-notify--test-read-event-timeout): Increase. (file-notify--test-with-events): Add delay before executing body. (file-notify-test02-events, file-notify-test04-file-validity): Adjust expected results.
* | Checkdoc: Don't require a space before an arg listPhilipp Stephani2016-12-261-0/+40
| | | | | | | | | | | | | | | | | | See Bug#24998. * lisp/emacs-lisp/checkdoc.el (checkdoc-defun-regexp): Don't require a space before a argument list. * test/lisp/emacs-lisp/checkdoc-tests.el (checkdoc-tests--bug-24998): Add unit test.
* | Fix whitespace eob cleanupNoam Postavsky2016-12-241-0/+52
| | | | | | | | | | | | | | * lisp/whitespace.el (whitespace-empty-at-eob-regexp): Match any number of empty lines at end of buffer. * test/lisp/whitespace-tests.el (whitespace-cleanup-eob): New test. (whitespace-tests--cleanup-string): New helper function for tests.
* | Fix timezone detection of parse-iso8601-time-stringHong Xu2016-12-241-1/+17
| | | | | | | | | | | | | | | | | | | | * parse-time.el (parse-iso8601-time-string): Fix timezone parsing. Add a doc string. (Bug#25086) * editfns.c (Fdecode-time): Doc fix. * emacs-mime.texi (time-date): Add an example for parse-iso8601-time-string. * parse-time-tests.el (parse-time-tests): Add tests for parse-iso8601-time-string.
* | Treat incomplete integer literals as errorsPhilipp Stephani2016-12-231-0/+8
| | | | | | | | | | | | | | | | See Bug#25120. * src/lread.c (read_integer): Treat incomplete integer literals as errors. * test/src/lread-tests.el (lread-empty-int-literal): New unit test for incomplete integer literals.
* | * test/lisp/net/tramp-tests.el (tramp--test-check-files): Make it robust.Michael Albinus2016-12-231-36/+17
| |