mirror of
https://github.com/idrawjs/idraw
synced 2026-05-23 17:48:23 +00:00
chore: update e2e testing
This commit is contained in:
parent
8cdffeb8ce
commit
30dd34ef92
6 changed files with 9 additions and 1 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 9.2 KiB |
BIN
__tests__/snapshot/board/examples/test/main.html.jpg
Normal file
BIN
__tests__/snapshot/board/examples/test/main.html.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 81 KiB |
5
docs/todo/board.md
Normal file
5
docs/todo/board.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# @idraw/board
|
||||
|
||||
## Testing
|
||||
|
||||
* []
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
<style></style>
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
||||
<style>
|
||||
html,body { margin: 0; padding: 0; }
|
||||
#mount canvas {
|
||||
border-right: 1px solid #aaaaaa40;
|
||||
border-bottom: 1px solid #aaaaaa40;
|
||||
|
|
@ -4,6 +4,8 @@ const mount = document.querySelector('#mount');
|
|||
const board = new Board(mount, {
|
||||
width: 600,
|
||||
height: 400,
|
||||
contextWidth: 600,
|
||||
contextHeight: 400,
|
||||
devicePixelRatio: 4
|
||||
});
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
const pageList = [
|
||||
// { path: 'board/examples/features/test.html', w: 600, h: 400, delay: 1000 },
|
||||
{ path: 'board/examples/test/main.html', w: 600, h: 400, delay: 1000 },
|
||||
{ path: 'core/examples/features/rect.html', w: 600, h: 400, delay: 1000 },
|
||||
{ path: 'core/examples/features/text.html', w: 600, h: 400, delay: 1000 },
|
||||
{ path: 'core/examples/features/svg.html', w: 600, h: 400, delay: 1000 },
|
||||
|
|
|
|||
Loading…
Reference in a new issue