equal
deleted
inserted
replaced
1 function test_slider_widget() { |
1 function test_slider_widget() { |
2 module("slider widget testing", |
2 module("slider widget testing", |
3 {setup : function() { |
3 {setup : function() { |
4 this.Popcorn = Popcorn.youtube("#popcorn-div", "http://www.youtube.com/watch?v=QH2-TGUlwu4"); |
4 this.Popcorn = Popcorn("#popcorn-div"); |
5 |
5 |
6 this.dt = new IriSP.DataLoader(); |
6 this.dt = new IriSP.DataLoader(); |
7 this.ser = new IriSP.MockSerializer(this.dt, "/url"); /* dummy serializer */ |
7 this.ser = new IriSP.MockSerializer(this.dt, "/url"); /* dummy serializer */ |
8 |
8 |
9 this.config = { |
9 this.config = { |
18 debug:true, |
18 debug:true, |
19 css:'../src/css/LdtPlayer.css'} |
19 css:'../src/css/LdtPlayer.css'} |
20 }, |
20 }, |
21 teardown: function() { |
21 teardown: function() { |
22 /* free the popcorn object because it has signal handlers attached to it */ |
22 /* free the popcorn object because it has signal handlers attached to it */ |
23 this.Popcorn = Popcorn.youtube("#popcorn-div", "http://www.youtube.com/watch?v=QH2-TGUlwu4"); |
23 this.Popcorn = Popcorn("#popcorn-div"); |
24 }}); |
24 }}); |
25 |
25 |
26 test("test widget initialization", function() { |
26 test("test widget initialization", function() { |
27 var widget = new IriSP.SliderWidget(this.Popcorn, this.config, this.ser); |
27 var widget = new IriSP.SliderWidget(this.Popcorn, this.config, this.ser); |
28 widget.draw(); |
28 widget.draw(); |