Permalink
Browse files

Fix tests

  • Loading branch information...
koenbok committed Jan 28, 2016
1 parent b2b197d commit 9d7c8ee8782c566fc8754c7467b96c89aa6d12a9
Showing with 1 addition and 23 deletions.
  1. +1 −23 test/tests/LayerTest.coffee
@@ -446,27 +446,6 @@ describe "Layer", ->
simulate.mouseover(layer._element)
it "should not emit click event if a parent draggable was moved", ->
clicked = false
layerA = new Layer
layerB = new Layer superLayer:layerA
layerA.draggable.enabled = true
layerA.draggable._correctedLayerStartPoint = {x:10, y:10}
layerA.draggable.offset.should.eql {x:-10, y:-10}
layerB.on Events.Click, ->
clicked = true
layerB.emit(Events.Click)
clicked.should.equal false
layerA.draggable.enabled = false
layerB.emit(Events.Click)
clicked.should.equal true
it "should not emit click event if a parent draggable was moved on draggable", ->
@@ -475,8 +454,7 @@ describe "Layer", ->
layerA = new Layer
layerA.draggable.enabled = true
layerA.draggable._correctedLayerStartPoint = {x:10, y:10}
layerA.draggable.offset.should.eql {x:-10, y:-10}
layerA.draggable._isMoving = true
layerA.on Events.Click, ->
clicked = true

0 comments on commit 9d7c8ee

Please sign in to comment.