equal
deleted
inserted
replaced
1 /* tweetsWidget.js */ |
1 /* tweetsWidget.js */ |
2 |
2 |
3 function test_tweets_widget() { |
3 function test_tweets_widget() { |
4 module("tweet widget testing", |
4 module("tweet 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.MockTweetSerializer(this.dt, "/url"); /* dummy serializer */ |
9 this.ser = new IriSP.MockTweetSerializer(this.dt, "/url"); /* dummy serializer */ |
10 |
10 |
11 this.config = { |
11 this.config = { |
16 debug:true, |
16 debug:true, |
17 css:'../src/css/LdtPlayer.css'}; |
17 css:'../src/css/LdtPlayer.css'}; |
18 }, |
18 }, |
19 teardown: function() { |
19 teardown: function() { |
20 /* free the popcorn object because it has signal handlers attached to it */ |
20 /* free the popcorn object because it has signal handlers attached to it */ |
21 this.Popcorn = Popcorn.youtube("#popcorn-div", "http://www.youtube.com/watch?v=QH2-TGUlwu4"); |
21 this.Popcorn = Popcorn("#popcorn-div"); |
22 } |
22 } |
23 }); |
23 }); |
24 |
24 |
25 test("test widget initialization", function() { |
25 test("test widget initialization", function() { |
26 var widget = new IriSP.TweetsWidget(this.Popcorn, this.config, this.ser); |
26 var widget = new IriSP.TweetsWidget(this.Popcorn, this.config, this.ser); |