Skip to content

Commit

Permalink
Add visual regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpap committed Sep 20, 2021
1 parent 417ea42 commit 51cdaa0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
@@ -0,0 +1,3 @@
Plot bbox=[0, 0, 400, 200]
LinearAxis bbox=[29, 178, 366, 22]
LinearAxis bbox=[0, 5, 29, 173]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions bokehjs/test/integration/regressions.ts
Expand Up @@ -17,6 +17,7 @@ import {
HoverTool,
TileRenderer, WMTSTileSource,
Renderer,
ImageURLTexture,
} from "@bokehjs/models"

import {Button, Select, MultiSelect, MultiChoice, RadioGroup} from "@bokehjs/models/widgets"
Expand Down Expand Up @@ -1412,4 +1413,19 @@ describe("Bug", () => {
await view.ready
})
})

describe("in issue #11646", () => {
const url = "/images/canvas_createpattern.png"

it("disallows using image texture as grid line's band fill", async () => {
const p = fig([400, 200])

p.vbar({x: [0], top: [1], alpha: 0.2, hatch_pattern: "."})

p.xgrid[0].band_hatch_extra = {mycustom: new ImageURLTexture({url})}
p.xgrid[0].band_hatch_pattern = "mycustom"

await display(p)
})
})
})

0 comments on commit 51cdaa0

Please sign in to comment.