tests: Add test for initial state, rename tests

This commit is contained in:
Alex Palaistras 2016-10-30 23:26:01 +00:00
parent 0e5eee146f
commit ed9c0b9ace
2 changed files with 28 additions and 2 deletions

View File

@ -0,0 +1,24 @@
<!--
# Test initial state, with no commands.
-->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 -10 20 20">
<style type="text/css"><![CDATA[
.branch {
fill: none;
stroke: #333;
stroke-width: 10;
}
.commit {
fill: #fff;
stroke: #333;
stroke-width: 5;
}
]]></style>
<g id="master">
<path class="branch" d="M0,0 L0,0" />
<circle class="commit" cx="0" cy="0" r="7.5" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 411 B

View File

@ -3,10 +3,11 @@
# Test a simple scenario of adding a few commits to `master`.
git commit -m "Adding a new commit"
git commit
-->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 -10 120 20">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 -10 220 20">
<style type="text/css"><![CDATA[
.branch {
fill: none;
@ -20,8 +21,9 @@ git commit -m "Adding a new commit"
}
]]></style>
<g id="master">
<path class="branch" d="M0,0 L100,0" />
<path class="branch" d="M0,0 L200,0" />
<circle class="commit" cx="0" cy="0" r="7.5" />
<circle class="commit" cx="100" cy="0" r="7.5" />
<circle class="commit" cx="200" cy="0" r="7.5" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 523 B

After

Width:  |  Height:  |  Size: 584 B