unittests/tests/module.js
branchnew-model
changeset 924 64c2eaafe5e2
parent 923 b3ee7d1b472a
child 925 28efc97b5d78
equal deleted inserted replaced
923:b3ee7d1b472a 924:64c2eaafe5e2
     1 /* test module for base widgets */
       
     2 function test_module() {
       
     3   module("Base module testing", 
       
     4   {setup : function() {
       
     5     this.Popcorn = Popcorn("#popcorn-div");
       
     6     
       
     7     this.dt = new IriSP.DataLoader();
       
     8     this.ser = new IriSP.JSONSerializer(this.dt, "/url");
       
     9   } }
       
    10   );
       
    11   
       
    12   test("test initialisation", function() {
       
    13     var config = { a : 540};
       
    14     var mod = new IriSP.Module(this.Popcorn, config, this.ser);
       
    15     deepEqual(mod._config, config, "Check that config is copied correctly");
       
    16   });
       
    17 };