summaryrefslogtreecommitdiff
path: root/test/automated
Commit message (Collapse)AuthorAgeFilesLines
...
* * test/automated/python-tests.el: Avoid warningsJuanma Barranquero2015-11-011-5/+7
| | | | | | | | | | | | | (python-tests-with-temp-buffer, python-tests-with-temp-file): Bind `python-indent-guess-indent-offset' to nil. # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # On branch master # Your branch is up-to-date with 'origin/master'. # # Changes to be committed: # modified: test/automated/python-tests.el #
* Minor fix in filenotify.elMichael Albinus2015-10-311-1/+1
| | | | | | * lisp/filenotify.el (file-notify--event-file-name) (file-notify--event-file1-name): Normalize result with `directory-file-name'.
* Add result messages in vc-tests.elMichael Albinus2015-10-301-26/+37
| | | | | * test/automated/vc-tests.el (vc-test--state) (vc-test--working-revision, vc-test--checkout-model): Add result messages.
* * test/automated/faces-tests.el: Add another testArtur Malabarba2015-10-301-0/+3
|
* * test/automated/faces-tests.el: New fileArtur Malabarba2015-10-301-0/+51
|
* * test/automated/character-fold-tests.el: New fileArtur Malabarba2015-10-301-0/+58
|
* * test/automated/sort-tests.el: New fileArtur Malabarba2015-10-301-0/+106
| | | | | Tests in this file are randomly generated and then tested with regular, reverse, and case-fold sorting.
* * lisp/isearch.el: Avoid an error that blocks isearchArtur Malabarba2015-10-301-0/+32
| | | | | | | | (isearch-update): Don't error if `isearch--current-buffer' has been killed. * test/automated/isearch-tests.el (isearch--test-update): New file.
* Fix bug#21766 and add testJuanma Barranquero2015-10-281-0/+22
| | | | | | | * lisp/simple.el (delete-trailing-whitespace): Save match data when calling `skip-syntax-backward'. * test/automated/simple-test.el (simple-delete-trailing-whitespace): New test.
* ; Fix comments in file-notify-tests.elMichael Albinus2015-10-271-4/+4
|
* Fall back to polling in autorevert when neededMichael Albinus2015-10-271-1/+28
| | | | | | | | | * lisp/autorevert.el (auto-revert-notify-handler): When a `stopped' event arrives from file notification, fall back to polling. * test/automated/file-notify-tests.el (file-notify-test03-autorevert): Extend test for polling when file notification ceases to work.
* Fix subtle bug in auto-revert-tests.elMichael Albinus2015-10-271-2/+2
| | | | | | * test/automated/auto-revert-tests.el (auto-revert-test02-auto-revert-mode-dired): Narrow *Messages* buffer where it belongs to. (Bug#21668)
* Fix simple-test.el testEli Zaretskii2015-10-261-0/+1
| | | | | | * test/automated/simple-test.el (simple-test--dummy-buffer): Make sure indentation doesn't use TABs, otherwise the 6th test might fail.
* Further work on `stopped' events in filenotify.elMichael Albinus2015-10-261-84/+94
| | | | | | | | | | | | | | | | | | | | * doc/lispref/os.texi (File Notifications): Rework examples. * lisp/filenotify.el (file-notify--rm-descriptor): Optional parameter. (file-notify--rm-descriptor, file-notify-callback): Improve check for sending `stopped' event. (file-notify-add-watch): Check for more events for `inotify'. * test/automated/file-notify-tests.el (file-notify--test-expected-events): New defvar. (file-notify--test-with-events): Use it. (file-notify--test-cleanup): Make it more robust when deleting directories. (file-notify--test-event-test): Check also for watched directories. (file-notify--test-event-handler): Suppress temporary .#files. (file-notify-test02-events, file-notify-test04-file-validity): Rework `stopped' events. (file-notify-test05-dir-validity): Wait for events when appropriate.
* * test/automated/simple-test.el: New fileArtur Malabarba2015-10-261-0/+183
| | | | Define tests for `newline' and `open-line'.
* Introduce `stopped' event in file notificationMichael Albinus2015-10-251-31/+77
| | | | | | | | | | | | | * lisp/filenotify.el (file-notify--rm-descriptor): New defun. (file-notify-rm-watch): Use it. (file-notify-callback): Implement `stopped' event. (file-notify-add-watch): Mention `stopped' in the docstring. Check, that upper directory exists. * test/automated/file-notify-tests.el (file-notify-test01-add-watch): Add two test cases. (file-notify-test02-events): Handle also `stopped' event. (file-notify-test04-file-validity): Add another test case.
* New library thunk.elNicolas Petton2015-10-231-0/+55
| | | | | | | | thunk.el is extracted from stream.el in ELPA, with additional tests. * lisp/emacs-lisp/thunk.el: New file. * test/automated/thunk-tests.el: New file. * etc/NEWS: Add information about thunk.el
* Fix Bug#21669Michael Albinus2015-10-231-25/+28
| | | | | | | | | | | | | * lisp/filenotify.el (file-notify-rm-watch): Improve check for calling low-level functions. * test/automated/file-notify-tests.el (file-notify--test-timeout): Decrase to 6 seconds for remote directories. (file-notify-test02-events): Expect different number of `attribute-changed' events for the local and remote cases. Apply short delays between the operations, in order to receive all events in the remote case. Combine `attribute-change' tests. (Bug#21669)
* New function seq-positionNicolas Petton2015-10-201-0/+9
| | | | | | * lisp/emacs-lisp/seq.el (seq-position): New function. * test/automated/seq-tests.el: New tests for seq-position. * doc/lispref/sequences.texi: Add documentation for `seq-position'.
* Solve timimg issues in file-notify-tests.elMichael Albinus2015-10-171-3/+15
| | | | | | * test/automated/file-notify-tests.el (file-notify-test02-events): Rectify `attribute-change' tests. There are timing issues with gfilenotify.
* Spelling fixesPaul Eggert2015-10-142-2/+2
| | | | | | * configure.ac (bitmapdir): Fix misspelling of bmd_acc. * test/automated/coding-tests.el (ert-test-coding-bogus-coding-systems): Fix misspelling of nonexistent file name.
* * test/automated/file-notify-tests.el (file-notify--test-timeout):Michael Albinus2015-10-131-1/+2
| | | | | Add docstring. Increase to 10 seconds for remote directories. (Bug#21669)
* * test/automated/tabulated-list-test.el: New fileArtur Malabarba2015-10-071-0/+118
| | | | Test bug#21639 and some basic functionality.
* Add test for `self-insert-command' (bug#21633)Nicolas Richard2015-10-071-0/+34
| | | | * test/automated/cmds-tests.el: New file.
* * test/automated/package-test.el (package-test-install-single):Artur Malabarba2015-10-061-0/+6
| | | | Add a test for bug#21625.
* Add first unit tests for auth-source.elDamien Cassou2015-10-051-0/+178
| | | | * test/automated/auth-source-tests.el: New file.
* * test/automated/coding-tests.el: New file.Eli Zaretskii2015-10-041-0/+50
|
* Maintain ordering of JSON object keys by defaultSimen Heggestøyl2015-10-031-3/+10
| | | | | | | | | | | | | | * lisp/json.el (json-object-type): Mention order handling in doc-string. (json--plist-reverse): New utility function. (json-read-object): Maintain ordering for alists and plists. (json-pretty-print): Ensure that ordering is maintained. * test/automated/json-tests.el (test-json-plist-reverse): New test for `json--plist-reverse'. (json-read-simple-alist): Update test to accommodate for changes in `json-read-object'. * etc/NEWS: Document the new behavior of the pretty printing functions.
* ; Remove extraneous "coding: utf-8" specifications in Elisp filesDmitry Gutov2015-09-292-2/+1
|
* Adapt file-notify-test02-events test caseMichael Albinus2015-09-231-5/+16
| | | | | * test/automated/file-notify-tests.el (file-notify-test02-events): Create a new watch for every test.
* Another fix of file-notify-tests for w32notifyEli Zaretskii2015-09-211-2/+2
| | | | | | * test/automated/file-notify-tests.el (file-notify-test02-events): Further adaptation for w32notify: reduce the number of expected 'changed' events. (Bug#21435)
* Adapt tests and manual for w32notifyMichael Albinus2015-09-211-85/+76
| | | | | | | | | | | | * doc/lispref/os.texi (File Notifications): w32notify does not send `attribute-changed' events. * test/automated/file-notify-tests.el (file-notify--test-with-events): Simplify parameters. Adapt all callees. (file-notify-test02-events): w32notify does not send `attribute-changed' events. (file-notify-test04-file-validity, file-notify-test05-dir-validity): Do not skip in case of w32notify. Simply ignore this part of the test.
* Improve file notifications, especially for TrampMichael Albinus2015-09-201-29/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/files.texi (Magic File Names): Mention `file-notify-valid-p'. * doc/lispref/os.texi (File Notifications): Describe `file-notify-valid-p'. * etc/NEWS: Add `file-notify-valid-p'. * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch): Improve implementation. (tramp-gvfs-monitor-file-process-filter): Rename from `tramp-gvfs-file-gvfs-monitor-file-process-filter'. Delete process if appropriate. * lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch): Improve implementation. (tramp-sh-gvfs-monitor-dir-process-filter): Rename from `tramp-sh-file-gvfs-monitor-dir-process-filter'. Delete process if appropriate. (tramp-sh-inotifywait-process-filter): Rename from `tramp-sh-file-inotifywait-process-filter'. Delete process if appropriate. * lisp/net/tramp.el (tramp-handle-file-notify-rm-watch): Use `delete-process' (tramp-handle-file-notify-valid-p): Check also, that file or directory to be watched still exists. * test/automated/file-notify-tests.el (file-notify--test-timeout): New defun. Use it at all places a timeout is needed. (file-notify--test-cleanup): Delete directories recursively. Cleanup also Tramp connections. (file-notify-test02-events): Add tests for `attribute-change'. (file-notify-test04-file-validity, file-notify-test05-dir-validity): Add tests for `file-notify-rm-watch'.
* Backslash cleanup in Elisp source filesPaul Eggert2015-09-172-7/+7
| | | | | | | | | | | This patch should not change behavior. It typically omits backslashes where they are redundant (e.g., in the string literal "^\$"). In a few places, insert backslashes where they make regular expressions clearer: e.g., replace "^\*" (equivalent to "^*") with "^\\*", which has the same effect as a regular expression. Also, use ‘\ %’ instead of ‘\%’ when avoiding confusion with SCCS IDs, and similarly use ‘\ $’ instead of ‘\$’ when avoiding confusion with RCS IDs, as that makes it clearer that the backslash is intended.
* Some more minor backslash fixesPaul Eggert2015-09-172-5/+5
| | | | | | * test/automated/compile-tests.el (compile-tests--test-regexps-data): * test/automated/info-xref.el (info-xref-test-write-file): Double backslashes in strings.
* Minor quoting fixes in scripts and docPaul Eggert2015-09-161-1/+1
| | | | | | Prefer straight quotes in random script files, as they are not converted. Prefer grave quotes in a couple of places in the manual that were missed earlier, as these quotes are converted.
* More adaptations in file-notify-tests.elEli Zaretskii2015-09-161-0/+3
| | | | | | * test/automated/file-notify-tests.el (file-notify-test05-dir-validity): Skip for w32notify in batch-mode. (Bug#21432)
* Adapt test in file-notify-tests.elMichael Albinus2015-09-161-1/+5
| | | | | | * test/automated/file-notify-tests.el (file-notify-test04-file-validity): Skip for w32notify in batch-mode. Add test lost last commit.
* Fix a bug in elisp--xref-find-definitions related to cl-generic defaultsStephen Leake2015-09-151-22/+22
| | | | | | | | | * lisp/progmodes/elisp-mode.el (elisp--xref-find-definitions): Fix bug with cl-generic defaults. (elisp--xref-find-references): Add doc string. * test/automated/elisp-mode-tests.el (xref-elisp-generic-*): Improve tests to find bug.
* Adapt tests in auto-revert-tests.elMichael Albinus2015-09-151-41/+21
| | | | | | | | | * test/automated/auto-revert-tests.el (auto-revert--timeout): Make it a defconst. (auto-revert--wait-for-revert): New defun. (auto-revert-test00-auto-revert-mode) (auto-revert-test01-auto-revert-tail-mode) (auto-revert-test02-auto-revert-mode-dired): Use it.
* Fix the file-notify tests for watch validation on w32Eli Zaretskii2015-09-151-6/+6
| | | | | | | | | * test/automated/file-notify-tests.el (file-notify-test04-file-validity): Move the directory deletion out of the file-notify--test-with-events macro. (file-notify-test04-file-validity) (file-notify-test05-dir-validity): Enlarge the timeout of read-event to 0.5, as 0.1 is borderline on w32. (Bug#21432)
* Adaot file-notify-tests.el test casesMichael Albinus2015-09-141-24/+16
| | | | | | | | | | | | | | | | | | * lisp/filenotify.el (file-notify-rm-watch): Ignore `file-notify-error'. * src/inotify.c (Finotify_valid_p): Adapt docstring. * test/automated/file-notify-tests.el () (file-notify-test03-autorevert) (file-notify-test04-file-validity) (file-notify-test04-file-validity-remote) (file-notify-test05-dir-validity) (file-notify-test05-dir-validity-remote): Adapt docstring. (file-notify-test04-file-validity): Let events arrive before calling final `file-notify-valid-p'. Do not ignore errors. (file-notify-test05-dir-validity): Do not manipulate `temporary-file-directory', it isn't necessary. Let events arrive before calling final `file-notify-valid-p'. Do not ignore errors.
* Fix tests for file-notify-valid-p.Tassilo Horn2015-09-141-20/+26
|
* Test file-notify-valid-p.Tassilo Horn2015-09-141-0/+59
| | | | | | * test/automated/file-notify-tests.el (file-notify-test04-file-validity, file-notify-test05-dir-validity): New tests.
* Fix tests in file-notify-tests.elMichael Albinus2015-09-121-24/+13
| | | | | | | | | | * test/automated/file-notify-tests.el: Remove Tramp declarations. (file-notify-test00-availability): Print remote command w/o Tramp internal functions. (file-notify-test02-events, file-notify-test02-events-remote): Adapt docstring. (file-notify-test03-autorevert): Use `format-message' when inspecting *Messages* buffer.
* Add seq-findNicolas Petton2015-09-111-0/+10
| | | | | | | | | | | This function is similar to `seq-some' but returns the found element. In the cases where nil can be the found element, a sentinel optional argument can be provided to avoid ambiguities. * lisp/emacs-lisp/seq.el (seq-find): New function. * test/automated/seq-tests.el (test-seq-find): Add tests for `seq-find'. * doc/lispref/sequences.texi (Sequence Functions): Add documentation for seq-find.
* Document file-notify--test-with-events.Tassilo Horn2015-09-101-0/+2
| | | | | * test/automated/file-notify-tests.el (file-notify--test-with-events): Add docstring.
* Report used native library in file-notify-tests.elMichael Albinus2015-09-101-0/+20
| | | | | | | * test/automated/file-notify-tests.el (tramp-get-remote-gvfs-monitor-dir) (tramp-get-remote-inotifywait): Declare them. (file-notify-test00-availability): Print used native library.
* Improve file-notify-testsTassilo Horn2015-09-101-41/+83
| | | | | | | | | * test/automated/file-notify-tests.el: Use lexical-binding (file-notify--test-cleanup): New function. (file-notify-test00-availability, file-notify-test01-add-watch) (file-notify-test02-events, file-notify-test03-autorevert): Use it. (file-notify--test-with-events): New macro. (file-notify-test02-events): Use it.
* * test/automated/file-notify-tests.el (file-notify-test02-events):Glenn Morris2015-09-091-1/+1
| | | | Fix recent change.