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:
@@ -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
|
||||
@@ -0,0 +1,10 @@
|
||||
frame:
|
||||
x: 38
|
||||
y: 38
|
||||
title:
|
||||
extends: frame
|
||||
y: 50
|
||||
width: 100
|
||||
subtitle:
|
||||
extends: title
|
||||
y: 150
|
||||
@@ -0,0 +1,4 @@
|
||||
title:
|
||||
x: 100
|
||||
subtitle:
|
||||
x: 200
|
||||
@@ -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
|
||||
@@ -0,0 +1,5 @@
|
||||
frame:
|
||||
x: 38
|
||||
valign: !ruby/symbol middle
|
||||
str: "blah"
|
||||
font: Mr. Font
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user