added tests for the new features. popcorn-port
authorhamidouk
Wed, 09 Nov 2011 17:25:23 +0100
branchpopcorn-port
changeset 219 12a72b00f4ab
parent 218 079b745d0438
child 220 6498b89eabcd
added tests for the new features.
unittests/tests/segmentsWidget.js
--- a/unittests/tests/segmentsWidget.js	Wed Nov 09 17:25:09 2011 +0100
+++ b/unittests/tests/segmentsWidget.js	Wed Nov 09 17:25:23 2011 +0100
@@ -32,6 +32,8 @@
     equal(IriSP.jQuery("#widget-div").length, 1, "test if the div has 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");
+    equal(IriSP.jQuery("#widget-div").children(":first").css("z-index"), 100, "test if slider div is created correctly.");
+    equal(IriSP.jQuery("#widget-div").css("overflow"), "auto", "test if the divs are floated correctly.");
   });
   
   test("test click on a random segment", function() {