equal
deleted
inserted
replaced
30 widget.draw(); |
30 widget.draw(); |
31 |
31 |
32 equal(IriSP.jQuery("#widget-div").length, 1, "test if the div has been added correctly"); |
32 equal(IriSP.jQuery("#widget-div").length, 1, "test if the div has been added correctly"); |
33 // the + 1 is because we have a z-index div to indicate progress in the video. |
33 // the + 1 is because we have a z-index div to indicate progress in the video. |
34 equal(IriSP.jQuery("#widget-div").children().length, this.ser._data.annotations.length + 1, "test if children have been added correctly"); |
34 equal(IriSP.jQuery("#widget-div").children().length, this.ser._data.annotations.length + 1, "test if children have been added correctly"); |
|
35 equal(IriSP.jQuery("#widget-div").children(":first").css("z-index"), 100, "test if slider div is created correctly."); |
|
36 equal(IriSP.jQuery("#widget-div").css("overflow"), "auto", "test if the divs are floated correctly."); |
35 }); |
37 }); |
36 |
38 |
37 test("test click on a random segment", function() { |
39 test("test click on a random segment", function() { |
38 var widget = new IriSP.SegmentsWidget(this.Popcorn, this.config, this.ser); |
40 var widget = new IriSP.SegmentsWidget(this.Popcorn, this.config, this.ser); |
39 widget.draw(); |
41 widget.draw(); |