Skip to content

Commit

Permalink
fix: sample image size update
Browse files Browse the repository at this point in the history
  • Loading branch information
yisibl committed Jul 21, 2021
1 parent 8c758c7 commit 8b0b147
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions __test__/image.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ test('width and height state should be ok', async (t) => {
const file = await loadImageFile()
const image = new Image()
image.src = file
t.is(image.width, 1024)
t.is(image.height, 768)
t.is(image.naturalWidth, 1024)
t.is(image.naturalHeight, 768)
t.is(image.width, 300)
t.is(image.height, 320)
t.is(image.naturalWidth, 300)
t.is(image.naturalHeight, 320)
t.is(image.src, file)
})

Expand Down

1 comment on commit 8b0b147

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 8b0b147 Previous: 8c758c7 Ratio
Draw house#skia-canvas 28 ops/sec (±0.19%) 20 ops/sec (±1.44%) 0.71
Draw house#node-canvas 21 ops/sec (±0.47%) 22 ops/sec (±2.2%) 1.05
Draw house#@napi-rs/skia 26 ops/sec (±0.75%) 23 ops/sec (±2.22%) 0.88
Draw gradient#skia-canvas 27 ops/sec (±0.07%) 19 ops/sec (±1.51%) 0.70
Draw gradient#node-canvas 21 ops/sec (±0.16%) 21 ops/sec (±2.31%) 1
Draw gradient#@napi-rs/skia 25 ops/sec (±0.06%) 23 ops/sec (±1.79%) 0.92

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.