|
3 | 3 | ;; Author: Mats Lidell
|
4 | 4 | ;;
|
5 | 5 | ;; Orig-Date: 18-May-24 at 23:59:48
|
6 |
| -;; Last-Mod: 10-Nov-24 at 23:05:28 by Mats Lidell |
| 6 | +;; Last-Mod: 11-Nov-24 at 22:53:15 by Mats Lidell |
7 | 7 | ;;
|
8 | 8 | ;; SPDX-License-Identifier: GPL-3.0-or-later
|
9 | 9 | ;;
|
@@ -299,13 +299,19 @@ Both mod-time and checksum must be changed for a test to return true."
|
299 | 299 |
|
300 | 300 | (ert-deftest hywiki-tests--face-property-for-wikiword-with-wikipage ()
|
301 | 301 | "Verify WikiWord for a wiki page gets face property hywiki-word-face."
|
| 302 | + :expected-result :failed |
302 | 303 | (skip-unless (not noninteractive))
|
303 | 304 | (let* ((hsys-org-enable-smart-keys t)
|
304 | 305 | (hywiki-directory (make-temp-file "hywiki" t))
|
305 | 306 | (wikipage (hywiki-add-page "WikiWord")))
|
306 | 307 | (unwind-protect
|
307 | 308 | (progn
|
308 | 309 | (hywiki-tests--remove-hywiki-hooks)
|
| 310 | + (with-temp-buffer |
| 311 | + (hywiki-mode 1) |
| 312 | + (with-hywiki-buttonize-and-insert-hooks (insert "WikiWord ")) |
| 313 | + (goto-char 4) |
| 314 | + (should (hproperty:but-get (point) 'face hywiki-word-face))) |
309 | 315 | (with-temp-buffer
|
310 | 316 | (hywiki-mode 1)
|
311 | 317 | (with-hywiki-buttonize-and-insert-hooks
|
@@ -395,18 +401,30 @@ Both mod-time and checksum must be changed for a test to return true."
|
395 | 401 |
|
396 | 402 | (ert-deftest hywiki-tests--convert-words-to-org-link ()
|
397 | 403 | "Verify `hywiki-convert-words-to-org-links' converts WikiWords to org links."
|
| 404 | + :expected-result :failed |
398 | 405 | (skip-unless (not noninteractive))
|
399 | 406 | (let* ((hywiki-directory (make-temp-file "hywiki" t))
|
400 | 407 | (wikipage (hywiki-add-page "WikiWord")))
|
401 | 408 | (unwind-protect
|
402 |
| - (with-temp-buffer |
403 |
| - (hywiki-mode 1) |
404 |
| - (insert "WikiWord") |
405 |
| - (newline nil t) |
406 |
| - (goto-char 4) |
407 |
| - (hywiki-convert-words-to-org-links) |
408 |
| - (should (string= "[[hy:WikiWord]]\n" |
409 |
| - (buffer-substring-no-properties (point-min) (point-max))))) |
| 409 | + (progn |
| 410 | + (hywiki-tests--remove-hywiki-hooks) |
| 411 | + (with-temp-buffer |
| 412 | + (hywiki-mode 1) |
| 413 | + (with-hywiki-buttonize-and-insert-hooks (insert "WikiWord ")) |
| 414 | + (goto-char 4) |
| 415 | + (hywiki-convert-words-to-org-links) |
| 416 | + (should (string= "[[hy:WikiWord]] " |
| 417 | + (buffer-substring-no-properties (point-min) (point-max))))) |
| 418 | + (with-temp-buffer |
| 419 | + (hywiki-mode 1) |
| 420 | + (with-hywiki-buttonize-and-insert-hooks |
| 421 | + (insert "WikiWord") |
| 422 | + (newline nil t)) |
| 423 | + (goto-char 4) |
| 424 | + (hywiki-convert-words-to-org-links) |
| 425 | + (should (string= "[[hy:WikiWord]]\n" |
| 426 | + (buffer-substring-no-properties (point-min) (point-max)))))) |
| 427 | + (hywiki-tests--add-hywiki-hooks) |
410 | 428 | (hywiki-mode 0)
|
411 | 429 | (hy-delete-file-and-buffer wikipage)
|
412 | 430 | (hy-delete-dir-and-buffer hywiki-directory))))
|
|
0 commit comments