equal
deleted
inserted
replaced
22 this.Popcorn = Popcorn.youtube("#popcorn-div", "http://www.youtube.com/watch?v=QH2-TGUlwu4"); |
22 this.Popcorn = Popcorn.youtube("#popcorn-div", "http://www.youtube.com/watch?v=QH2-TGUlwu4"); |
23 } |
23 } |
24 }); |
24 }); |
25 |
25 |
26 test("test widget initialization", function() { |
26 test("test widget initialization", function() { |
|
27 |
27 var widget = new IriSP.ArrowWidget(this.Popcorn, this.config, this.ser); |
28 var widget = new IriSP.ArrowWidget(this.Popcorn, this.config, this.ser); |
28 widget.draw(); |
29 widget.draw(); |
29 |
30 |
30 equal(widget.selector.children(".Ldt-arrowWidget").length, 1, "test if the div has been added correctly"); |
31 equal(widget.selector.children(".Ldt-arrowWidget").length, 1, "test if the div has been added correctly"); |
31 |
32 |
32 widget._Popcorn.trigger("IriSP.SegmentsWidget.segmentClick", 40); |
33 /* |
|
34 widget._Popcorn.media.currentTime = 400; |
|
35 widget._Popcorn.trigger("timeupdate"); |
33 equal(widget.selector.children(".Ldt-arrowWidget").css("left"), "22%", "test if the widget responds correctly to messages."); |
36 equal(widget.selector.children(".Ldt-arrowWidget").css("left"), "22%", "test if the widget responds correctly to messages."); |
|
37 */ |
34 }); |
38 }); |
35 }; |
39 }; |