Permalink
Browse files

Correct text layer snapshot

  • Loading branch information...
jonastreub committed Jul 24, 2017
1 parent 76ca229 commit fcf05a7a425730812e7386d9f6811bf3248c3897
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/tests/TextLayerTest.coffee
@@ -15,7 +15,7 @@ describe "TextLayer", ->
text = new TextLayer
text.text.should.equal "Hello World"
text.html.should.equal '<div style="font-size: 1px;"><span style="font-size: 40px;">Hello World</span></div>'
text._elementHTML.outerHTML.should.equal '<div style="zoom: 1; overflow: hidden; color: rgb(136, 136, 136); font-family: -apple-system, BlinkMacSystemFont, \'SF UI Text\', \'Helvetica Neue\'; font-weight: 400; font-style: normal; font-size: 40px; line-height: 1.25; text-transform: none; outline: none; white-space: pre-wrap; word-wrap: break-word; text-align: left;"><div style="font-size: 1px;"><span style="font-size: 40px;">Hello World</span></div></div>'
text._elementHTML.outerHTML.should.equal '<div style="zoom: 1; overflow: visible; color: rgb(136, 136, 136); font-family: -apple-system, BlinkMacSystemFont, \'SF UI Text\', \'Helvetica Neue\'; font-weight: 400; font-style: normal; font-size: 40px; line-height: 1.25; text-transform: none; outline: none; white-space: pre-wrap; word-wrap: break-word; text-align: left;"><div style="font-size: 1px;"><span style="font-size: 40px;">Hello World</span></div></div>'
text.color.isEqual("#888").should.equal true
text.backgroundColor.isEqual("transparent").should.equal true
text.padding.should.eql 0

0 comments on commit fcf05a7

Please sign in to comment.