From fa297f1193fa6df027bfc5011939501a8f1082c1 Mon Sep 17 00:00:00 2001 From: David Seifried Date: Thu, 9 Jun 2011 16:43:15 -0400 Subject: [PATCH] [#534b] All changes are in one commit now ready fro review --- plugins/attribution/popcorn.attribution.html | 0 plugins/attribution/popcorn.attribution.js | 0 .../attribution/popcorn.attribution.unit.html | 0 .../attribution/popcorn.attribution.unit.js | 10 +++--- plugins/code/popcorn.code.html | 0 plugins/code/popcorn.code.js | 0 plugins/code/popcorn.code.unit.html | 0 plugins/code/popcorn.code.unit.js | 12 +++---- plugins/facebook/popcorn.facebook.html | 0 plugins/facebook/popcorn.facebook.js | 0 plugins/facebook/popcorn.facebook.unit.html | 0 plugins/facebook/popcorn.facebook.unit.js | 8 ++--- plugins/flickr/popcorn.flickr.html | 0 plugins/flickr/popcorn.flickr.js | 0 plugins/flickr/popcorn.flickr.unit.html | 0 plugins/flickr/popcorn.flickr.unit.js | 12 +++---- plugins/footnote/popcorn.footnote.html | 0 plugins/footnote/popcorn.footnote.js | 0 plugins/footnote/popcorn.footnote.unit.html | 0 plugins/footnote/popcorn.footnote.unit.js | 10 +++--- plugins/gml/popcorn.gml.html | 0 plugins/gml/popcorn.gml.js | 0 plugins/gml/popcorn.gml.unit.html | 0 plugins/gml/popcorn.gml.unit.js | 10 +++--- plugins/googlefeed/popcorn.googlefeed.html | 0 plugins/googlefeed/popcorn.googlefeed.js | 0 .../googlefeed/popcorn.googlefeed.unit.html | 0 plugins/googlefeed/popcorn.googlefeed.unit.js | 8 ++--- plugins/googlemap/popcorn.googlemap.html | 0 plugins/googlemap/popcorn.googlemap.js | 0 plugins/googlemap/popcorn.googlemap.unit.html | 0 plugins/googlemap/popcorn.googlemap.unit.js | 16 +++++----- plugins/googlenews/popcorn.googlenews.html | 0 plugins/googlenews/popcorn.googlenews.js | 0 .../googlenews/popcorn.googlenews.unit.html | 0 plugins/googlenews/popcorn.googlenews.unit.js | 10 +++--- plugins/image/popcorn.image.html | 0 plugins/image/popcorn.image.js | 0 plugins/image/popcorn.image.unit.html | 0 plugins/image/popcorn.image.unit.js | 12 +++---- plugins/index.html | 0 plugins/lastfm/popcorn.lastfm.html | 0 plugins/lastfm/popcorn.lastfm.js | 0 plugins/lastfm/popcorn.lastfm.unit.html | 0 plugins/lastfm/popcorn.lastfm.unit.js | 0 plugins/linkedin/popcorn.linkedin.html | 0 plugins/linkedin/popcorn.linkedin.js | 0 plugins/linkedin/popcorn.linkedin.unit.html | 0 plugins/linkedin/popcorn.linkedin.unit.js | 32 +++++++++---------- plugins/lowerthird/popcorn.lowerthird.html | 0 plugins/lowerthird/popcorn.lowerthird.js | 0 .../lowerthird/popcorn.lowerthird.unit.html | 0 plugins/lowerthird/popcorn.lowerthird.unit.js | 12 +++---- plugins/mustache/popcorn.mustache.html | 0 plugins/mustache/popcorn.mustache.js | 0 plugins/mustache/popcorn.mustache.unit.html | 0 plugins/mustache/popcorn.mustache.unit.js | 20 ++++++------ plugins/openmap/popcorn.openmap.html | 0 plugins/openmap/popcorn.openmap.js | 0 plugins/openmap/popcorn.openmap.unit.html | 0 plugins/openmap/popcorn.openmap.unit.js | 12 +++---- plugins/pause/popcorn.pause.html | 0 plugins/pause/popcorn.pause.js | 0 plugins/pause/popcorn.pause.unit.html | 0 plugins/pause/popcorn.pause.unit.js | 0 plugins/subtitle/popcorn.subtitle.html | 0 plugins/subtitle/popcorn.subtitle.js | 0 plugins/subtitle/popcorn.subtitle.unit.html | 0 plugins/subtitle/popcorn.subtitle.unit.js | 0 .../tagthisperson/popcorn.tagthisperson.html | 0 .../tagthisperson/popcorn.tagthisperson.js | 0 .../popcorn.tagthisperson.unit.html | 0 .../popcorn.tagthisperson.unit.js | 0 plugins/twitter/popcorn.twitter.html | 0 plugins/twitter/popcorn.twitter.js | 0 plugins/twitter/popcorn.twitter.unit.html | 0 plugins/twitter/popcorn.twitter.unit.js | 0 plugins/webpage/popcorn.webpage.js | 0 plugins/webpage/popcorn.webpage.unit.html | 0 plugins/webpage/popcorn.webpage.unit.js | 0 plugins/wikipedia/popcorn.wikipedia.html | 0 plugins/wikipedia/popcorn.wikipedia.js | 0 plugins/wikipedia/popcorn.wikipedia.unit.html | 0 plugins/wikipedia/popcorn.wikipedia.unit.js | 4 +-- plugins/wordriver/popcorn.wordriver.html | 0 plugins/wordriver/popcorn.wordriver.js | 0 plugins/wordriver/popcorn.wordriver.unit.html | 0 plugins/wordriver/popcorn.wordriver.unit.js | 0 88 files changed, 94 insertions(+), 94 deletions(-) mode change 100644 => 100755 plugins/attribution/popcorn.attribution.html mode change 100644 => 100755 plugins/attribution/popcorn.attribution.js mode change 100644 => 100755 plugins/attribution/popcorn.attribution.unit.html mode change 100644 => 100755 plugins/attribution/popcorn.attribution.unit.js mode change 100644 => 100755 plugins/code/popcorn.code.html mode change 100644 => 100755 plugins/code/popcorn.code.js mode change 100644 => 100755 plugins/code/popcorn.code.unit.html mode change 100644 => 100755 plugins/code/popcorn.code.unit.js mode change 100644 => 100755 plugins/facebook/popcorn.facebook.html mode change 100644 => 100755 plugins/facebook/popcorn.facebook.js mode change 100644 => 100755 plugins/facebook/popcorn.facebook.unit.html mode change 100644 => 100755 plugins/facebook/popcorn.facebook.unit.js mode change 100644 => 100755 plugins/flickr/popcorn.flickr.html mode change 100644 => 100755 plugins/flickr/popcorn.flickr.js mode change 100644 => 100755 plugins/flickr/popcorn.flickr.unit.html mode change 100644 => 100755 plugins/flickr/popcorn.flickr.unit.js mode change 100644 => 100755 plugins/footnote/popcorn.footnote.html mode change 100644 => 100755 plugins/footnote/popcorn.footnote.js mode change 100644 => 100755 plugins/footnote/popcorn.footnote.unit.html mode change 100644 => 100755 plugins/footnote/popcorn.footnote.unit.js mode change 100644 => 100755 plugins/gml/popcorn.gml.html mode change 100644 => 100755 plugins/gml/popcorn.gml.js mode change 100644 => 100755 plugins/gml/popcorn.gml.unit.html mode change 100644 => 100755 plugins/gml/popcorn.gml.unit.js mode change 100644 => 100755 plugins/googlefeed/popcorn.googlefeed.html mode change 100644 => 100755 plugins/googlefeed/popcorn.googlefeed.js mode change 100644 => 100755 plugins/googlefeed/popcorn.googlefeed.unit.html mode change 100644 => 100755 plugins/googlefeed/popcorn.googlefeed.unit.js mode change 100644 => 100755 plugins/googlemap/popcorn.googlemap.html mode change 100644 => 100755 plugins/googlemap/popcorn.googlemap.js mode change 100644 => 100755 plugins/googlemap/popcorn.googlemap.unit.html mode change 100644 => 100755 plugins/googlemap/popcorn.googlemap.unit.js mode change 100644 => 100755 plugins/googlenews/popcorn.googlenews.html mode change 100644 => 100755 plugins/googlenews/popcorn.googlenews.js mode change 100644 => 100755 plugins/googlenews/popcorn.googlenews.unit.html mode change 100644 => 100755 plugins/googlenews/popcorn.googlenews.unit.js mode change 100644 => 100755 plugins/image/popcorn.image.html mode change 100644 => 100755 plugins/image/popcorn.image.js mode change 100644 => 100755 plugins/image/popcorn.image.unit.html mode change 100644 => 100755 plugins/image/popcorn.image.unit.js mode change 100644 => 100755 plugins/index.html mode change 100644 => 100755 plugins/lastfm/popcorn.lastfm.html mode change 100644 => 100755 plugins/lastfm/popcorn.lastfm.js mode change 100644 => 100755 plugins/lastfm/popcorn.lastfm.unit.html mode change 100644 => 100755 plugins/lastfm/popcorn.lastfm.unit.js mode change 100644 => 100755 plugins/linkedin/popcorn.linkedin.html mode change 100644 => 100755 plugins/linkedin/popcorn.linkedin.js mode change 100644 => 100755 plugins/linkedin/popcorn.linkedin.unit.html mode change 100644 => 100755 plugins/linkedin/popcorn.linkedin.unit.js mode change 100644 => 100755 plugins/lowerthird/popcorn.lowerthird.html mode change 100644 => 100755 plugins/lowerthird/popcorn.lowerthird.js mode change 100644 => 100755 plugins/lowerthird/popcorn.lowerthird.unit.html mode change 100644 => 100755 plugins/lowerthird/popcorn.lowerthird.unit.js mode change 100644 => 100755 plugins/mustache/popcorn.mustache.html mode change 100644 => 100755 plugins/mustache/popcorn.mustache.js mode change 100644 => 100755 plugins/mustache/popcorn.mustache.unit.html mode change 100644 => 100755 plugins/mustache/popcorn.mustache.unit.js mode change 100644 => 100755 plugins/openmap/popcorn.openmap.html mode change 100644 => 100755 plugins/openmap/popcorn.openmap.js mode change 100644 => 100755 plugins/openmap/popcorn.openmap.unit.html mode change 100644 => 100755 plugins/openmap/popcorn.openmap.unit.js mode change 100644 => 100755 plugins/pause/popcorn.pause.html mode change 100644 => 100755 plugins/pause/popcorn.pause.js mode change 100644 => 100755 plugins/pause/popcorn.pause.unit.html mode change 100644 => 100755 plugins/pause/popcorn.pause.unit.js mode change 100644 => 100755 plugins/subtitle/popcorn.subtitle.html mode change 100644 => 100755 plugins/subtitle/popcorn.subtitle.js mode change 100644 => 100755 plugins/subtitle/popcorn.subtitle.unit.html mode change 100644 => 100755 plugins/subtitle/popcorn.subtitle.unit.js mode change 100644 => 100755 plugins/tagthisperson/popcorn.tagthisperson.html mode change 100644 => 100755 plugins/tagthisperson/popcorn.tagthisperson.js mode change 100644 => 100755 plugins/tagthisperson/popcorn.tagthisperson.unit.html mode change 100644 => 100755 plugins/tagthisperson/popcorn.tagthisperson.unit.js mode change 100644 => 100755 plugins/twitter/popcorn.twitter.html mode change 100644 => 100755 plugins/twitter/popcorn.twitter.js mode change 100644 => 100755 plugins/twitter/popcorn.twitter.unit.html mode change 100644 => 100755 plugins/twitter/popcorn.twitter.unit.js mode change 100644 => 100755 plugins/webpage/popcorn.webpage.js mode change 100644 => 100755 plugins/webpage/popcorn.webpage.unit.html mode change 100644 => 100755 plugins/webpage/popcorn.webpage.unit.js mode change 100644 => 100755 plugins/wikipedia/popcorn.wikipedia.html mode change 100644 => 100755 plugins/wikipedia/popcorn.wikipedia.js mode change 100644 => 100755 plugins/wikipedia/popcorn.wikipedia.unit.html mode change 100644 => 100755 plugins/wikipedia/popcorn.wikipedia.unit.js mode change 100644 => 100755 plugins/wordriver/popcorn.wordriver.html mode change 100644 => 100755 plugins/wordriver/popcorn.wordriver.js mode change 100644 => 100755 plugins/wordriver/popcorn.wordriver.unit.html mode change 100644 => 100755 plugins/wordriver/popcorn.wordriver.unit.js diff --git a/plugins/attribution/popcorn.attribution.html b/plugins/attribution/popcorn.attribution.html old mode 100644 new mode 100755 diff --git a/plugins/attribution/popcorn.attribution.js b/plugins/attribution/popcorn.attribution.js old mode 100644 new mode 100755 diff --git a/plugins/attribution/popcorn.attribution.unit.html b/plugins/attribution/popcorn.attribution.unit.html old mode 100644 new mode 100755 diff --git a/plugins/attribution/popcorn.attribution.unit.js b/plugins/attribution/popcorn.attribution.unit.js old mode 100644 new mode 100755 index bb5bb16..e0282c0 --- a/plugins/attribution/popcorn.attribution.unit.js +++ b/plugins/attribution/popcorn.attribution.unit.js @@ -25,7 +25,7 @@ test("Popcorn attribution Plugin", function () { popped.attribution({ start: 0, // seconds - end: 0.5, // seconds + end: 2, // seconds nameofwork: "A Shared Culture", copyrightholder:"Jesse Dylan", license: "CC-BY-N6", @@ -33,8 +33,8 @@ test("Popcorn attribution Plugin", function () { target: 'attribdiv' } ) .attribution({ - start: 0.5, // seconds - end: 1, // seconds + start: 2, // seconds + end: 4, // seconds nameofwork: "Internet", nameofworkurl:"http://www.archive.org/details/CC1232_internet", copyrightholder:"The Computer Chronicles", @@ -53,12 +53,12 @@ test("Popcorn attribution Plugin", function () { plus(); }); - popped.exec( 0.5, function() { + popped.exec( 2, function() { equals (attributiondiv.children[1].style.display , "inline", "second attribution is visible on the page" ); plus(); }); - popped.exec( 1, function() { + popped.exec( 4, function() { equals(attributiondiv.children[1].style.display , "none", "second attribution is no longer visible on the page" ); plus(); equals(attributiondiv.children[0].style.display , "none", "first attribution is no longer visible on the page" ); diff --git a/plugins/code/popcorn.code.html b/plugins/code/popcorn.code.html old mode 100644 new mode 100755 diff --git a/plugins/code/popcorn.code.js b/plugins/code/popcorn.code.js old mode 100644 new mode 100755 diff --git a/plugins/code/popcorn.code.unit.html b/plugins/code/popcorn.code.unit.html old mode 100644 new mode 100755 diff --git a/plugins/code/popcorn.code.unit.js b/plugins/code/popcorn.code.unit.js old mode 100644 new mode 100755 index 89d1cbd..5daf659 --- a/plugins/code/popcorn.code.unit.js +++ b/plugins/code/popcorn.code.unit.js @@ -23,8 +23,8 @@ test('Popcorn Code Plugin', function () { plus(); popped.code({ - start: 1, - end: 3, + start: 0, + end: 2, onStart: function( options ) { codeDiv.innerHTML = 'Test 1 - onStart (no onEnd)'; ok(true, 'Test 1 onStart was run.'); @@ -33,8 +33,8 @@ test('Popcorn Code Plugin', function () { }); popped.code({ - start: 5, - end: 8, + start: 2, + end: 4, onStart: function( options ) { codeDiv.innerHTML = 'Test 2 - onStart'; ok(true, 'Test 2 onStart was run.'); @@ -48,8 +48,8 @@ test('Popcorn Code Plugin', function () { }); popped.code({ - start: 10, - end: 14, + start: 4, + end: 6, onStart: function( options ) { codeDiv.innerHTML = 'Test 3 - onStart [Frames: '; ok(true, 'Test 3 onStart was run.'); diff --git a/plugins/facebook/popcorn.facebook.html b/plugins/facebook/popcorn.facebook.html old mode 100644 new mode 100755 diff --git a/plugins/facebook/popcorn.facebook.js b/plugins/facebook/popcorn.facebook.js old mode 100644 new mode 100755 diff --git a/plugins/facebook/popcorn.facebook.unit.html b/plugins/facebook/popcorn.facebook.unit.html old mode 100644 new mode 100755 diff --git a/plugins/facebook/popcorn.facebook.unit.js b/plugins/facebook/popcorn.facebook.unit.js old mode 100644 new mode 100755 index dd6b86d..4086f77 --- a/plugins/facebook/popcorn.facebook.unit.js +++ b/plugins/facebook/popcorn.facebook.unit.js @@ -25,28 +25,28 @@ test("Popcorn Facebook Plugin", function () { popped.facebook({ target: "likediv", start : 1, - end : 7 + end : 6 } ) .facebook({ href : "http://www.facebook.com/senecacollege", type : "LIKE_BOX", target: "likeboxdiv", start : 2, - end : 7 + end : 6 } ) .facebook({ site : "http://popcornjs.org/", type : "ACTIVITY", target : "activitydiv", start : 3, - end : 7 + end : 6 } ) .facebook({ href : "http://www.facebook.com/senecacollege", type : "FACEPILE", target : "facepilediv", start : 4, - end : 7, + end : 6, width : 300 } ) .volume(0) diff --git a/plugins/flickr/popcorn.flickr.html b/plugins/flickr/popcorn.flickr.html old mode 100644 new mode 100755 diff --git a/plugins/flickr/popcorn.flickr.js b/plugins/flickr/popcorn.flickr.js old mode 100644 new mode 100755 diff --git a/plugins/flickr/popcorn.flickr.unit.html b/plugins/flickr/popcorn.flickr.unit.html old mode 100644 new mode 100755 diff --git a/plugins/flickr/popcorn.flickr.unit.js b/plugins/flickr/popcorn.flickr.unit.js old mode 100644 new mode 100755 index d510f20..2860fa6 --- a/plugins/flickr/popcorn.flickr.unit.js +++ b/plugins/flickr/popcorn.flickr.unit.js @@ -24,14 +24,14 @@ test("Popcorn Flickr Plugin", function () { popped.flickr({ start: 0, // seconds - end: 1, // seconds + end: 2, // seconds userid: '35034346917@N01', numberofimages: '1', target: 'flickrdiv' } ) .flickr({ - start: 1, // seconds - end: 2, // seconds + start: 2, // seconds + end: 4, // seconds username: 'AniaSob', apikey: 'd1d249260dd1673ec8810c8ce5150ae1', numberofimages: '1', @@ -40,21 +40,21 @@ test("Popcorn Flickr Plugin", function () { setupId = popped.getLastTrackEventId(); - popped.exec( 0.5, function() { + popped.exec( 1, function() { ok( /display: inline;/.test( flickrdiv.innerHTML ), "Div contents are displayed" ); plus(); ok( /img/.test( flickrdiv.innerHTML ), "An image exists" ); plus(); }); - popped.exec( 1.5, function() { + popped.exec( 3, function() { ok( /display: inline;/.test( flickrdiv.innerHTML ), "Div contents are displayed" ); plus(); ok( /img/.test( flickrdiv.innerHTML ), "An image exists" ); plus(); }); - popped.exec( 2, function() { + popped.exec( 4, function() { ok( /display: none;/.test( flickrdiv.innerHTML ), "Div contents are hidden again" ); plus(); diff --git a/plugins/footnote/popcorn.footnote.html b/plugins/footnote/popcorn.footnote.html old mode 100644 new mode 100755 diff --git a/plugins/footnote/popcorn.footnote.js b/plugins/footnote/popcorn.footnote.js old mode 100644 new mode 100755 diff --git a/plugins/footnote/popcorn.footnote.unit.html b/plugins/footnote/popcorn.footnote.unit.html old mode 100644 new mode 100755 diff --git a/plugins/footnote/popcorn.footnote.unit.js b/plugins/footnote/popcorn.footnote.unit.js old mode 100644 new mode 100755 index 22df71c..2539c6d --- a/plugins/footnote/popcorn.footnote.unit.js +++ b/plugins/footnote/popcorn.footnote.unit.js @@ -24,13 +24,13 @@ test("Popcorn Footnote Plugin", function () { popped.footnote({ start: 0, // seconds - end: 1, // seconds + end: 2, // seconds text: 'This video made exclusively for drumbeat.org', target: 'footnotediv' }) .footnote({ - start: 1, // seconds - end: 2, // seconds + start: 2, // seconds + end: 4, // seconds text: 'Visit webmademovies.org for more details', target: 'footnotediv' }); @@ -46,12 +46,12 @@ test("Popcorn Footnote Plugin", function () { plus(); }); - popped.exec( 1, function() { + popped.exec( 3, function() { equals (footnotediv.children[1].style.display , "inline", "second footnote is visible on the page" ); plus(); }); - popped.exec( 2, function() { + popped.exec( 4, function() { ok (footnotediv.children[1].style.display === 'none' && footnotediv.children[0].style.display === 'none', "footnote are no longer vidible on the page" ); plus(); diff --git a/plugins/gml/popcorn.gml.html b/plugins/gml/popcorn.gml.html old mode 100644 new mode 100755 diff --git a/plugins/gml/popcorn.gml.js b/plugins/gml/popcorn.gml.js old mode 100644 new mode 100755 diff --git a/plugins/gml/popcorn.gml.unit.html b/plugins/gml/popcorn.gml.unit.html old mode 100644 new mode 100755 diff --git a/plugins/gml/popcorn.gml.unit.js b/plugins/gml/popcorn.gml.unit.js old mode 100644 new mode 100755 index 63676b9..da25375 --- a/plugins/gml/popcorn.gml.unit.js +++ b/plugins/gml/popcorn.gml.unit.js @@ -24,13 +24,13 @@ test("Popcorn GML Plugin", function () { popped.gml({ start: 0, // seconds - end: 1, // seconds + end: 2, // seconds gmltag: '29582', target: 'gmldiv' }) .gml({ - start: 1, // seconds - end: 2, // seconds + start: 2, // seconds + end: 4, // seconds gmltag: '155', target: 'gmldiv' }).volume( 0 ); @@ -42,12 +42,12 @@ test("Popcorn GML Plugin", function () { plus(); }); - popped.exec( 1, function() { + popped.exec( 3, function() { equals( gmldiv.children[1].style.display , "block", "second GML is visible on the page" ); plus(); }); - popped.exec( 2, function() { + popped.exec( 4, function() { equals( gmldiv.children[1].style.display , "none", "second GML is no longer visible on the page" ); plus(); equals( gmldiv.children[0].style.display , "none", "first GML is no longer visible on the page" ); diff --git a/plugins/googlefeed/popcorn.googlefeed.html b/plugins/googlefeed/popcorn.googlefeed.html old mode 100644 new mode 100755 diff --git a/plugins/googlefeed/popcorn.googlefeed.js b/plugins/googlefeed/popcorn.googlefeed.js old mode 100644 new mode 100755 diff --git a/plugins/googlefeed/popcorn.googlefeed.unit.html b/plugins/googlefeed/popcorn.googlefeed.unit.html old mode 100644 new mode 100755 diff --git a/plugins/googlefeed/popcorn.googlefeed.unit.js b/plugins/googlefeed/popcorn.googlefeed.unit.js old mode 100644 new mode 100755 index 5fbcfcc..e574a61 --- a/plugins/googlefeed/popcorn.googlefeed.unit.js +++ b/plugins/googlefeed/popcorn.googlefeed.unit.js @@ -24,7 +24,7 @@ test("Popcorn Google Feed Plugin", function () { popped.googlefeed({ start: 0, // seconds - end: 1, // seconds + end: 2, // seconds target: "feed", url: "http://zenit.senecac.on.ca/~chris.tyler/planet/rss20.xml", title: "Planet Feed", @@ -32,7 +32,7 @@ test("Popcorn Google Feed Plugin", function () { }) .googlefeed({ start: 0, // seconds - end: 2, // seconds + end: 4, // seconds target: "feed1", url: "http://blog.pikimal.com/geek/feed/", title: "pikiGeek", @@ -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( 3, 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( 4, function() { ok (document.getElementById('_feed2').style.display === "none" && document.getElementById('_feed1').style.display === "none", "Both feeds are no lnger visible" ); plus(); diff --git a/plugins/googlemap/popcorn.googlemap.html b/plugins/googlemap/popcorn.googlemap.html old mode 100644 new mode 100755 diff --git a/plugins/googlemap/popcorn.googlemap.js b/plugins/googlemap/popcorn.googlemap.js old mode 100644 new mode 100755 diff --git a/plugins/googlemap/popcorn.googlemap.unit.html b/plugins/googlemap/popcorn.googlemap.unit.html old mode 100644 new mode 100755 diff --git a/plugins/googlemap/popcorn.googlemap.unit.js b/plugins/googlemap/popcorn.googlemap.unit.js old mode 100644 new mode 100755 index b65e719..dd50319 --- a/plugins/googlemap/popcorn.googlemap.unit.js +++ b/plugins/googlemap/popcorn.googlemap.unit.js @@ -29,7 +29,7 @@ test("Popcorn Google Map Plugin", function () { popped.googlemap({ start: 0, // seconds - end: 5, // seconds + end: 2, // seconds type: 'ROADMAP', target: 'map', lat: 43.665429, @@ -38,15 +38,15 @@ test("Popcorn Google Map Plugin", function () { }) .googlemap({ start: 0, // seconds - end: 10, // seconds + end: 2, // seconds type: 'SATELLITE', target: 'map2', location:'toronto', zoom: 15 }); var mapz = popped.googlemap({ - start: 0, // seconds - end: 10, // seconds + start: 2, // seconds + end: 4, // seconds type: "STREETVIEW", target: "map3", location: "6th Line, Oakville, Ontario", @@ -60,7 +60,7 @@ test("Popcorn Google Map Plugin", function () { setupId = popped.getLastTrackEventId(); - popped.exec( 4, function() { + popped.exec( 1, function() { ok(google.maps, "Google maps is available"); plus(); ok(google.maps.Geocoder, "Google maps Geocoder is available"); @@ -71,19 +71,19 @@ test("Popcorn Google Map Plugin", function () { plus(); }); - popped.exec( 4, function() { + popped.exec( 1, function() { ok (document.getElementById('actualmap2'), "Second map is on the page" ); plus(); equals (document.getElementById('actualmap2').offsetParent.id, "map2", "Second map is inside the 'map2' div" ); plus(); }); - popped.exec( 4, function() { + popped.exec( 3, function() { equals (document.getElementById('actualmap3').offsetParent.id, "map3", "Tweening map is inside the 'map3' div" ); plus(); }); - popped.exec( 11, function() { + popped.exec( 5, function() { ok (document.getElementById('actualmap2').style.display === "none" && document.getElementById('actualmap1').style.display === "none" && document.getElementById('actualmap3').style.display === "none", "All maps are no longer visible" ); diff --git a/plugins/googlenews/popcorn.googlenews.html b/plugins/googlenews/popcorn.googlenews.html old mode 100644 new mode 100755 diff --git a/plugins/googlenews/popcorn.googlenews.js b/plugins/googlenews/popcorn.googlenews.js old mode 100644 new mode 100755 diff --git a/plugins/googlenews/popcorn.googlenews.unit.html b/plugins/googlenews/popcorn.googlenews.unit.html old mode 100644 new mode 100755 diff --git a/plugins/googlenews/popcorn.googlenews.unit.js b/plugins/googlenews/popcorn.googlenews.unit.js old mode 100644 new mode 100755 index b067de0..a41c634 --- a/plugins/googlenews/popcorn.googlenews.unit.js +++ b/plugins/googlenews/popcorn.googlenews.unit.js @@ -24,13 +24,13 @@ test( "Popcorn google news Plugin", function () { popped.googlenews({ start: 0, // seconds - end: 1, // seconds + end: 2, // seconds topic: "Oil Spill", target: "googlenewsdiv" }) .googlenews({ - start: 1, // seconds - end: 2, // seconds + start: 2, // seconds + end: 4, // seconds topic: "Village Telco", target: "googlenewsdiv" }) @@ -45,12 +45,12 @@ test( "Popcorn google news Plugin", function () { plus(); }); - popped.exec( 1, function() { + popped.exec( 3, function() { equals( googlenewsdiv.children[1].style.display , "inline", "second googlenews is visible on the page" ); plus(); }); - popped.exec( 2, function() { + popped.exec( 4, function() { equals( googlenewsdiv.children[1].style.display , "none", "second googlenews is no longer visible on the page" ); plus(); equals( googlenewsdiv.children[0].style.display , "none", "first googlenews is no longer visible on the page" ); diff --git a/plugins/image/popcorn.image.html b/plugins/image/popcorn.image.html old mode 100644 new mode 100755 diff --git a/plugins/image/popcorn.image.js b/plugins/image/popcorn.image.js old mode 100644 new mode 100755 diff --git a/plugins/image/popcorn.image.unit.html b/plugins/image/popcorn.image.unit.html old mode 100644 new mode 100755 diff --git a/plugins/image/popcorn.image.unit.js b/plugins/image/popcorn.image.unit.js old mode 100644 new mode 100755 index bc58cf0..afa2c24 --- a/plugins/image/popcorn.image.unit.js +++ b/plugins/image/popcorn.image.unit.js @@ -39,9 +39,9 @@ test("Popcorn Image Plugin", function () { }) .image({ // seconds - start: 5, + start: 4, // seconds - end: 7, + end: 6, // no href src: sources[1], target: "imagediv" @@ -50,7 +50,7 @@ test("Popcorn Image Plugin", function () { // seconds start: 5, // seconds - end: 7, + end: 6, // no href src: sources[2], target: "imagediv" @@ -65,19 +65,19 @@ test("Popcorn Image Plugin", function () { plus(); }); - popped.exec( 4, function() { + popped.exec( 3, function() { ok( /display: none;/.test( imagediv.innerHTML ), "Div contents are hidden again" ); plus(); }); - popped.exec( 6, function() { + popped.exec( 5, function() { [].forEach.call( document.querySelectorAll( "#imagediv a img" ), function( img, idx ) { ok( img.src === sources[ idx ], "Image " + idx + " is in the right order" ); plus(); }); }); - popped.exec( 8, function() { + popped.exec( 7, function() { popped.pause().removeTrackEvent( setupId ); ok( !imagediv.children[2], "removed image was properly destroyed" ); plus(); diff --git a/plugins/index.html b/plugins/index.html old mode 100644 new mode 100755 diff --git a/plugins/lastfm/popcorn.lastfm.html b/plugins/lastfm/popcorn.lastfm.html old mode 100644 new mode 100755 diff --git a/plugins/lastfm/popcorn.lastfm.js b/plugins/lastfm/popcorn.lastfm.js old mode 100644 new mode 100755 diff --git a/plugins/lastfm/popcorn.lastfm.unit.html b/plugins/lastfm/popcorn.lastfm.unit.html old mode 100644 new mode 100755 diff --git a/plugins/lastfm/popcorn.lastfm.unit.js b/plugins/lastfm/popcorn.lastfm.unit.js old mode 100644 new mode 100755 diff --git a/plugins/linkedin/popcorn.linkedin.html b/plugins/linkedin/popcorn.linkedin.html old mode 100644 new mode 100755 diff --git a/plugins/linkedin/popcorn.linkedin.js b/plugins/linkedin/popcorn.linkedin.js old mode 100644 new mode 100755 diff --git a/plugins/linkedin/popcorn.linkedin.unit.html b/plugins/linkedin/popcorn.linkedin.unit.html old mode 100644 new mode 100755 diff --git a/plugins/linkedin/popcorn.linkedin.unit.js b/plugins/linkedin/popcorn.linkedin.unit.js old mode 100644 new mode 100755 index 2c23c20..a4d8413 --- a/plugins/linkedin/popcorn.linkedin.unit.js +++ b/plugins/linkedin/popcorn.linkedin.unit.js @@ -66,11 +66,11 @@ test("Popcorn LinkedIn Plugin", function () { companyid: "LinkedIn", productid: "201714", apikey: "ZOLRI2rzQS_oaXELpPF0aksxwFFEvoxAFZRLfHjaAhcGPfOX0Ds4snkJpWwKs8gk", - start: 5, - end: 7 + start: 1, + end: 3 }); - popped.exec( 6, function() { + popped.exec( 2, function() { ok( /block/.test( recommenddiv.style.display ), "recommenddiv contents are displayed" ); plus(); @@ -78,7 +78,7 @@ test("Popcorn LinkedIn Plugin", function () { plus(); }); - popped.exec( 8, function() { + popped.exec( 4, function() { ok( /none/.test( recommenddiv.style.display ), "recommenddiv contents are hidden again" ); plus(); @@ -94,11 +94,11 @@ test("Popcorn LinkedIn Plugin", function () { format: "inline", target: "memberprofilediv", apikey: "ZOLRI2rzQS_oaXELpPF0aksxwFFEvoxAFZRLfHjaAhcGPfOX0Ds4snkJpWwKs8gk", - start: 9, - end: 11 + start: 1, + end: 3 }); - popped.exec( 10, function() { + popped.exec( 2, function() { ok( /block/.test( memberprofilediv.style.display ), "memberprofilediv contents are displayed" ); plus(); @@ -106,7 +106,7 @@ test("Popcorn LinkedIn Plugin", function () { plus(); }); - popped.exec( 12, function() { + popped.exec( 4, function() { ok( /none/.test( memberprofilediv.style.display ), "memberprofilediv contents are hidden again" ); plus(); @@ -121,11 +121,11 @@ test("Popcorn LinkedIn Plugin", function () { companyid: "1441", target: "companyinsiderdiv", apikey: "ZOLRI2rzQS_oaXELpPF0aksxwFFEvoxAFZRLfHjaAhcGPfOX0Ds4snkJpWwKs8gk", - start: 13, - end: 15 + start: 1, + end: 3 }); - popped.exec( 14, function() { + popped.exec( 2, function() { ok( /block/.test( companyinsiderdiv.style.display ), "companyinsiderdiv contents are displayed" ); plus(); @@ -133,7 +133,7 @@ test("Popcorn LinkedIn Plugin", function () { plus(); }); - popped.exec( 16, function() { + popped.exec( 4, function() { ok( /none/.test( companyinsiderdiv.style.display ), "companyinsiderdiv contents are hidden again" ); plus(); @@ -149,13 +149,13 @@ test("Popcorn LinkedIn Plugin", function () { format: "inline", target: "companyprofilediv", apikey: "ZOLRI2rzQS_oaXELpPF0aksxwFFEvoxAFZRLfHjaAhcGPfOX0Ds4snkJpWwKs8gk", - start: 17, - end: 19 + start: 1, + end: 3 }); setupId = popped.getLastTrackEventId(); - popped.exec( 18, function() { + popped.exec( 2, function() { ok( /block/.test( companyprofilediv.style.display ), "companyprofilediv contents are displayed" ); plus(); @@ -163,7 +163,7 @@ test("Popcorn LinkedIn Plugin", function () { plus(); }); - popped.exec( 20, function() { + popped.exec( 4, function() { ok( /none/.test( companyprofilediv.style.display ), "companyprofilediv contents are hidden again" ); plus(); diff --git a/plugins/lowerthird/popcorn.lowerthird.html b/plugins/lowerthird/popcorn.lowerthird.html old mode 100644 new mode 100755 diff --git a/plugins/lowerthird/popcorn.lowerthird.js b/plugins/lowerthird/popcorn.lowerthird.js old mode 100644 new mode 100755 diff --git a/plugins/lowerthird/popcorn.lowerthird.unit.html b/plugins/lowerthird/popcorn.lowerthird.unit.html old mode 100644 new mode 100755 diff --git a/plugins/lowerthird/popcorn.lowerthird.unit.js b/plugins/lowerthird/popcorn.lowerthird.unit.js old mode 100644 new mode 100755 index 50d3bf3..ac37f38 --- a/plugins/lowerthird/popcorn.lowerthird.unit.js +++ b/plugins/lowerthird/popcorn.lowerthird.unit.js @@ -27,14 +27,14 @@ test( "Popcorn lower third Plugin", function () { popped.lowerthird({ start: 0, // seconds - end: 5, // seconds + end: 2, // seconds salutation: "Mr", name: "Hyde", role: "Monster" } ) .lowerthird({ - start: 3, // seconds - end: 10, // seconds + start: 2, // seconds + end: 4, // seconds target: "lowerthirddiv", salutation: "Dr", name: "Jekyll", @@ -47,12 +47,12 @@ test( "Popcorn lower third Plugin", function () { plus(); }); - popped.exec( 4, function() { + popped.exec( 3, function() { equals ( lowerthirddiv.innerHTML, "Dr Jekyll
Person", "second lowerthird is visible" ); plus(); }); - popped.exec( 11, function() { + popped.exec( 5, function() { equals ( popped.container.innerHTML, "", "first lowerthird is empty" ); plus(); equals ( lowerthirddiv.innerHTML, "", "second lowerthird is empty" ); @@ -61,4 +61,4 @@ test( "Popcorn lower third Plugin", function () { popped.play(); -}); \ No newline at end of file +}); diff --git a/plugins/mustache/popcorn.mustache.html b/plugins/mustache/popcorn.mustache.html old mode 100644 new mode 100755 diff --git a/plugins/mustache/popcorn.mustache.js b/plugins/mustache/popcorn.mustache.js old mode 100644 new mode 100755 diff --git a/plugins/mustache/popcorn.mustache.unit.html b/plugins/mustache/popcorn.mustache.unit.html old mode 100644 new mode 100755 diff --git a/plugins/mustache/popcorn.mustache.unit.js b/plugins/mustache/popcorn.mustache.unit.js old mode 100644 new mode 100755 index 6750c5c..62568f2 --- a/plugins/mustache/popcorn.mustache.unit.js +++ b/plugins/mustache/popcorn.mustache.unit.js @@ -23,8 +23,8 @@ test('Popcorn Mustache Plugin', function () { // Static strings popped.mustache({ - start: 1, // seconds - end: 3, // seconds + start: 0, // seconds + end: 2, // seconds template: '

{{heading}}

', data: '{"heading": "mustache - test 1/3"}', target: 'mustache-div', @@ -33,8 +33,8 @@ test('Popcorn Mustache Plugin', function () { // Dynamic functions popped.mustache({ - start: 5, // seconds - end: 7, // seconds + start: 2, // seconds + end: 4, // seconds template: function(plugin, options) { return '

{{heading}}

'; }, @@ -46,8 +46,8 @@ test('Popcorn Mustache Plugin', function () { // Template + Object literal popped.mustache({ - start: 9, // seconds - end: 11, // seconds + start: 4, // seconds + end: 5, // seconds template: function(plugin, options) { return '

{{heading}}

'; }, @@ -68,18 +68,18 @@ test('Popcorn Mustache Plugin', function () { var t = Math.floor(video.currentTime); - if (t === 2 && !two) { + if (t === 1 && !two) { pass(1, 3); two = true; - } else if (t === 6 && !six) { + } else if (t === 3 && !six) { pass(2, 3); six = true; - } else if (t === 10 && !ten) { + } else if (t === 4 && !ten) { pass(3, 3); ten = true; } - if (t === 11) { + if (t === 6) { video.pause(); } diff --git a/plugins/openmap/popcorn.openmap.html b/plugins/openmap/popcorn.openmap.html old mode 100644 new mode 100755 diff --git a/plugins/openmap/popcorn.openmap.js b/plugins/openmap/popcorn.openmap.js old mode 100644 new mode 100755 diff --git a/plugins/openmap/popcorn.openmap.unit.html b/plugins/openmap/popcorn.openmap.unit.html old mode 100644 new mode 100755 diff --git a/plugins/openmap/popcorn.openmap.unit.js b/plugins/openmap/popcorn.openmap.unit.js old mode 100644 new mode 100755 index 2cd5fa8..b7216ce --- a/plugins/openmap/popcorn.openmap.unit.js +++ b/plugins/openmap/popcorn.openmap.unit.js @@ -28,7 +28,7 @@ test( "Popcorn OpenMap Plugin", function () { popped.openmap({ start: 0, - end: 5, + end: 4, type: 'ROADMAP', target: 'map', lat: 43.665429, @@ -37,7 +37,7 @@ test( "Popcorn OpenMap Plugin", function () { } ) .openmap({ start: 0, - end: 5, + end: 4, type: 'SATELLITE', target: 'map2', lat: 40.943926, @@ -46,7 +46,7 @@ test( "Popcorn OpenMap Plugin", function () { } ) .openmap( { start: 0, - end: 5, + end: 4, type: 'TERRAIN', target: 'map3', lat: 40.943926, @@ -55,7 +55,7 @@ test( "Popcorn OpenMap Plugin", function () { } ) .openmap( { start: 0, - end: 5, + end: 4, target: 'map4', lat: 40.943926, lng: -78.968525, @@ -66,7 +66,7 @@ test( "Popcorn OpenMap Plugin", function () { setupId = popped.getLastTrackEventId(); - popped.exec( 4, function() { + popped.exec( 3, function() { ok(OpenLayers, "OpenLayers is available"); plus(); @@ -94,7 +94,7 @@ test( "Popcorn OpenMap Plugin", function () { plus(); } ) - .exec( 6, function() { + .exec( 5, function() { ok (document.getElementById('openmapdiv2').style.display === "none" && document.getElementById('openmapdiv3').style.display === "none" && document.getElementById('openmapdiv4').style.display === "none" && diff --git a/plugins/pause/popcorn.pause.html b/plugins/pause/popcorn.pause.html old mode 100644 new mode 100755 diff --git a/plugins/pause/popcorn.pause.js b/plugins/pause/popcorn.pause.js old mode 100644 new mode 100755 diff --git a/plugins/pause/popcorn.pause.unit.html b/plugins/pause/popcorn.pause.unit.html old mode 100644 new mode 100755 diff --git a/plugins/pause/popcorn.pause.unit.js b/plugins/pause/popcorn.pause.unit.js old mode 100644 new mode 100755 diff --git a/plugins/subtitle/popcorn.subtitle.html b/plugins/subtitle/popcorn.subtitle.html old mode 100644 new mode 100755 diff --git a/plugins/subtitle/popcorn.subtitle.js b/plugins/subtitle/popcorn.subtitle.js old mode 100644 new mode 100755 diff --git a/plugins/subtitle/popcorn.subtitle.unit.html b/plugins/subtitle/popcorn.subtitle.unit.html old mode 100644 new mode 100755 diff --git a/plugins/subtitle/popcorn.subtitle.unit.js b/plugins/subtitle/popcorn.subtitle.unit.js old mode 100644 new mode 100755 diff --git a/plugins/tagthisperson/popcorn.tagthisperson.html b/plugins/tagthisperson/popcorn.tagthisperson.html old mode 100644 new mode 100755 diff --git a/plugins/tagthisperson/popcorn.tagthisperson.js b/plugins/tagthisperson/popcorn.tagthisperson.js old mode 100644 new mode 100755 diff --git a/plugins/tagthisperson/popcorn.tagthisperson.unit.html b/plugins/tagthisperson/popcorn.tagthisperson.unit.html old mode 100644 new mode 100755 diff --git a/plugins/tagthisperson/popcorn.tagthisperson.unit.js b/plugins/tagthisperson/popcorn.tagthisperson.unit.js old mode 100644 new mode 100755 diff --git a/plugins/twitter/popcorn.twitter.html b/plugins/twitter/popcorn.twitter.html old mode 100644 new mode 100755 diff --git a/plugins/twitter/popcorn.twitter.js b/plugins/twitter/popcorn.twitter.js old mode 100644 new mode 100755 diff --git a/plugins/twitter/popcorn.twitter.unit.html b/plugins/twitter/popcorn.twitter.unit.html old mode 100644 new mode 100755 diff --git a/plugins/twitter/popcorn.twitter.unit.js b/plugins/twitter/popcorn.twitter.unit.js old mode 100644 new mode 100755 diff --git a/plugins/webpage/popcorn.webpage.js b/plugins/webpage/popcorn.webpage.js old mode 100644 new mode 100755 diff --git a/plugins/webpage/popcorn.webpage.unit.html b/plugins/webpage/popcorn.webpage.unit.html old mode 100644 new mode 100755 diff --git a/plugins/webpage/popcorn.webpage.unit.js b/plugins/webpage/popcorn.webpage.unit.js old mode 100644 new mode 100755 diff --git a/plugins/wikipedia/popcorn.wikipedia.html b/plugins/wikipedia/popcorn.wikipedia.html old mode 100644 new mode 100755 diff --git a/plugins/wikipedia/popcorn.wikipedia.js b/plugins/wikipedia/popcorn.wikipedia.js old mode 100644 new mode 100755 diff --git a/plugins/wikipedia/popcorn.wikipedia.unit.html b/plugins/wikipedia/popcorn.wikipedia.unit.html old mode 100644 new mode 100755 diff --git a/plugins/wikipedia/popcorn.wikipedia.unit.js b/plugins/wikipedia/popcorn.wikipedia.unit.js old mode 100644 new mode 100755 index 487f11d..58a8823 --- a/plugins/wikipedia/popcorn.wikipedia.unit.js +++ b/plugins/wikipedia/popcorn.wikipedia.unit.js @@ -30,7 +30,7 @@ test("Popcorn wikipedia Plugin", function () { } ) .wikipedia({ start: 4, // seconds - end: 8, // seconds + end: 5, // seconds src: 'http://en.wikipedia.org/wiki/S%C3%A3o_Paulo', target: 'wikidiv' } ) @@ -53,7 +53,7 @@ test("Popcorn wikipedia Plugin", function () { plus(); }); - popped.exec( 5, function() { + popped.exec( 4, function() { ok (theArticle.innerHTML !== "", "wikidiv now contains information" ); plus(); equals (theArticle.childElementCount, 2, "wikidiv now contains two child elements" ); diff --git a/plugins/wordriver/popcorn.wordriver.html b/plugins/wordriver/popcorn.wordriver.html old mode 100644 new mode 100755 diff --git a/plugins/wordriver/popcorn.wordriver.js b/plugins/wordriver/popcorn.wordriver.js old mode 100644 new mode 100755 diff --git a/plugins/wordriver/popcorn.wordriver.unit.html b/plugins/wordriver/popcorn.wordriver.unit.html old mode 100644 new mode 100755 diff --git a/plugins/wordriver/popcorn.wordriver.unit.js b/plugins/wordriver/popcorn.wordriver.unit.js old mode 100644 new mode 100755 -- 2.43.0