Skip to content

Commit

Permalink
Merge branch '44-border-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
tsayen committed Sep 25, 2016
2 parents e40eac0 + 711d39d commit 7ce2fc8
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 9 deletions.
4 changes: 2 additions & 2 deletions dist/dom-to-image.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions spec/dom-to-image.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@
.then(done).catch(done);
});

it('should handle border', function (done) {
loadTestPage('border/dom-node.html', 'border/style.css', 'border/control-image')
.then(renderAndCheck)
.then(done).catch(done);
});

it('should render to jpeg', function (done) {
loadTestPage('small/dom-node.html', 'small/style.css', 'small/control-image-jpeg')
.then(function () {
Expand Down
1 change: 1 addition & 0 deletions spec/resources/border/control-image
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAACBElEQVR4Xu3dQQrDQAzAwPT/j25pX2DoYHxQzkZrJJaQU17P87yfnjMGXgU50+K3SEFu9SjIsR4FKcg1A8f26R1SkGMGjq3TDSnIMQPH1hnfkD7n/yv3FT15CjKxBGYKAiRKREGkTcAqCJAoEQWRNgGrIECiRBRE2gSsggCJElEQaROwCgIkSkRBpE3AKgiQKBEFkTYBqyBAokQURNoErIIAiRJREGkTsAoCJEpEQaRNwCoIkCgRBZE2AasgQKJEFETaBKyCAIkSURBpE7AKAiRKREGkTcAqCJAoEQWRNgGrIECiRBRE2gSsggCJElEQaROwCgIkSkRBpE3AKgiQKBEFkTYBqyBAokQURNoErIIAiRJREGkTsAoCJEpEQaRNwCoIkCgRBZE2AasgQKJEFETaBKyCAIkSURBpE7AKAiRKREGkTcAqCJAoEQWRNgGrIECiRBRE2gSsggCJElEQaROwCgIkSkRBpE3AKgiQKBEFkTYBqyBAokQURNoErIIAiRJREGkTsAoCJEpEQaRNwCoIkCgRBZE2AasgQKJEFETaBKyCAIkSURBpE7AKAiRKREGkTcAqCJAoEQWRNgGrIECiRBRE2gQsHgTsFGJg4Buuf9cPRG2NFGTL9PCcggxFbY0VZMv08JyCDEVtjRVky/TwnIIMRW2NFWTL9PCcggxFbY19AL3RtAEdMr15AAAAAElFTkSuQmCC
1 change: 1 addition & 0 deletions spec/resources/border/dom-node.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

9 changes: 9 additions & 0 deletions spec/resources/border/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#dom-node {
font-size: 16px;
width: 100px;
height: 100px;
background-color: red;
border-color: black;
border: solid;
border-width: 10px 10.0px 0.625em 10px;
}
Loading

0 comments on commit 7ce2fc8

Please sign in to comment.