Skip to content

Commit 2e35f64

Browse files
author
Danny McClanahan
committed
instrument test
1 parent bc6f485 commit 2e35f64

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/markdown-test.el

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3868,27 +3868,37 @@ Detail: https://github.com/jrblevin/markdown-mode/issues/79"
38683868
(cl-loop for win in windows
38693869
unless (eq win (selected-window))
38703870
do (delete-window win))
3871+
(message "start")
38713872
;; note that advices are used in this test to supply `should' conditions
38723873
(markdown-temp-eww
3874+
(message "start2")
38733875
;; test that first window created by
38743876
;; `markdown-live-preview-get-displaying-window' is the same window
38753877
;; that is used to finally render the buffer, on the first try
38763878
(markdown-eww-open-file-advice
3879+
(message "start3")
38773880
(markdown-initial-window-create-advice
3881+
(message "start4")
38783882
(if markdown-live-preview-do-sync
38793883
(markdown-live-preview-sync-export)
38803884
(markdown-live-preview-async-export)
3885+
(message "start5")
38813886
(markdown-test/live-preview-wait))
3887+
(message "start6")
38823888
(should (eq t markdown-test-hit-advice))
3889+
(message "start7")
38833890
(setq markdown-test-hit-advice nil))
38843891
(setq markdown-test-eww-window
38853892
(get-buffer-window (get-buffer "*eww*")))
38863893
(should markdown-live-preview-view-buffer)
38873894
(with-selected-window (get-buffer-window md-buf)
3895+
(message "start8")
38883896
(if markdown-live-preview-do-sync
38893897
(markdown-live-preview-sync-export)
38903898
(markdown-live-preview-async-export)
3899+
(message "start9")
38913900
(markdown-test/live-preview-wait))
3901+
(message "start10")
38923902
;; at this point, `eww-render' should have finished, and eww should
38933903
;; have redisplayed. the advice checks that, since there was a
38943904
;; single window displaying the *eww* buffer, that window was used

0 commit comments

Comments
 (0)