Feature #683 - add drawing test for duplicate layer

This commit is contained in:
juliandescottes 2017-05-11 02:18:33 +02:00 committed by Julian Descottes
parent af3d0fa48b
commit b5a8eb9f96
3 changed files with 209 additions and 0 deletions

View File

@ -5,6 +5,7 @@
"color.picker.json", "color.picker.json",
"frames.fun.json", "frames.fun.json",
"history.basic.json", "history.basic.json",
"layers.duplicate.json",
"layers.fun.json", "layers.fun.json",
"layers.merge.json", "layers.merge.json",
"lighten.darken.json", "lighten.darken.json",

View File

@ -4,6 +4,7 @@
"color.picker.json", "color.picker.json",
"frames.fun.json", "frames.fun.json",
"history.basic.json", "history.basic.json",
"layers.duplicate.json",
"layers.fun.json", "layers.fun.json",
"layers.merge.json", "layers.merge.json",
"move.json", "move.json",

View File

@ -0,0 +1,207 @@
{
"events": [
{
"event": {
"type": "mousedown",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 0,
"y": 0
},
"type": "mouse-event"
},
{
"event": {
"type": "mousemove",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 0,
"y": 0
},
"type": "mouse-event"
},
{
"event": {
"type": "mousemove",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 1,
"y": 0
},
"type": "mouse-event"
},
{
"event": {
"type": "mousemove",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 2,
"y": 0
},
"type": "mouse-event"
},
{
"event": {
"type": "mouseup",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 2,
"y": 0
},
"type": "mouse-event"
},
{
"type": "instrumented-event",
"methodName": "duplicateFrameAt",
"args": [
0
]
},
{
"type": "color-event",
"color": "#ff0000",
"isPrimary": true
},
{
"event": {
"type": "mousedown",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 0,
"y": 0
},
"type": "mouse-event"
},
{
"event": {
"type": "mousemove",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 0,
"y": 0
},
"type": "mouse-event"
},
{
"event": {
"type": "mousemove",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 1,
"y": 0
},
"type": "mouse-event"
},
{
"event": {
"type": "mousemove",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 2,
"y": 0
},
"type": "mouse-event"
},
{
"event": {
"type": "mouseup",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 2,
"y": 0
},
"type": "mouse-event"
},
{
"type": "instrumented-event",
"methodName": "duplicateCurrentLayer",
"args": []
},
{
"type": "transformtool-event",
"toolId": "tool-rotate",
"event": {
"shiftKey": true,
"altKey": false,
"ctrlKey": false
}
},
{
"type": "instrumented-event",
"methodName": "duplicateCurrentLayer",
"args": []
},
{
"type": "transformtool-event",
"toolId": "tool-rotate",
"event": {
"shiftKey": true,
"altKey": false,
"ctrlKey": false
}
},
{
"type": "keyboard-event",
"event": {
"which": 90,
"shiftKey": false,
"altKey": false,
"ctrlKey": true,
"target": {
"nodeName": "BODY"
}
}
}
],
"initialState": {
"size": {
"width": 2,
"height": 2
},
"primaryColor": "#000000",
"secondaryColor": "rgba(0, 0, 0, 0)",
"selectedTool": "tool-pen",
"penSize": 1
},
"png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAACCAYAAAB/qH1jAAAAHUlEQVQYV2NkYGD4zwAjGBgYGKFsxv8MDP8ZgXwAURIFAdLn5x4AAAAASUVORK5CYII="
}