mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue #315 : avoid saving state when replaying state
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
"transform.clone.twice.undo.once.json",
|
||||
"transform.rotate.once.alt.json",
|
||||
"transform.rotate.twice.undo.once.json",
|
||||
"transform.mirror.once.alt.json",
|
||||
"transform.mirror.twice.undo.once.json"
|
||||
"transform.flip.once.alt.json",
|
||||
"transform.flip.twice.undo.once.json",
|
||||
"transform.flip.thrice.undo.all.redo.all.json"
|
||||
]}
|
@ -18,6 +18,7 @@
|
||||
"transform.clone.twice.undo.once.json",
|
||||
"transform.rotate.once.alt.json",
|
||||
"transform.rotate.twice.undo.once.json",
|
||||
"transform.mirror.once.alt.json",
|
||||
"transform.mirror.twice.undo.once.json"
|
||||
"transform.flip.once.alt.json",
|
||||
"transform.flip.twice.undo.once.json",
|
||||
"transform.flip.thrice.undo.all.redo.all.json"
|
||||
];
|
135
test/drawing/tests/transform.flip.thrice.undo.all.redo.all.json
Normal file
135
test/drawing/tests/transform.flip.thrice.undo.all.redo.all.json
Normal file
@ -0,0 +1,135 @@
|
||||
{
|
||||
"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": "mouseup",
|
||||
"button": 0,
|
||||
"shiftKey": false,
|
||||
"altKey": false,
|
||||
"ctrlKey": false
|
||||
},
|
||||
"coords": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"type": "mouse-event"
|
||||
}, {
|
||||
"type": "transformtool-event",
|
||||
"toolId": "tool-flip",
|
||||
"event": {
|
||||
"shiftKey": false,
|
||||
"altKey": false,
|
||||
"ctrlKey": false
|
||||
}
|
||||
}, {
|
||||
"type": "transformtool-event",
|
||||
"toolId": "tool-flip",
|
||||
"event": {
|
||||
"shiftKey": false,
|
||||
"altKey": false,
|
||||
"ctrlKey": false
|
||||
}
|
||||
}, {
|
||||
"type": "keyboard-event",
|
||||
"event": {
|
||||
"which": 90,
|
||||
"shiftKey": false,
|
||||
"altKey": false,
|
||||
"ctrlKey": true,
|
||||
"target": {
|
||||
"nodeName": "BODY"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"type": "keyboard-event",
|
||||
"event": {
|
||||
"which": 90,
|
||||
"shiftKey": false,
|
||||
"altKey": false,
|
||||
"ctrlKey": true,
|
||||
"target": {
|
||||
"nodeName": "BODY"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"type": "keyboard-event",
|
||||
"event": {
|
||||
"which": 90,
|
||||
"shiftKey": false,
|
||||
"altKey": false,
|
||||
"ctrlKey": true,
|
||||
"target": {
|
||||
"nodeName": "BODY"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"type": "keyboard-event",
|
||||
"event": {
|
||||
"which": 89,
|
||||
"shiftKey": false,
|
||||
"altKey": false,
|
||||
"ctrlKey": true,
|
||||
"target": {
|
||||
"nodeName": "BODY"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"type": "keyboard-event",
|
||||
"event": {
|
||||
"which": 89,
|
||||
"shiftKey": false,
|
||||
"altKey": false,
|
||||
"ctrlKey": true,
|
||||
"target": {
|
||||
"nodeName": "BODY"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"type": "keyboard-event",
|
||||
"event": {
|
||||
"which": 89,
|
||||
"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",
|
||||
"step": 100
|
||||
},
|
||||
"png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFElEQVQIW2NkYGD4z8DAwMjIAAUADikBA/ggJToAAAAASUVORK5CYII="
|
||||
}
|
Reference in New Issue
Block a user