From: David Seifried Date: Thu, 16 Jun 2011 21:17:23 +0000 (-0400) Subject: [#t522b] Added 1 second of padding at the start to cover the scripts time needed... X-Git-Tag: v0.7^2~30^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=7dfed4797101a72922471b6e1b5d090499f51e69;p=popcorn-js.git [#t522b] Added 1 second of padding at the start to cover the scripts time needed, could be reduced if needed --- diff --git a/plugins/googlefeed/popcorn.googlefeed.unit.js b/plugins/googlefeed/popcorn.googlefeed.unit.js index 5fbcfcc..7fcada9 100644 --- a/plugins/googlefeed/popcorn.googlefeed.unit.js +++ b/plugins/googlefeed/popcorn.googlefeed.unit.js @@ -23,16 +23,16 @@ test("Popcorn Google Feed Plugin", function () { plus(); popped.googlefeed({ - start: 0, // seconds - end: 1, // seconds + start: 1, // seconds + end: 2, // seconds target: "feed", url: "http://zenit.senecac.on.ca/~chris.tyler/planet/rss20.xml", title: "Planet Feed", orientation: "Vertical" }) .googlefeed({ - start: 0, // seconds - end: 2, // seconds + start: 2, // seconds + end: 3, // seconds target: "feed1", url: "http://blog.pikimal.com/geek/feed/", title: "pikiGeek", @@ -42,7 +42,7 @@ test("Popcorn Google Feed Plugin", function () { setupId = popped.getLastTrackEventId(); - popped.exec( 0, function() { + popped.exec( 1, function() { ok(google.load, "Google Feed is available"); plus(); ok(GFdynamicFeedControl, "Dynamic Feed Control Available"); @@ -52,13 +52,13 @@ test("Popcorn Google Feed Plugin", function () { equals (document.getElementById('_feed1').offsetParent.id, "feed", "First feed is inside the 'feed' div" ); plus(); }); - popped.exec( 1, function() { + popped.exec( 2, function() { ok (document.getElementById('_feed2'), "Second feed is on the page" ); plus(); equals (document.getElementById('_feed2').offsetParent.id, "feed1", "Second feed is inside the 'feed2' div" ); plus(); }); - popped.exec( 2, function() { + popped.exec( 3, function() { ok (document.getElementById('_feed2').style.display === "none" && document.getElementById('_feed1').style.display === "none", "Both feeds are no lnger visible" ); plus();