chore: update e2e testing

This commit is contained in:
chenshenhai 2021-06-08 19:01:44 +08:00
parent 8cdffeb8ce
commit 30dd34ef92
6 changed files with 9 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

5
docs/todo/board.md Normal file
View file

@ -0,0 +1,5 @@
# @idraw/board
## Testing
* []

View file

@ -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;

View file

@ -4,6 +4,8 @@ const mount = document.querySelector('#mount');
const board = new Board(mount, {
width: 600,
height: 400,
contextWidth: 600,
contextHeight: 400,
devicePixelRatio: 4
});

View file

@ -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 },