Skip to content

Commit

Permalink
update test reference
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnychen94 committed May 1, 2022
1 parent c173ed9 commit 6b8583d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/writemime.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,18 @@ end
sshow(mime, x) = (io = IOBuffer(); show(io, mime, x); String(take!(io)))
@test startswith(
sshow(MIME("text/html"), zeros(Gray{Float32}, 1, 1)),
"<img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAAAAABV")
if VERSION >= v"1.3" # ImageIO
"<img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAAAAAB"
else # ImageMagick
"<img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkAQAAAAB"
end)
@test startswith(
sshow(MIME("text/html"), zeros(RGB{Float32}, 1, 1)),
"<img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/")
if VERSION >= v"1.3" # ImageIO
"<img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD"
else # ImageMagick
"<img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkAQAAAABY"
end)
end
end
try
Expand Down

0 comments on commit 6b8583d

Please sign in to comment.