unittests/tests/module.js
author veltr
Thu, 10 May 2012 18:52:44 +0200
changeset 889 122fc46d7d4a
parent 461 a9c5eeca190c
permissions -rw-r--r--
Merge with 8ad8fa86c732fb484b503c17b381e1e59180a4cb

/* test module for base widgets */
function test_module() {
  module("Base module testing", 
  {setup : function() {
    this.Popcorn = Popcorn("#popcorn-div");
    
    this.dt = new IriSP.DataLoader();
    this.ser = new IriSP.JSONSerializer(this.dt, "/url");
  } }
  );
  
  test("test initialisation", function() {
    var config = { a : 540};
    var mod = new IriSP.Module(this.Popcorn, config, this.ser);
    deepEqual(mod._config, config, "Check that config is copied correctly");
  });
};