Skip to content
Browse files

tweaked the test for getLocalPosition

1 parent 9d7a393 commit 5895e1f30b98c7181aabe43dcd3489c17456fb24 @GoodBoyDigital GoodBoyDigital committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/unit/interaction/InteractionData.test.js
View
5 test/unit/interaction/InteractionData.test.js
@@ -2,11 +2,16 @@ describe('PIXI.interaction.InteractionData', function() {
describe('getLocalPosition', function() {
it('should populate second parameter with result', function() {
var data = new PIXI.interaction.InteractionData(),
+ stage = new PIXI.DisplayObject(),
displayObject = new PIXI.DisplayObject(),
point = new PIXI.Point();
data.global.set(10, 10);
+
displayObject.position.set(5, 3);
+
+ displayObject.parent = stage
+ displayObject.displayObjectUpdateTransform();
data.getLocalPosition(displayObject, point);

0 comments on commit 5895e1f

Please sign in to comment.
Something went wrong with that request. Please try again.