fix up the repl test now that picts dont render as bitmaps
(following up commitsad65164c5e
and72b9199976
)
This commit is contained in:
parent
0dcc96c5eb
commit
bd08e09b12
|
@ -562,6 +562,12 @@
|
|||
(send snip get-text 0 (send snip get-count))
|
||||
(send snip get-fraction-view))
|
||||
strings))]
|
||||
[;; this test is an approximation of
|
||||
;; (is-a? snip pict-snip%) from drracket/private/pict-snip%
|
||||
(let ([sc (send snip get-snipclass)])
|
||||
(and sc (regexp-match #rx"pict-snip.rkt" (send sc get-classname))))
|
||||
(loop (send snip previous)
|
||||
(cons "{pict-snip}" strings))]
|
||||
|
||||
[else
|
||||
(loop (send snip previous)
|
||||
|
|
|
@ -904,17 +904,21 @@ This produces an ACK message
|
|||
|
||||
(mktest "(require texpict/utils)(disk 3)"
|
||||
|
||||
("{image}"
|
||||
"{image}"
|
||||
"{image}"
|
||||
"{image}"
|
||||
"{image}"
|
||||
"{image}")
|
||||
("{pict-snip}"
|
||||
"{pict-snip}"
|
||||
"{pict-snip}"
|
||||
"{pict-snip}"
|
||||
"{pict-snip}"
|
||||
"{pict-snip}")
|
||||
'interactions
|
||||
#f
|
||||
void
|
||||
void)
|
||||
|
||||
;; this test is kind of hokey in our current, module-based world
|
||||
;; we get images instead of snips because the image conversion code
|
||||
;; is in a library that's shared with the user, whereas the pict
|
||||
;; library isn't (I believe)
|
||||
(mktest (to-strings
|
||||
'(require texpict/utils)
|
||||
'(let ()
|
||||
|
@ -940,12 +944,12 @@ This produces an ACK message
|
|||
'(require texpict/utils)
|
||||
'(disk 3))
|
||||
|
||||
("{image}"
|
||||
"{image}"
|
||||
"{image}"
|
||||
"{image}"
|
||||
"{image}"
|
||||
"{image}")
|
||||
("{pict-snip}"
|
||||
"{pict-snip}"
|
||||
"{pict-snip}"
|
||||
"{pict-snip}"
|
||||
"{pict-snip}"
|
||||
"{pict-snip}")
|
||||
'interactions
|
||||
#f
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue
Block a user