* test/automated/xwidget-tests.el (xwidget-view-p): Use `xwidget-display'.
;; )))))
(defun xwidget-display (xwidget)
- "Force xwidget to be displayed to create a xwidget_view."
+ "Force xwidget to be displayed to create a xwidget_view. Return
+the window displaying XWIDGET."
(let* ((buffer (xwidget-buffer xwidget))
(window (display-buffer buffer))
(frame (window-frame window)))
(set-frame-visible frame t)
- (redisplay t)))
+ (redisplay t)
+ window))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(with-temp-buffer
(insert ?\0)
(let* ((xwidget (xwidget-insert 1 type title 100 100))
- (window (display-buffer (current-buffer))))
+ (window (xwidget-display xwidget)))
(set-xwidget-query-on-exit-flag xwidget nil)
- (set-frame-visible (window-frame window) t)
- (redisplay t)
- (xwidget-view-p (xwidget-view-lookup xwidget window)))))
+ (xwidget-view-p
+ (xwidget-view-lookup xwidget window)))))
:env (list type title)
:graphical t
:emacs-args '("-T" "emacs-debug")))))