diff -r 2ef47ccb290f -r 3ecb643627de unittests/tests/playerWidget.js --- a/unittests/tests/playerWidget.js Fri Oct 28 16:43:59 2011 +0200 +++ b/unittests/tests/playerWidget.js Fri Oct 28 16:50:18 2011 +0200 @@ -28,7 +28,7 @@ var player = new IriSP.PlayerWidget(this.Popcorn, this.config, this.ser); player.draw(); - equal(IriSP.jQuery("#widget-div #Ldt-Root").length, 1, "test if the div has been added correctly"); + equal(IriSP.jQuery("#widget-div").length, 1, "test if the div has been added correctly"); }); test("test play button event handler", function() { @@ -42,16 +42,6 @@ player.draw(); - /* - Code seems to work but test doesn't. It must be a subtle race condition - between Popcorn, the youtube plugin and QUnit. Anyway, it works for pause - so WONTFIX - - IriSP.jQuery("#widget-div .Ldt-Control1 button:first").trigger("click"); - ok(spy_callback.calledOnce, "test if play callback has been called"); - - */ - player.selector.find("#ldt-CtrlPlay").trigger("click"); player.selector.find("#ldt-CtrlPlay").trigger("click"); ok(player.playHandler.calledTwice, "play handler called");