Permalink
Browse files

Added Liberation Mono as fallback for Courier

Because it is available on CI
  • Loading branch information...
nvh committed Mar 8, 2017
1 parent 44cef0d commit 2cad79bfe157dd82dcbbebd8db4f3816b7d5d612
Showing with 10 additions and 10 deletions.
  1. +10 −10 test/tests/TextLayerTest.coffee
@@ -30,55 +30,55 @@ describe "TextLayer", ->
font: "Monaco"
text.fontFamily.should.equal "Monaco"
- describe.skip "Auto-sizing", ->
+ describe "Auto-sizing", ->
it "should auto size the layer the size of the text", ->
text = new TextLayer
- fontFamily: "Courier"
+ fontFamily: "Courier, Liberation Mono"
text: shortText
text.size.should.eql width: 312, height: 50
it "should auto size the layer based on the Screen width", ->
text = new TextLayer
- fontFamily: "Courier"
+ fontFamily: "Courier, Liberation Mono"
text: mediumText
text.width.should.equal Screen.width
text.height.should.equal 250
it "should auto size the layer if the width is set explicitly", ->
text = new TextLayer
- fontFamily: "Courier"
+ fontFamily: "Courier, Liberation Mono"
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: "Courier"
+ fontFamily: "Courier, Liberation Mono"
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: "Courier"
+ fontFamily: "Courier, Liberation Mono"
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: "Courier"
+ fontFamily: "Courier, Liberation Mono"
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: "Courier"
+ fontFamily: "Courier, Liberation Mono"
text: mediumText
parent: layer
text.width.should.equal 150
@@ -87,15 +87,15 @@ describe "TextLayer", ->
it "should auto size the layer when its parent is set afterwards", ->
layer = new Layer width: 150
text = new TextLayer
- fontFamily: "Courier"
+ fontFamily: "Courier, Liberation Mono"
text: mediumText
text.parent = layer
text.width.should.equal 150
text.height.should.equal 550
it "should adjust its size on when a new text is set", (done) ->
text = new TextLayer
- fontFamily: "Courier"
+ fontFamily: "Courier, Liberation Mono"
text.on "change:height", ->
text.size.should.eql width: 400, height: 3500
done()

0 comments on commit 2cad79b

Please sign in to comment.