Regression testing: cairo mock object stores graphics calls

So the idea behind this is maintain an "expected value" for the sample runs. We store the graphics calls and their arguments as a readable text file. Any change in the samples will break this, but the idea is to make sure this doesn't get broken unexpectedly.

Rearranged the data files in specs
This commit is contained in:
Andy Meneely
2014-11-18 01:53:00 -05:00
parent 3c3d63e1ae
commit 99ac612b8a
35 changed files with 3080 additions and 36 deletions
@@ -0,0 +1,6 @@
a:
extends: b
x: 50
b:
extends: a
x: 150
@@ -0,0 +1,9 @@
a:
extends: c
x: 50
b:
extends: a
x: 150
c:
extends: b
y: 250
@@ -0,0 +1,14 @@
aunt:
a: 101
b: 102
c: 103
uncle:
x: 104
y: 105
b: 106
child:
extends:
- uncle
- aunt
a: 107
x: 108
+10
View File
@@ -0,0 +1,10 @@
frame:
x: 38
y: 38
title:
extends: frame
y: 50
width: 100
subtitle:
extends: title
y: 150
+4
View File
@@ -0,0 +1,4 @@
title:
x: 100
subtitle:
x: 200
+4
View File
@@ -0,0 +1,4 @@
title: # redefined
x: 300
desc:
x: 400
@@ -0,0 +1,8 @@
grandparent:
x: 100
parent_a:
extends: grandparent
x: += 10 # evaluates to 110
parent_b:
extends: grandparent
x: += 20 # evaluates to 120, for now...
@@ -0,0 +1,9 @@
child_a:
extends: parent_a
x: += 3 # evaluates to 113
parent_b: # redefined
extends: grandparent
x: += 30 # evaluates to 130
child_b:
extends: parent_b
x: += 3 # evaluates to 133
+5
View File
@@ -0,0 +1,5 @@
frame:
x: 38
valign: !ruby/symbol middle
str: "blah"
font: Mr. Font
+7
View File
@@ -0,0 +1,7 @@
title:
extends: frame
y: 50
width: 100
frame:
x: 38
y: 38
@@ -0,0 +1,3 @@
a:
extends: a
x: 50
+7
View File
@@ -0,0 +1,7 @@
frame:
x: 38
y: 38
title:
extends: frame
y: 50
width: 100
@@ -0,0 +1,12 @@
frame:
x: 38
y: 38
title:
extends: frame
y: 50
width: 100
title2:
extends: frame
x: 75
y: 150
width: 150