From 25163f81ef82d19822d7bf082956039a55afc471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Mon, 22 May 2017 04:18:13 +0200 Subject: [PATCH] Use define-runtime-path for the rackunit screenshot. --- rackunit-doc/rackunit/scribblings/ui.scrbl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rackunit-doc/rackunit/scribblings/ui.scrbl b/rackunit-doc/rackunit/scribblings/ui.scrbl index 49afc78..aa12242 100644 --- a/rackunit-doc/rackunit/scribblings/ui.scrbl +++ b/rackunit-doc/rackunit/scribblings/ui.scrbl @@ -38,6 +38,8 @@ information. RackUnit also provides a GUI test runner, available from the @racketmodname[rackunit/gui] module. +@define-runtime-path[scribblings/rackunit-screen-shot.png + "scribblings/rackunit-screen-shot.png"] @defproc[(test/gui [test (or/c test-case? test-suite?)] ... [#:wait? wait? boolean? #f]) void?]{ @@ -66,7 +68,7 @@ the test runner window has been closed. (test-case "append" (check-equal? (string-append "a" "b") "ab")) (test-case "ref" (check-equal? (string-ref "abc" 1) #\b)))))] - @image["scribblings/rackunit-screen-shot.png"]{Screenshot of the RackUnit + @image[scribblings/rackunit-screen-shot.png]{Screenshot of the RackUnit window. It features a tree representing the nested test suites (with test cases as leaves) on the left pane, and information about the selected test failure in the right pane.}