--- a/unittests/tests/segmentsWidget.js Wed Nov 09 14:49:20 2011 +0100
+++ b/unittests/tests/segmentsWidget.js Wed Nov 09 17:06:23 2011 +0100
@@ -30,7 +30,8 @@
widget.draw();
equal(IriSP.jQuery("#widget-div").length, 1, "test if the div has been added correctly");
- equal(IriSP.jQuery("#widget-div").children().length, this.ser._data.annotations.length, "test if children have been added correctly");
+ // the + 1 is because we have a z-index div to indicate progress in the video.
+ equal(IriSP.jQuery("#widget-div").children().length, this.ser._data.annotations.length + 1, "test if children have been added correctly");
});
test("test click on a random segment", function() {