| author | hamidouk |
| Tue, 27 Dec 2011 10:06:05 +0100 | |
| branch | popcorn-port |
| changeset 530 | 3cc4a789dae7 |
| parent 461 | a9c5eeca190c |
| permissions | -rw-r--r-- |
| 461 | 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 |
}; |