Permalink
Browse files

Remove skipped and unrelevant test

  • Loading branch information...
nvh committed Dec 7, 2017
1 parent 6e31668 commit 5fbb70e1f80c5702e246b8dc9043dda0867c1f94
Showing with 0 additions and 57 deletions.
  1. +0 −57 test/tests/DeviceComponentTest.coffee
@@ -178,60 +178,3 @@ describe "DeviceComponent", ->
device = new DeviceComponent()
device.deviceType = "fullscreen"
device.screenBackground.visible.should.equal false
describe.skip "when not showing bezel", ->
before ->
Utils.isFramerStudio = ->
return true
it "the background color should follow the screen color", ->
Canvas.backgroundColor = "red"
Framer.Device.screen.backgroundColor = "green"
Framer.Device.hideBezel = true
Canvas.backgroundColor.toName().should.eql "green"
Framer.Device.screen.backgroundColor = "blue"
Canvas.backgroundColor.toName().should.equal "blue"
it "should keep track of background changes", ->
Canvas.backgroundColor = "red"
Framer.Device.screen.backgroundColor = "green"
Framer.Device.hideBezel = true
Canvas.backgroundColor = "blue"
Canvas.backgroundColor.toName().should.equal "green"
Framer.Device.hideBezel = false
Canvas.backgroundColor.toName().should.equal "blue"
describe.skip "when showing bezel", ->
it "should revert to the background color before disabling the bezel", ->
Canvas.backgroundColor = "red"
Framer.Device.screen.backgroundColor = "green"
Framer.Device.hideBezel = true
Canvas.backgroundColor.toName().should.eql "green"
Framer.Device.hideBezel = false
Canvas.backgroundColor.toName().should.equal "red"
describe "when the device has a mask", ->
it "should should keep the backgroundColor black if the canvas background is set", ->
device = new DeviceComponent()
device.deviceType = "apple-iphone-x-silver"
device.context.run ->
device.background.backgroundColor = "red"
device.screen.backgroundColor = "green"
device.hideBezel = true
device.background.backgroundColor = "blue"
device.background.backgroundColor.toName().should.equal "black"
device.hideBezel = false
device.background.backgroundColor.toName().should.equal "blue"
it "should should set the backgroundColor to black", ->
device = new DeviceComponent()
device.deviceType = "apple-iphone-x-silver"
device.context.devicePixelRatio = 2
device.context.run ->
device.background.backgroundColor = "red"
device.screen.backgroundColor = "green"
device.hideBezel = true
device.background.backgroundColor.toName().should.equal "black"
device.hideBezel = false
device.background.backgroundColor.toName().should.equal "red"

0 comments on commit 5fbb70e

Please sign in to comment.