unittests/tests/widgets/arrowWidget.js
branchpopcorn-port
changeset 319 ad028d8c748b
parent 305 e8d05c3f77ed
child 327 f20d0807a5ea
equal deleted inserted replaced
318:463382f92211 319:ad028d8c748b
    28     widget.draw();
    28     widget.draw();
    29 
    29 
    30     equal(widget.selector.children(".Ldt-arrowWidget").length, 1, "test if the div has been added correctly");
    30     equal(widget.selector.children(".Ldt-arrowWidget").length, 1, "test if the div has been added correctly");
    31 
    31 
    32     widget._Popcorn.trigger("IriSP.SegmentsWidget.segmentClick", 40);
    32     widget._Popcorn.trigger("IriSP.SegmentsWidget.segmentClick", 40);
    33     equal(widget.selector.children(".Ldt-arrowWidget").css("left"), "40%", "test if the widget responds correctly to messages.");
    33     equal(widget.selector.children(".Ldt-arrowWidget").css("left"), "22%", "test if the widget responds correctly to messages.");
    34   });
    34   });
    35  }; 
    35  };