Permalink
Browse files

Switch to Courier for linux compatible tests

  • Loading branch information...
Benjamin den Boer
Benjamin den Boer committed Mar 7, 2017
1 parent b9be679 commit e6fb6454bbcc0cc7c4f1f89ee14323a851ed78e5
Showing with 14 additions and 14 deletions.
  1. +14 −14 test/tests/TextLayerTest.coffee
@@ -34,70 +34,70 @@ describe "TextLayer", ->
it "should auto size the layer the size of the text", ->
text = new TextLayer
- fontFamily: "Arial"
+ fontFamily: "Courier"
text: shortText
- text.size.should.eql width: 249, height: 50
+ text.size.should.eql width: 312, height: 50
it "should auto size the layer based on the Screen width", ->
text = new TextLayer
- fontFamily: "Arial"
+ fontFamily: "Courier"
text: mediumText
text.width.should.equal Screen.width
- text.height.should.equal 150
+ text.height.should.equal 250
it "should auto size the layer if the width is set explicitly", ->
text = new TextLayer
- fontFamily: "Arial"
+ fontFamily: "Courier"
text: mediumText
width: 100
text.width.should.equal 100
text.height.should.equal 550
it "should not auto size the layer the size the layer if it is explictly set", ->
text = new TextLayer
- fontFamily: "Arial"
+ fontFamily: "Courier"
text: mediumText
width: 123
height: 456
text.size.should.eql width: 123, height: 456
it "should not auto size the layer when changing text after explictly setting width", ->
text = new TextLayer
- fontFamily: "Arial"
+ fontFamily: "Courier"
text.width = 123
text.text = longText
text.width.should.equal 123
it "should not auto size the layer when changing text after explictly setting height", ->
text = new TextLayer
- fontFamily: "Arial"
+ fontFamily: "Courier"
text.height = 456
text.text = longText
text.height.should.equal 456
it "should auto size the layer based on it's parent", ->
layer = new Layer width: 150
text = new TextLayer
- fontFamily: "Arial"
+ fontFamily: "Courier"
text: mediumText
parent: layer
text.width.should.equal 150
- text.height.should.equal 500
+ text.height.should.equal 550
it "should auto size the layer when its parent is set afterwards", ->
layer = new Layer width: 150
text = new TextLayer
- fontFamily: "Arial"
+ fontFamily: "Courier"
text: mediumText
text.parent = layer
text.width.should.equal 150
- text.height.should.equal 500
+ text.height.should.equal 550
it "should adjust its size on when a new text is set", (done) ->
text = new TextLayer
- fontFamily: "Arial"
+ fontFamily: "Courier"
text.on "change:height", ->
- text.size.should.eql width: 400, height: 2600
+ text.size.should.eql width: 400, height: 3500
done()
text.text = longText

0 comments on commit e6fb645

Please sign in to comment.