Skip to content

Commit bc6f485

Browse files
author
Danny McClanahan
committed
only wait in async case
1 parent 9cfbda4 commit bc6f485

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/markdown-test.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3836,7 +3836,7 @@ Detail: https://github.com/jrblevin/markdown-mode/issues/79"
38363836
'markdown-test-set-window-width)
38373837
(ad-activate #'eww-open-file))
38383838
`(progn
3839-
(ad-enable-advice #'get-buffer-create 'before
3839+
(ad-enable-advice #'get-buffer-create 'before
38403840
'markdown-set-window-width-mock)
38413841
(ad-activate #'get-buffer-create)
38423842
,@body
@@ -3877,8 +3877,8 @@ Detail: https://github.com/jrblevin/markdown-mode/issues/79"
38773877
(markdown-initial-window-create-advice
38783878
(if markdown-live-preview-do-sync
38793879
(markdown-live-preview-sync-export)
3880-
(markdown-live-preview-async-export))
3881-
(markdown-test/live-preview-wait)
3880+
(markdown-live-preview-async-export)
3881+
(markdown-test/live-preview-wait))
38823882
(should (eq t markdown-test-hit-advice))
38833883
(setq markdown-test-hit-advice nil))
38843884
(setq markdown-test-eww-window
@@ -3887,8 +3887,8 @@ Detail: https://github.com/jrblevin/markdown-mode/issues/79"
38873887
(with-selected-window (get-buffer-window md-buf)
38883888
(if markdown-live-preview-do-sync
38893889
(markdown-live-preview-sync-export)
3890-
(markdown-live-preview-async-export))
3891-
(markdown-test/live-preview-wait)
3890+
(markdown-live-preview-async-export)
3891+
(markdown-test/live-preview-wait))
38923892
;; at this point, `eww-render' should have finished, and eww should
38933893
;; have redisplayed. the advice checks that, since there was a
38943894
;; single window displaying the *eww* buffer, that window was used

0 commit comments

Comments
 (0)