Skip to content

Commit

Permalink
Merge pull request #5 from liuggio/new_flat_format
Browse files Browse the repository at this point in the history
fixing tests
  • Loading branch information
liuggio committed Apr 20, 2015
2 parents 10aaca8 + a6daa25 commit 9741ab0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 30 deletions.
21 changes: 1 addition & 20 deletions features/bootstrap/fixtures/license-MIT-blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions spec/PUGX/Poser/Render/SvgFlatRenderSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@ function it_should_render_a_license_mit_exactly_like_this_svg()
$template = <<<EOF
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="20">
<linearGradient id="b" x2="0" y2="100%">
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
<stop offset="1" stop-opacity=".1"/>
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
<stop offset="1" stop-opacity=".1"/>
</linearGradient>
<mask id="a">
<rect width="40" height="20" rx="3" fill="#fff"/>
<rect width="40" height="20" rx="3" fill="#fff"/>
</mask>
<g mask="url(#a)">
<path fill="#555" d="M0 0h20v20H0z"/>
<path fill="#007ec6" d="M20 0h31v20H20z"/>
<path fill="url(#b)" d="M0 0h40v20H0z"/>
<rect width="20" height="20" fill="#555"/>
<rect x="20" width="20" height="20" fill="#007ec6"/>
<rect width="40" height="20" fill="url(#b)"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="25.5" y="15" fill="#010101" fill-opacity=".3">license</text>
<text x="25.5" y="14">license</text>
<text x="63.5" y="15" fill="#010101" fill-opacity=".3">MIT</text>
<text x="63.5" y="14">MIT</text>
<text x="11" y="15" fill="#010101" fill-opacity=".3">license</text>
<text x="11" y="14">license</text>
<text x="29" y="15" fill="#010101" fill-opacity=".3">MIT</text>
<text x="29" y="14">MIT</text>
</g>
</svg>
EOF;
Expand Down

0 comments on commit 9741ab0

Please sign in to comment.