]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#t522b] Added 1 second of padding at the start to cover the scripts time needed...
authorDavid Seifried <david.c.seifried@gmail.com>
Thu, 16 Jun 2011 21:17:23 +0000 (17:17 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Thu, 16 Jun 2011 21:17:23 +0000 (17:17 -0400)
plugins/googlefeed/popcorn.googlefeed.unit.js

index 5fbcfcc8c1d64f26df1cdcab5809bab6684d4a4a..7fcada9178e5ad1bbc8060775bffe2ee33381095 100644 (file)
@@ -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();