unittests/tests/init.js
branchpopcorn-port
changeset 423 748cce3d80d4
parent 287 5c7495102bd7
child 461 a9c5eeca190c
equal deleted inserted replaced
422:b14a1a83ebc1 423:748cce3d80d4
    47   test("test the creation of a correct popcorn object", function() {
    47   test("test the creation of a correct popcorn object", function() {
    48 
    48 
    49     var layoutManager = new IriSP.LayoutManager({container: "LdtPlayer", width: 327, height: 542});
    49     var layoutManager = new IriSP.LayoutManager({container: "LdtPlayer", width: 327, height: 542});
    50     var pop = IriSP.configurePopcorn(layoutManager, this.popcornOptions);
    50     var pop = IriSP.configurePopcorn(layoutManager, this.popcornOptions);
    51     notDeepEqual(pop, undefined, "returned object is not undefined");
    51     notDeepEqual(pop, undefined, "returned object is not undefined");
    52 
       
    53     /* FIXME: add more test options ? */
       
    54     equal(pop.options.type, "jwplayer", "the player is of the correct type.");
       
    55   });
    52   });
    56 
    53 
    57   test("test the creation of a video tag", function() {
    54   test("test the creation of a video tag", function() {
    58 
    55 
    59     var popcornOptions = {
    56     var popcornOptions = {