Skip to content

Commit

Permalink
Feature #683 - add drawing test for duplicate layer
Browse files Browse the repository at this point in the history
  • Loading branch information
juliandescottes committed May 12, 2017
1 parent af3d0fa commit b5a8eb9
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/drawing/DrawingTests.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"color.picker.json",
"frames.fun.json",
"history.basic.json",
"layers.duplicate.json",
"layers.fun.json",
"layers.merge.json",
"lighten.darken.json",
Expand Down
1 change: 1 addition & 0 deletions test/drawing/DrawingTests.casper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"color.picker.json",
"frames.fun.json",
"history.basic.json",
"layers.duplicate.json",
"layers.fun.json",
"layers.merge.json",
"move.json",
Expand Down
207 changes: 207 additions & 0 deletions test/drawing/tests/layers.duplicate.json
Original file line number Diff line number Diff line change
@@ -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="
}

0 comments on commit b5a8eb9

Please sign in to comment.