plotlyjs tests and fixes

This commit is contained in:
Thomas Breloff 2016-04-20 10:10:07 -04:00
parent e8858cb1b7
commit 217ffb36e6
4 changed files with 11 additions and 4 deletions

View File

@ -15,6 +15,7 @@ script:
# - julia -e 'Pkg.clone("https://github.com/tbreloff/Images.jl.git"); Pkg.checkout("Images","tom_imgcompare");' # - julia -e 'Pkg.clone("https://github.com/tbreloff/Images.jl.git"); Pkg.checkout("Images","tom_imgcompare");'
# - julia -e 'Pkg.clone("Images"); Pkg.build("Images")' # - julia -e 'Pkg.clone("Images"); Pkg.build("Images")'
# - julia -e 'Pkg.clone("ImageMagick"); Pkg.build("ImageMagick")' # - julia -e 'Pkg.clone("ImageMagick"); Pkg.build("ImageMagick")'
- julia -e 'Pkg.clone("https://github.com/tbreloff/ImageMagick.jl.git"); Pkg.checkout("ImageMagick","tb_write"); Pkg.build("ImageMagick")'
- julia -e 'Pkg.clone("https://github.com/tbreloff/VisualRegressionTests.jl.git");' - julia -e 'Pkg.clone("https://github.com/tbreloff/VisualRegressionTests.jl.git");'
- julia -e 'Pkg.clone("https://github.com/tbreloff/ExamplePlots.jl.git");' - julia -e 'Pkg.clone("https://github.com/tbreloff/ExamplePlots.jl.git");'
# - julia -e 'Pkg.add("Cairo"); Pkg.build("Cairo")' # - julia -e 'Pkg.add("Cairo"); Pkg.build("Cairo")'

View File

@ -114,9 +114,9 @@ end
# ColorGradient(map(convertColor, cs), vals; kw...) # ColorGradient(map(convertColor, cs), vals; kw...)
# end # end
# function ColorGradient(grad::ColorGradient; alpha = nothing) function ColorGradient(grad::ColorGradient; alpha = nothing)
# ColorGradient(convertColor(grad.colors, alpha), grad.values) ColorGradient(convertColor(grad.colors, alpha), grad.values)
# end end
getColor(gradient::ColorGradient, idx::Int) = gradient.colors[mod1(idx, length(gradient.colors))] getColor(gradient::ColorGradient, idx::Int) = gradient.colors[mod1(idx, length(gradient.colors))]

View File

@ -7,7 +7,6 @@ FactCheck
Cairo Cairo
Gadfly Gadfly
Images Images
ImageMagick
PyPlot PyPlot
@osx QuartzImageIO @osx QuartzImageIO
GR GR

View File

@ -33,5 +33,12 @@ facts("GR") do
# image_comparison_facts(:gr, only=[1], eps=img_eps) # image_comparison_facts(:gr, only=[1], eps=img_eps)
end end
facts("PlotlyJS") do
@fact plotlyjs() --> Plots.PlotlyJSBackend()
@fact backend() --> Plots.PlotlyJSBackend()
image_comparison_facts(:plotlyjs, only=[1,2,3,4,7,8,9,10,11,12,14,15,20,22,23,24], eps=img_eps)
end
FactCheck.exitstatus() FactCheck.exitstatus()
end # module end # module