summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/commit/recording.json226
-rw-r--r--test/integration/commit/snapshot.txt13
-rw-r--r--test/integration/squash/recording.json1
-rw-r--r--test/integration/squash/snapshot.txt42
4 files changed, 282 insertions, 0 deletions
diff --git a/test/integration/commit/recording.json b/test/integration/commit/recording.json
new file mode 100644
index 000000000..d362b0271
--- /dev/null
+++ b/test/integration/commit/recording.json
@@ -0,0 +1,226 @@
+[
+ {
+ "Timestamp": 41,
+ "Event": {
+ "Type": 1,
+ "Mod": 0,
+ "Key": 0,
+ "Ch": 0,
+ "Width": 0,
+ "Height": 0,
+ "Err": null,
+ "MouseX": 0,
+ "MouseY": 0,
+ "N": 0,
+ "Bytes": null
+ }
+ },
+ {
+ "Timestamp": 1042,
+ "Event": {
+ "Type": 0,
+ "Mod": 0,
+ "Key": 32,
+ "Ch": 0,
+ "Width": 0,
+ "Height": 0,
+ "Err": null,
+ "MouseX": 0,
+ "MouseY": 0,
+ "N": 1,
+ "Bytes": "IA=="
+ }
+ },
+ {
+ "Timestamp": 1602,
+ "Event": {
+ "Type": 0,
+ "Mod": 0,
+ "Key": 0,
+ "Ch": 99,
+ "Width": 0,
+ "Height": 0,
+ "Err": null,
+ "MouseX": 0,
+ "MouseY": 0,
+ "N": 1,
+ "Bytes": "Yw=="
+ }
+ },
+ {
+ "Timestamp": 2010,
+ "Event": {
+ "Type": 0,
+ "Mod": 0,
+ "Key": 0,
+ "Ch": 109,
+ "Width": 0,
+ "Height": 0,
+ "Err": null,
+ "MouseX": 0,
+ "MouseY": 0,
+ "N": 1,
+ "Bytes": "bQ=="
+ }
+ },
+ {
+ "Timestamp": 2170,
+ "Event": {
+ "Type": 0,
+ "Mod": 0,
+ "Key": 0,
+ "Ch": 121,
+ "Width": 0,
+ "Height": 0,
+ "Err": null,
+ "MouseX": 0,
+ "MouseY": 0,
+ "N": 1,
+ "Bytes": "eQ=="
+ }
+ },
+ {
+ "Timestamp": 2234,
+ "Event": {
+ "Type": 0,
+ "Mod": 0,
+ "Key": 32,
+ "Ch": 0,
+ "Width": 0,
+ "Height": 0,
+ "Err": null,
+ "MouseX": 0,
+ "MouseY": 0,
+ "N": 1,
+ "Bytes": "IA=="
+ }
+ },
+ {
+ "Timestamp": 2354,
+ "Event": {
+ "Type": 0,
+ "Mod": 0,
+ "Key": 0,
+ "Ch": 99,
+ "Width": 0,
+ "Height": 0,
+ "Err": null,
+ "MouseX": 0,
+ "MouseY": 0,
+ "N": 1,
+ "Bytes": "Yw=="
+ }
+ },
+ {
+ "Timestamp": 2410,
+ "Event": {
+ "Type": 0,
+ "Mod": 0,
+ "Key": 0,
+ "Ch": 111,
+ "Width": 0,
+ "Height": 0,
+ "Err": null,
+ "MouseX": 0,
+ "MouseY": 0,
+ "N": 1,
+ "Bytes": "bw=="
+ }
+ },
+ {
+ "Timestamp": 2578,
+ "Event": {
+ "Type": 0,
+ "Mod": 0,
+ "Key": 0,
+ "Ch": 109,
+ "Width": 0,
+ "Height": 0,
+ "Err": null,
+ "MouseX": 0,
+ "MouseY": 0,
+ "N": 1,
+ "Bytes": "bQ=="
+ }
+ },
+ {
+ "Timestamp": 2690,
+ "Event": {
+ "Type": 0,
+ "Mod": 0,
+ "Key": 0,
+ "Ch": 109,
+ "Width": 0,
+ "Height": 0,
+ "Err": null,
+ "MouseX": 0,
+ "MouseY": 0,
+ "N": 1,
+ "Bytes": "bQ=="
+ }
+ },
+ {
+ "Timestamp": 2730,
+ "Event": {
+ "Type": 0,
+ "Mod": 0,
+ "Key": 0,
+ "Ch": 105,
+ "Width": 0,
+ "Height": 0,
+ "Err": null,
+ "MouseX": 0,
+ "MouseY": 0,
+ "N": 1,
+ "Bytes": "aQ=="
+ }
+ },
+ {
+ "Timestamp": 2850,
+ "Event": {
+ "Type": 0,
+ "Mod": 0,
+ "Key": 0,
+ "Ch": 116,
+ "Width": 0,
+ "Height": 0,
+ "Err": null,
+ "MouseX": 0,
+ "MouseY": 0,
+ "N": 1,
+ "Bytes": "dA=="
+ }
+ },
+ {
+ "Timestamp": 2954,
+ "Event": {
+ "Type": 0,
+ "Mod": 0,
+ "Key": 13,
+ "Ch": 0,
+ "Width": 0,
+ "Height": 0,
+ "Err": null,
+ "MouseX": 0,
+ "MouseY": 0,
+ "N": 1,
+ "Bytes": "DQ=="
+ }
+ },
+ {
+ "Timestamp": 3625,
+ "Event": {
+ "Type": 0,
+ "Mod": 0,
+ "Key": 0,
+ "Ch": 113,
+ "Width": 0,
+ "Height": 0,
+ "Err": null,
+ "MouseX": 0,
+ "MouseY": 0,
+ "N": 1,
+ "Bytes": "cQ=="
+ }
+ }
+]
diff --git a/test/integration/commit/snapshot.txt b/test/integration/commit/snapshot.txt
new file mode 100644
index 000000000..0c50ae828
--- /dev/null
+++ b/test/integration/commit/snapshot.txt
@@ -0,0 +1,13 @@
+On branch master
+nothing to commit, working tree clean
+test
+my commit
+
+
+diff --git a/myfile b/myfile
+new file mode 100644
+index 0000000..9daeafb
+--- /dev/null
++++ b/myfile
+@@ -0,0 +1 @@
++test
diff --git a/test/integration/squash/recording.json b/test/integration/squash/recording.json
new file mode 100644
index 000000000..5bb4996b7
--- /dev/null
+++ b/test/integration/squash/recording.json
@@ -0,0 +1 @@
+[{"Timestamp":14,"Event":{"Type":1,"Mod":0,"Key":0,"Ch":0,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":0,"Bytes":null}},{"Timestamp":482,"Event":{"Type":0,"Mod":0,"Key":65514,"Ch":0,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":3,"Bytes":"G09D"}},{"Timestamp":626,"Event":{"Type":0,"Mod":0,"Key":65514,"Ch":0,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":3,"Bytes":"G09D"}},{"Timestamp":810,"Event":{"Type":0,"Mod":0,"Key":65516,"Ch":0,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":3,"Bytes":"G09C"}},{"Timestamp":937,"Event":{"Type":0,"Mod":0,"Key":65516,"Ch":0,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":3,"Bytes":"G09C"}},{"Timestamp":1065,"Event":{"Type":0,"Mod":0,"Key":65516,"Ch":0,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":3,"Bytes":"G09C"}},{"Timestamp":1591,"Event":{"Type":0,"Mod":0,"Key":0,"Ch":101,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"ZQ=="}},{"Timestamp":2034,"Event":{"Type":0,"Mod":0,"Key":65517,"Ch":0,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":3,"Bytes":"G09B"}},{"Timestamp":2243,"Event":{"Type":0,"Mod":0,"Key":0,"Ch":115,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"cw=="}},{"Timestamp":2554,"Event":{"Type":0,"Mod":0,"Key":65517,"Ch":0,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":3,"Bytes":"G09B"}},{"Timestamp":2803,"Event":{"Type":0,"Mod":0,"Key":0,"Ch":100,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"ZA=="}},{"Timestamp":3209,"Event":{"Type":0,"Mod":0,"Key":65517,"Ch":0,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":3,"Bytes":"G09B"}},{"Timestamp":3522,"Event":{"Type":0,"Mod":0,"Key":0,"Ch":102,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"Zg=="}},{"Timestamp":4066,"Event":{"Type":0,"Mod":0,"Key":0,"Ch":109,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"bQ=="}},{"Timestamp":5091,"Event":{"Type":0,"Mod":0,"Key":13,"Ch":0,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"DQ=="}},{"Timestamp":5834,"Event":{"Type":0,"Mod":0,"Key":0,"Ch":113,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"cQ=="}}] \ No newline at end of file
diff --git a/test/integration/squash/snapshot.txt b/test/integration/squash/snapshot.txt
new file mode 100644
index 000000000..445bf0f96
--- /dev/null
+++ b/test/integration/squash/snapshot.txt
@@ -0,0 +1,42 @@
+On branch master
+nothing to commit, working tree clean
+test1
+test2
+test3
+test5
+myfile2
+
+myfile3
+
+
+diff --git a/myfile2 b/myfile2
+new file mode 100644
+index 0000000..180cf83
+--- /dev/null
++++ b/myfile2
+@@ -0,0 +1 @@
++test2
+diff --git a/myfile3 b/myfile3
+new file mode 100644
+index 0000000..df6b0d2
+--- /dev/null
++++ b/myfile3
+@@ -0,0 +1 @@
++test3
+diff --git a/myfile5 b/myfile5
+new file mode 100644
+index 0000000..4f346f1
+--- /dev/null
++++ b/myfile5
+@@ -0,0 +1 @@
++test5
+myfile1
+
+
+diff --git a/myfile1 b/myfile1
+new file mode 100644
+index 0000000..a5bce3f
+--- /dev/null
++++ b/myfile1
+@@ -0,0 +1 @@
++test1