equal
deleted
inserted
replaced
1 /* tooltipWidget.js */ |
1 /* tooltipWidget.js */ |
2 |
2 |
3 function test_tooltip_widget() { |
3 function test_tooltip_widget() { |
4 module("tooltip widget testing", |
4 module("tooltip widget testing", |
5 {setup : function() { |
5 {setup : function() { |
6 this.Popcorn = Popcorn.youtube("#popcorn-div", "http://www.youtube.com/watch?v=QH2-TGUlwu4"); |
6 this.Popcorn = Popcorn("#popcorn-div"); |
7 |
7 |
8 this.dt = new IriSP.DataLoader(); |
8 this.dt = new IriSP.DataLoader(); |
9 this.ser = new IriSP.MockSerializer(this.dt, "/url"); /* dummy serializer */ |
9 this.ser = new IriSP.MockSerializer(this.dt, "/url"); /* dummy serializer */ |
10 |
10 |
11 this.config = { |
11 this.config = { |
15 }; |
15 }; |
16 }, |
16 }, |
17 |
17 |
18 teardown: function() { |
18 teardown: function() { |
19 /* free the popcorn object because it has signal handlers attached to it */ |
19 /* free the popcorn object because it has signal handlers attached to it */ |
20 this.Popcorn = Popcorn.youtube("#popcorn-div", "http://www.youtube.com/watch?v=QH2-TGUlwu4"); |
20 this.Popcorn = Popcorn("#popcorn-div"); |
21 } |
21 } |
22 }); |
22 }); |
23 |
23 |
24 test("test tooltip widget initialization", function() { |
24 test("test tooltip widget initialization", function() { |
25 var widget = new IriSP.TooltipWidget(this.Popcorn, this.config, this.ser); |
25 var widget = new IriSP.TooltipWidget(this.Popcorn, this.config, this.ser); |