summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | Don't print empty keymaps in `C-h b'Lars Ingebrigtsen2021-11-011-40/+26
| | | | | | | | | | | | * lisp/help.el (describe-map-tree): Don't print the heading if the keymap is empty (bug#22334). Tweak the look to compress it more vertically.
* | Adapt emba control filesMichael Albinus2021-10-312-8/+8
| | | | | | | | | | | | | | | | | | * test/infra/Dockerfile.emba: Do not generate debug info. * test/infra/gitlab-ci.yml (variables, default): Revert timeout back to three hours. (.job-template): Comment test prints. (test-all-inotify): Exclude emacs-module-tests.el.
* | Add test for Bug#51527Stefan Kangas2021-10-311-0/+6
| | | | | | | | | | * test/src/keymap-tests.el (keymap-lookup-key/menu-non-symbol): New test.
* | eieio-core.el: Make slot-value work on defstructsStefan Monnier2021-10-311-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adjust the values in EIEIO's index-tables so they are compatible with those of defstructs. * lisp/emacs-lisp/eieio-core.el (eieio--slot-name-index): Don't add the `eieio--object-num-slots` offset. (eieio-defclass-internal): Add the `eieio--object-num-slots` offset here instead. (eieio-oref): Allow its use on `cl-structure-object`. * lisp/emacs-lisp/eieio.el (eieio-pcase-slot-index-from-index-table): Don't need to add the `eieio--object-num-slots` offset. * doc/misc/eieio.texi (Accessing Slots, Accessing Slots): Mention the use on structs. * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test-defstruct-slot-value): New test.
* | Remove workaround for fixed Bug#6581 from ertStefan Kangas2021-10-313-53/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert-equal-including-properties): Make into obsolete function alias for 'equal-including-properties'. * test/src/editfns-tests.el (format-properties): * test/lisp/emacs-lisp/ert-x-tests.el (ert-propertized-string) (ert-test-run-tests-interactively-2): Don't use above obsolete name. (ert--explain-equal-including-properties-rec): New function. (ert--explain-equal-including-properties): Use as an explainer for 'equal-including-properties' now that Bug#6581 is fixed. * test/lisp/emacs-lisp/ert-tests.el (ert-test-explain-equal-string-properties): Expand test. (ert-test-equal-including-properties): Merge test into above expanded test.
* | Fix bug with string values in equal-including-propertiesStefan Kangas2021-10-312-14/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/intervals.c (intervals_equal_1): Factor out from intervals_equal. Optionally use Fequal for comparison of string values in property lists. (intervals_equal): Update for the above. (compare_string_intervals): Use the above optional Fequal comparison to fix a bug where 'equal-including-properties' compared strings with eq, instead of equal. (Bug#6581) * test/src/fns-tests.el (fns-tests-equal-including-properties) (fns-tests-equal-including-properties/string-prop-vals): New tests. * test/lisp/emacs-lisp/ert-tests.el (ert-test-equal-including-properties): Remove parts testing 'equal-including-properties'. * lisp/emacs-lisp/ert.el (ert-equal-including-properties): Add FIXME that this should be removed.
* | Merge from origin/emacs-28Glenn Morris2021-10-291-27/+29
|\| | | | | | | | | | | 52e7049b58 * lisp/loadup.el: Unbreak build. 91e7df281e Move lisp/shorthands.el to lisp/emacs-lisp/shorthands.el 00103154e0 Some Tramp changes, mainly in tramp-tests.el
| * Some Tramp changes, mainly in tramp-tests.elMichael Albinus2021-10-291-27/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (External packages): Don't use Tramp internals. * lisp/net/tramp-gvfs.el (tramp-gvfs-handler-mounted-unmounted): Protect `tramp-make-tramp-file-name' call. * lisp/net/tramp.el (tramp-make-tramp-file-name): Set advertised calling conventions. * test/lisp/net/tramp-tests.el (tramp-test18-file-attributes): Adapt test. (tramp--test-supports-processes-p): New defun. (tramp-test28-process-file, tramp-test29-start-file-process) (tramp-test30-make-process, tramp-test32-shell-command) (tramp-test32-shell-command-dont-erase-buffer) (tramp-test34-explicit-shell-file-name, tramp-test35-exec-path) (tramp-test44-asynchronous-requests): Use it.
| * Be more allowing when looking for menu-bar itemsStefan Kangas2021-10-281-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Don't merge to master. This is a safe-for-release fix for Bug#50752. * src/keymap.c (lookup_key_1): Factor out function from Flookup_key. (Flookup_key): Be case insensitive when looking for Qmenu_bar items. (Bug#50752) * test/src/keymap-tests.el (keymap-lookup-key/mixed-case) (keymap-lookup-key/mixed-case-multibyte): New tests.
* | Add some gnus-short-group-name testsMorgan J. Smith2021-10-291-0/+52
| | | | | | | | | | * test/lisp/gnus/gnus-group-tests.el (gnus-short-group-name): Add some gnus-short-group-name tests (bug#51450).
* | Indent cl-flet-like forms correctly in incomplete expressionsakater2021-10-281-0/+121
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/lisp-mode.el (lisp--local-defform-body-p): Support incomplete sexps * test/lisp/progmodes/elisp-mode-resources/flet.erts: Add tests for incomplete sexps (bug#9622).
* | Be more allowing when looking for menu-bar itemsStefan Kangas2021-10-281-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/keymap.c (lookup_key_1): Factor out function from Flookup_key. (Flookup_key): Be case insensitive, and treat spaces as dashes, when looking for Qmenu_bar items. (Bug#50752) * test/src/keymap-tests.el (keymap-lookup-key/mixed-case) (keymap-lookup-key/mixed-case-multibyte) (keymap-lookup-keymap/with-spaces) (keymap-lookup-keymap/with-spaces-multibyte) (keymap-lookup-keymap/with-spaces-multibyte-lang-env): New tests.
* | Allow matching non-.git gitlab and gitea URLs in bug-referenceMiha Rihtaršič2021-10-271-4/+70
| | | | | | | | | | | | * lisp/progmodes/bug-reference.el (bug-reference--build-forge-setup-entry): Allow matching non-.git gitlab and gitea URLs, with and without slashes (bug#51316).
* | ; * test/lisp/files-tests.el: Fix last commit.Stefan Kangas2021-10-271-1/+0
| |
* | Add test for file-name-baseStefan Kangas2021-10-271-0/+9
| | | | | | | | * test/lisp/files-tests.el (files-tests-file-name-base): New test.
* | * test/infra/gitlab-ci.yml (build-image-inotify): Increase timeout.Michael Albinus2021-10-261-3/+4
| | | | | | | | (test-native-comp-speed0): Adapt make_params.
* | ; * test/lisp/progmodes/elisp-mode-tests.el: repair test failureMattias Engdegård2021-10-261-3/+3
| | | | | | | | | | The test used an internal variable that has been renamed; use the new name. (Any variable would do here.)
* | Merge from origin/emacs-28Glenn Morris2021-10-251-0/+111
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | a2c17e115e (origin/emacs-28) Merge branch 'emacs-28' of git.savannah.... fde56eeb76 Revert "Fix a typo in emacs-lisp-intro.texi" 4779d3ba19 * doc/lispref/functions.texi (Mapping Functions): Use #' w... 85ea3f7f47 Fix issue with interpreting ANSI codes in eshell 50f9436146 image-dired: Doc fix to better explain thumbnail generation bb475e10b9 Clarify two image-dired docstrings f5b4bb4a6f Fix flymake example backend conditions in the manual 0771d8939a * etc/PROBLEMS: Mention problems with regexp matcher. (Bu... ee579033b9 * test/lisp/repeat-tests.el: New file. 7385a7667f * lisp/tab-bar.el (tab-bar-move-repeat-map): Fix alias bin... 56caf1c9b8 Use restrictive umask when creating image-dired data 3b5de7f991 ; lisp/transient.el: Revert some misguided stylistic fixes.
| * * test/lisp/repeat-tests.el: New file.Juri Linkov2021-10-241-0/+111
| |
* | Tweak bug-reference-testsLars Ingebrigtsen2021-10-241-8/+8
| | | | | | | | * test/lisp/progmodes/bug-reference-tests.el: Tweak tests a bit.
* | Allow matching non-.git URLs in bug-referenceLars Ingebrigtsen2021-10-241-0/+62
| | | | | | | | | | | | * lisp/progmodes/bug-reference.el (bug-reference--build-forge-setup-entry): Allow matching non-.git URLs, with and without slashes (bug#51316).
* | Expand tests for image-type-from-file-headerStefan Kangas2021-10-241-5/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/image-tests.el (image-tests--files): New defconst. (image-tests--type-from-file-header): New defun. (image-type-from-file-header-test/jpeg) (image-type-from-file-header-test/pbm) (image-type-from-file-header-test/png) (image-type-from-file-header-test/svg) (image-type-from-file-header-test/tiff) (image-type-from-file-header-test/webp) (image-type-from-file-header-test/xbm) (image-type-from-file-header-test/xpm): New tests. (image-type-from-file-header-test): Delete test.
* | Add tests for gif to src/image-tests.elStefan Kangas2021-10-242-31/+48
| | | | | | | | | | | | | | | | | | * test/src/image-tests.el (image-tests--images): Rename from image-tests-files. Add gif. (image-tests-image-size/gif) (image-tests-image-mask-p/gif) (image-tests-image-metadata/gif): New tests. * test/data/image/black.gif: New file.
* | Check for image library in image-dired-tests.elMichael Albinus2021-10-231-0/+1
| | | | | | | | | | * test/lisp/image-dired-tests.el (image-dired-tests-get-exif-file-name): Check for jpeg library.
* | * test/infra/gitlab-ci.yml (variables, default): Increase timeout to 4 hours.Michael Albinus2021-10-231-3/+3
| |
* | Partially remove exiftool dependency from image-dired.elStefan Kangas2021-10-231-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/image-dired.el (exif): Require. (image-dired-cmd-read-exif-data-program) (image-dired-cmd-read-exif-data-options) (image-dired-get-exif-data): Make obsolete in favour of using exif.el. This removes a dependency on external exiftool for some operations. (image-dired-get-exif-file-name) (image-dired-thumbnail-set-image-description): Use exif.el functions instead of exiftool. * lisp/image/exif.el (exif-tag-alist): Add description and copyright fields. * test/lisp/image-dired-tests.el: New file.
* | Add new function exif-fieldStefan Kangas2021-10-231-13/+8
| | | | | | | | | | | | | | | | * test/lisp/image/exif-tests.el (exif-elem): Move function from here... * lisp/image/exif.el (exif-field): ...to here, and rename. (exif-orientation): * test/lisp/image/exif-tests.el (test-exif-parse) (test-exif-parse-short): Use above new function.
* | Merge from origin/emacs-28Glenn Morris2021-10-225-16/+18
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b0d64be0bc (origin/emacs-28) Improve some NEWS entries 7fde84e881 Improve documentation of syntax-ppss-context slightly 5ecbed01b2 ; * test/lisp/mh-e/mh-utils-tests.el: Update macro declara... 168665da59 Move some xwidget entries efde024361 time-stamp-tests: improvements to test macros 06c944cff1 Fix rfc6068-parse-mailto-url autoload 9b6b5e37ef Regexp-quote github domains in bug-reference 1f6cdeb12c Ensure valid end/beginning lines in message-mark-inserted-... 9b46150ab0 * etc/NEWS: Improve 'repeat-mode' entry. 9c37b812da ; * lisp/repeat.el (repeat-mode): Fix docstring typo. caf87d80fa * lisp/repeat.el (repeat-keep-prefix): Expand description. 24083c8d13 * lisp/net/eww.el (eww-retrieve-command): Add :tag. cf7d8fb1d7 Add description of cards to etc/refcards/README d2849cc645 Fix 'calculate-lisp-indent' when "[" starts containing sex... 2a0a368ddc Fix typo in doc/emacs/anti.texi 9529e1d2fb Update doc of Edebug specification for macros 5bc522b4f4 ; * lisp/simple.el (kill-region): A better fix for bug#51320. ee6bdd6eef Fix non-interactive behavior of 'kill-region' 2b7655ca0e ; More accurate doc string for 'tab-bar-format' 2841e26744 * test/lisp/dabbrev-tests.el: Use 'kbd' for readable keys. 1cdb4d2077 * lisp/menu-bar.el (menu-bar-keymap): Add optional arg KEY... # Conflicts: # etc/NEWS # lisp/progmodes/bug-reference.el
| * ; * test/lisp/mh-e/mh-utils-tests.el: Update macro declarations.Stephen Gildea2021-10-221-1/+3
| |
| * time-stamp-tests: improvements to test macrosStephen Gildea2021-10-221-5/+8
| | | | | | | | | | | | test/lisp/time-stamp-tests.el: Update macro declarations. (formatz-generate-tests): Don't nconc onto a constant list. Tests now run 12% faster in batch mode.
| * * test/lisp/dabbrev-tests.el: Use 'kbd' for readable keys.Juri Linkov2021-10-213-10/+7
| | | | | | | | | | | | | | (dabbrev-expand-test, dabbrev-completion-test) (dabbrev-completion-test-with-argument): Use 'kbd' to format keys for 'execute-kbd-macro'. (dabbrev-expand-test): Fix docstring.
* | Adapt some emba parametersMichael Albinus2021-10-222-3/+3
| | | | | | | | | | | | * test/infra/Dockerfile.emba (emacs-inotify): Reduce debug options. * test/infra/gitlab-ci.yml (test-native-comp-speed0): Adapt make_params.
* | Add WebP image format support (Bug#51296)Stefan Kangas2021-10-223-5/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (--with-webp): New option. (HAVE_WEBP): New variable. (emacs_config_features): Add webp. * src/image.c (enum webp_keyword_index) [HAVE_WEBP]: New enum. (webp_format) [HAVE_WEBP]: New variable. (webp_image_p, init_webp_functions, webp_load) [HAVE_WEBP]: New functions for WebP support. (image_types) [HAVE_WEBP]: Define WebP format. (syms_of_image) <Qwebp> [HAVE_WEBP]: New DEFSYM. Add image type Qwebp. * src/Makefile.in (LIBIMAGE): Add WEBP_LIBS. * lisp/files.el (auto-mode-alist): * lisp/image-file.el (image-file-name-extensions): * lisp/image.el (image-type-header-regexps) (image-type-file-name-regexps, image-type-auto-detectable): Add WebP support. * lisp/term/w32-win.el (dynamic-library-alist): Add the libwebp DLL. * INSTALL: * admin/CPP-DEFINES: * doc/lispref/display.texi (Image Formats, Other Image Types): * nt/INSTALL: Document WebP support. * test/lisp/image-tests.el (image-find-image) (image-type-from-file-name): Expand tests. * test/src/image-tests.el (image-tests--files): Add WebP. (image-tests-image-size/webp, image-tests-image-mask-p/webp) (image-tests-image-metadata/webp): New tests. * test/data/image/black.webp: New file.
* | Configure Emacs on emba with debug optionsMichael Albinus2021-10-211-2/+3
| | | | | | | | | | * test/infra/Dockerfile.emba (emacs-base): Install gdb. (emacs-inotify): Configure debug options.
* | Merge from origin/emacs-28Glenn Morris2021-10-216-79/+95
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0545c70c16 (origin/emacs-28) ; * src/keyboard.c (readable_events): Ad... 805ed8d318 Fix todo-mode AOT test failures (bug#51308) 8f42ff31f6 Fix hi-lock AOT test failures (bug#51308) 8002fcd4b9 Fix socks test 4540130312 ; Fix typo 59df93e2dd * lisp/help.el (help--analyze-key): Add new arg BUFFER (bu... cb8b12b56d Improve docstrings and NEWS item of 'repeat-mode' 06fe499614 * lisp/tab-bar.el (tab-bar-menu-bar): New command (bug#512... 8358da9c4c Display a tab bar item as sunken when appropriate 29fdc65860 Fix tab bar item highlight when a mouse click is dropped 7236592668 Refer to mouse-highlight from make-pointer-invisible docst... cf4394a397 * etc/PROBLEMS: Add hex codepoint for NO-BREAK SPACE 2d647e88fa Describe how to debug fontconfig issues c916040921 Adapt Tramp tests 1bb14f93f1 Convert ANSI color definitions in themes to use faces (e.g... 8e7cd29712 Revert "Revert back to using ESC as viper-ESC-key again" 91d71b38a3 Fix inset rectangle corners when sides aren't drawn (bug#5... 5c1a575ef4 Don't use color escape sequences in vc-git-expanded-log-entry d7f595cc89 Code cleanup in tramp-tests.el 548a5db611 ; etc/NEWS fix wording # Conflicts: # etc/NEWS
| * Fix todo-mode AOT test failures (bug#51308)Lars Ingebrigtsen2021-10-211-1/+1
| |
| * Fix hi-lock AOT test failures (bug#51308)Lars Ingebrigtsen2021-10-211-5/+10
| |
| * Fix socks testLars Ingebrigtsen2021-10-211-1/+1
| | | | | | | | | | * test/lisp/net/socks-tests.el (socks-tests-v4-basic): Fix failure under native-comp (bug#51308).
| * ; Fix typoStefan Kangas2021-10-201-1/+1
| |
| * Adapt Tramp testsMichael Albinus2021-10-202-33/+36
| | | | | | | | | | | | | | | | | | | | | | * test/lisp/net/tramp-archive-tests.el (tramp-archive-test45-auto-load): Adapt code snippet. * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process) (tramp-test30-make-process): Adapt tests. (tramp--test-supports-set-file-modes-p): Renamed from `tramp--test-supports-file-modes-p'. Adapt all callees. (tramp-test35-exec-path): Use it.
| * Code cleanup in tramp-tests.elMichael Albinus2021-10-191-42/+50
| | | | | | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process) (tramp-test30-make-process): Extend tests. (tramp--test-out-of-band-p): New defun. (tramp--test-windows-nt-and-out-of-band-p) (tramp-test42-utf8-with-stat, tramp-test42-utf8-with-perl) (tramp-test42-utf8-with-ls): Use it. (tramp--test-windows-nt-or-smb-p): Use `tramp--test-windows-nt-p'.
* | Add a comment to the Turkish casefiddle testLars Ingebrigtsen2021-10-211-0/+3
| |
* | Add some tests for floatfns.cStefan Kangas2021-10-201-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | * test/src/floatfns-tests.el (floatfns-tests-cos) (floatfns-tests-sin, floatfns-tests-tan, floatfns-tests-isnan) (floatfns-tests-exp, floatfns-tests-expt, floatfns-tests-log) (floatfns-tests-sqrt, floatfns-tests-abs, floatfns-tests-logb) (floatfns-tests-ceiling, floatfns-tests-floor) (floatfns-tests-round, floatfns-tests-truncate) (floatfns-tests-fceiling, floatfns-tests-ffloor) (floatfns-tests-fround, floatfns-tests-ftruncate) (divide-extreme-sign): New tests.
* | Further fixes for Turkish case changes in unibyte stringsLars Ingebrigtsen2021-10-201-0/+13
| | | | | | | | | | | | | | * src/casefiddle.c (struct casing_context): Add new slot to keep track of what the previous operation was. (case_character_impl): Set it. (do_casify_unibyte_string): Use it to handle Turkish correctly.
* | Add some tests for fns.cStefan Kangas2021-10-201-0/+23
| | | | | | | | | | | | * test/src/fns-tests.el (fns-tests-identity, fns-tests-random) (fns-tests-length, fns-tests-safe-length) (fns-tests-string-bytes): New tests.
* | Make image-tests work in a no-x buildLars Ingebrigtsen2021-10-191-12/+16
| | | | | | | | | | * test/src/image-tests.el: Make the tests work in a no-x build (bug#51291).
* | Improve TCO test coverageMattias Engdegård2021-10-191-2/+11
| | | | | | | | | | * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs--labels): Exercise `cond` in tail position in two different ways.
* | Merge from origin/emacs-28Glenn Morris2021-10-192-1/+38
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d742cc3c20 (origin/emacs-28) ; etc/NEWS: Fix typos 28db29590f * admin/notes/unicode: Refer to Unicode's emoji-style.txt 9bd2f59db6 Handle VS-16 correctly for non-emoji codepoints e55e2d4a11 ; * etc/NEWS: Minor copyedit about 'repeat-mode'. 380981ddb5 Adjust bug-reference-bug-regexp default values to match on... c1cf95a0e1 ; * doc/emacs/windows.texi: Doc fix. 98eb6d783a Fix a typo in emacs-lisp-intro.texi f5b8f626e3 Fix some Tramp problems fc988a7113 Adapt Tramp manual 0c241043a8 Further fixes to Elisp manual 8e8a920246 * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): ... 5a3242301d Rename tab-bar-drag-maybe to tab-bar--dragging-in-progress bb4209a5a5 Fix xref elisp identifier namespace mistake # Conflicts: # etc/NEWS
| * Fix some Tramp problemsMichael Albinus2021-10-181-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): Use `tramp-adb-handle-file-executable-p' and `tramp-adb-handle-file-readable-p'. (tramp-adb-handle-file-executable-p) (tramp-adb-handle-file-readable-p): New defuns. (tramp-adb-handle-file-writable-p): Simplify. (tramp-adb-handle-make-process): Handle :filter being t. (tramp-adb-find-test-command): Remove. * lisp/net/tramp-sh.el (tramp-sh-handle-file-readable-p): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-readable-p): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Use `tramp-handle-file-readable-p'. (tramp-gvfs-handle-file-executable-p): Do not check whether file exists, this is done in `tramp-check-cached-permissions'. (tramp-gvfs-handle-file-readable-p): Remove. * lisp/net/tramp.el (tramp-error): Move binding of `inhibit-message' ... (tramp-signal-hook-function): ... here. (tramp-handle-access-file): Rewrite. (tramp-handle-file-readable-p): New defun. (tramp-handle-make-process): Setting :filter to t works since Emacs 29.1 only. * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory) (tramp-test18-file-attributes): Extend tests.
| * Fix xref elisp identifier namespace mistakeMattias Engdegård2021-10-181-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | Pressing `M-.` on ALPHA in (let ((ALPHA BETA)) ...) would incorrectly search for ALPHA as a function rather than a variable. * lisp/progmodes/elisp-mode.el (elisp--xref-infer-namespace): Fix logic. * test/lisp/progmodes/elisp-mode-tests.el (elisp-mode-infer-namespace): Add test case.