]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Fixed missed style fixes
authorDavid Seifried <david.c.seifried@gmail.com>
Tue, 13 Sep 2011 19:03:19 +0000 (15:03 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Tue, 13 Sep 2011 19:03:19 +0000 (15:03 -0400)
67 files changed:
plugins/attribution/popcorn.attribution.html
plugins/attribution/popcorn.attribution.unit.js
plugins/code/popcorn.code.html
plugins/code/popcorn.code.unit.html
plugins/code/popcorn.code.unit.js
plugins/facebook/popcorn.facebook.html
plugins/facebook/popcorn.facebook.unit.html
plugins/facebook/popcorn.facebook.unit.js
plugins/flickr/popcorn.flickr.html
plugins/flickr/popcorn.flickr.unit.html
plugins/flickr/popcorn.flickr.unit.js
plugins/footnote/popcorn.footnote.unit.js
plugins/gml/popcorn.gml.html
plugins/gml/popcorn.gml.unit.html
plugins/gml/popcorn.gml.unit.js
plugins/googlefeed/popcorn.googlefeed.html
plugins/googlefeed/popcorn.googlefeed.js
plugins/googlefeed/popcorn.googlefeed.unit.html
plugins/googlefeed/popcorn.googlefeed.unit.js
plugins/googlemap/popcorn.googlemap.html
plugins/googlemap/popcorn.googlemap.unit.html
plugins/googlemap/popcorn.googlemap.unit.js
plugins/image/popcorn.image.unit.js
plugins/lastfm/popcorn.lastfm.html
plugins/lastfm/popcorn.lastfm.js
plugins/lastfm/popcorn.lastfm.unit.html
plugins/lastfm/popcorn.lastfm.unit.js
plugins/linkedin/popcorn.linkedin.unit.js
plugins/lowerthird/popcorn.lowerthird.html
plugins/lowerthird/popcorn.lowerthird.js
plugins/lowerthird/popcorn.lowerthird.unit.html
plugins/lowerthird/popcorn.lowerthird.unit.js
plugins/mustache/popcorn.mustache.js
plugins/mustache/popcorn.mustache.unit.html
plugins/mustache/popcorn.mustache.unit.js
plugins/openmap/popcorn.openmap.html
plugins/openmap/popcorn.openmap.js
plugins/openmap/popcorn.openmap.unit.html
plugins/openmap/popcorn.openmap.unit.js
plugins/pause/popcorn.pause.html
plugins/pause/popcorn.pause.unit.html
plugins/pause/popcorn.pause.unit.js
plugins/processing/popcorn.processing.html
plugins/processing/popcorn.processing.unit.html
plugins/processing/popcorn.processing.unit.js
plugins/subtitle/popcorn.subtitle.html
plugins/subtitle/popcorn.subtitle.unit.html
plugins/subtitle/popcorn.subtitle.unit.js
plugins/tagthisperson/popcorn.tagthisperson.html
plugins/tagthisperson/popcorn.tagthisperson.unit.js
plugins/timeline/popcorn.timeline.html
plugins/timeline/popcorn.timeline.unit.html
plugins/timeline/popcorn.timeline.unit.js
plugins/twitter/popcorn.twitter.html
plugins/twitter/popcorn.twitter.js
plugins/twitter/popcorn.twitter.unit.html
plugins/twitter/popcorn.twitter.unit.js
plugins/webpage/popcorn.webpage.html
plugins/webpage/popcorn.webpage.js
plugins/webpage/popcorn.webpage.unit.html
plugins/webpage/popcorn.webpage.unit.js
plugins/wikipedia/popcorn.wikipedia.html
plugins/wikipedia/popcorn.wikipedia.unit.js
plugins/wordriver/popcorn.wordriver.html
plugins/wordriver/popcorn.wordriver.js
plugins/wordriver/popcorn.wordriver.unit.html
plugins/wordriver/popcorn.wordriver.unit.js

index 14ccbf8920c6627105b812c8bac7cda72811a6ff..0a6788c9dde714e0ac4c7006fa7493faa4e1f663 100755 (executable)
   <div>
     <video id="video"
       controls preload="none"
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png">
 
       <source id="mp4"
         src="../../test/trailer.mp4"
-        type='viden/mp4; codecs="avc1, mp4a"'>
+        type='video/mp4; codecs="avc1, mp4a"'>
 
       <source id="ogv"
         src="../../test/trailer.ogv"
index 81359cec3fbdce9153e49f4f398098077372cc3f..98e733882a368bb9d9dd6f16a1b6c5b5dede25ce 100755 (executable)
@@ -1,6 +1,6 @@
-test("Popcorn attribution Plugin", function () {
+test( "Popcorn attribution Plugin", function() {
 
-  var popped = Popcorn("#video"),
+  var popped = Popcorn( "#video" ),
       expects = 10,
       count = 0,
       setupId,
@@ -9,17 +9,17 @@ test("Popcorn attribution Plugin", function () {
   expect( expects );
 
   function plus() {
-    if ( ++count===expects ) {
+    if ( ++count === expects ) {
       start();
     }
   }
 
   stop();
 
-  ok ( "attribution" in popped, "attribution is a method of the popped instance" );
+  ok( "attribution" in popped, "attribution is a method of the popped instance" );
   plus();
 
-  equals ( attributiondiv.childElementCount, 0, "initially, there is nothing inside the attributiondiv" );
+  equals( attributiondiv.childElementCount, 0, "initially, there is nothing inside the attributiondiv" );
   plus();
 
   popped.attribution({
@@ -45,9 +45,9 @@ test("Popcorn attribution Plugin", function () {
   setupId = popped.getLastTrackEventId();
 
   popped.exec( 0, function() {
-    equals ( attributiondiv.childElementCount, 2, "attributiondiv now has two inner elements" );
+    equals( attributiondiv.childElementCount, 2, "attributiondiv now has two inner elements" );
     plus();
-    equals ( attributiondiv.children[ 0 ].style.display , "inline", "attribution is visible on the page" );
+    equals( attributiondiv.children[ 0 ].style.display , "inline", "attribution is visible on the page" );
     plus();
   });
 
@@ -56,17 +56,17 @@ test("Popcorn attribution Plugin", function () {
     ok( /target="_blank"/.test( attributiondiv.innerHTML ), "attributions create anchors that target=_blank" );
     plus();
 
-    equals ( attributiondiv.children[ 1 ].style.display , "inline", "second attribution is visible on the page" );
+    equals( attributiondiv.children[ 1 ].style.display, "inline", "second attribution is visible on the page" );
     plus();
 
-    equals ( typeof popped.data.trackEvents.byStart[ 1 ]._license, "undefined", "undefined license is properly being handled" );
+    equals( typeof popped.data.trackEvents.byStart[ 1 ]._license, "undefined", "undefined license is properly being handled" );
     plus();
   });
 
   popped.exec( 4, function() {
-    equals( attributiondiv.children[ 1 ].style.display , "none", "second attribution is no longer visible on the page" );
+    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" );
+    equals( attributiondiv.children[ 0 ].style.display, "none", "first attribution is no longer visible on the page" );
     plus();
 
     popped.pause().removeTrackEvent( setupId );
index fe0b1b0a2f5688ad88e717849e71a5b44068f8ef..fd83a01e328833c5beaeb7d5bbb83c971260def3 100755 (executable)
@@ -65,7 +65,7 @@
       autobuffer
       preload="auto"
       controls
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png">
 
       <source id="mp4"
index 5c5b7c9cee72d1eb7664680f24776db56af56ff6..edeef04e083ca1b534a1242071c4620e7b946904 100755 (executable)
@@ -28,7 +28,7 @@
     autobuffer
     preload="auto"
     controls
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index 441074747fc04e479e20299fb8c3fb4abfd88899..5dd8abc8d4811bbcfc24e3cc098fcfcb47feeca4 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn Code Plugin", function () {
+test( "Popcorn Code Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 9,
@@ -9,7 +9,7 @@ test( "Popcorn Code Plugin", function () {
   expect( expects );
 
   function plus() {
-    if ( ++count === expects) {
+    if ( ++count === expects ) {
       start();
     }
   }
@@ -19,7 +19,7 @@ test( "Popcorn Code Plugin", function () {
   ok( "code" in popped, "code is a method of the popped instance" );
   plus();
 
-  equals ( codeDiv.innerHTML, "", "initially, there is nothing inside the code-div" );
+  equals( codeDiv.innerHTML, "", "initially, there is nothing inside the code-div" );
   plus();
 
   popped.code({
index 2098e9680a0820d031ac3c2fcec3dc42969aa3f4..4a4fbbdd759fdaef5cd2846cb1a1765fc8cc0cb9 100755 (executable)
@@ -69,7 +69,7 @@
   <div>
     <video id="video"
       controls preload="none"
-      width= "350px"
+      width="350px"
       poster="../../test/poster.png">
 
       <source id="mp4"
index ec90985c460279fa3b13e90f6cb0cf764fd5e3d6..be9e4e28771c48216bffcd48c535741508c28a06 100755 (executable)
@@ -26,7 +26,7 @@
   </div>
   <video id="video"
     controls preload="none"
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index bc36a27e3cca32caf60b10527c9569cd91178a23..40dd43e274d56da578e08caaaaf27aa0b49ab457 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn Facebook Plugin", function () {
+test( "Popcorn Facebook Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 9,
@@ -12,7 +12,7 @@ test( "Popcorn Facebook Plugin", function () {
   expect( expects );
 
   function plus() {
-    if ( ++count===expects ) {
+    if ( ++count === expects ) {
       start();
     }
   }
@@ -52,35 +52,35 @@ test( "Popcorn Facebook Plugin", function () {
     .volume( 0 )
     .play();
 
-  ok ( document.getElementById( "likediv" ), "likediv exists on the page" );
+  ok( document.getElementById( "likediv" ), "likediv exists on the page" );
   plus();
-  ok ( document.getElementById( "likeboxdiv" ), "likeboxdiv exists on the page" );
+  ok( document.getElementById( "likeboxdiv" ), "likeboxdiv exists on the page" );
   plus();
-  ok ( document.getElementById( "activitydiv" ), "activitydiv exists on the page" );
+  ok( document.getElementById( "activitydiv" ), "activitydiv exists on the page" );
   plus();
-  ok ( document.getElementById( "facepilediv" ), "facepilediv exists on the page" );
+  ok( document.getElementById( "facepilediv" ), "facepilediv exists on the page" );
   plus();
 
   // I inspected the html genterated by facebook, and found that there are no uniquely identifying attributes between plug-in types
   // so right now, we just check ot make sure that facebook is returning a plugin and displaying it at the correct time.
 
   popped.exec( 2, function() {
-    ok ( document.getElementById( "likediv" ).innerHTML, "likediv is not empty at 0:02 (expected)" );
+    ok( document.getElementById( "likediv" ).innerHTML, "likediv is not empty at 0:02 (expected)" );
     plus();
   });
 
   popped.exec( 3, function() {
-    ok ( document.getElementById( "likeboxdiv" ).innerHTML, "likeboxdiv is not empty at 0:03 (expected)" );
+    ok( document.getElementById( "likeboxdiv" ).innerHTML, "likeboxdiv is not empty at 0:03 (expected)" );
     plus();
   });
 
   popped.exec( 4, function() {
-    ok ( document.getElementById( "activitydiv" ).innerHTML, "Activitydiv is not empty at 0:04 (expected)" );
+    ok( document.getElementById( "activitydiv" ).innerHTML, "Activitydiv is not empty at 0:04 (expected)" );
     plus();
   });
 
   popped.exec( 5, function() {
-    ok ( document.getElementById( "facepilediv" ).innerHTML, "Facepilediv is not empty at 0:05 (expected)" );
+    ok( document.getElementById( "facepilediv" ).innerHTML, "Facepilediv is not empty at 0:05 (expected)" );
     plus();
   });
 });
index 50d3ee69df28095932f37c8221e82e058708523d..9d991f16d4055c3b2bbd4de7726914b7b24d2088 100755 (executable)
@@ -56,7 +56,7 @@
   <div>
     <video id="video"
       controls
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png">
 
       <source id="mp4"
index dd98cdcb18d79d2beb04cf5bad9136746e6112b7..58626bdd275f17d85e9d0bec50deeb6d8d92e569 100755 (executable)
@@ -26,7 +26,7 @@
 
   <video id="video"
     controls
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index 2e2c7adbbc3d34f2b2a6a649f7039792c4b4e311..305287a4cc9393f0e7077bf7540ce0f8898effc8 100755 (executable)
@@ -1,4 +1,4 @@
-test("Popcorn Flickr Plugin", function () {
+test( "Popcorn Flickr Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 11,
@@ -19,7 +19,7 @@ test("Popcorn Flickr Plugin", function () {
   ok( "flickr" in popped, "flickr is a method of the popped instance" );
   plus();
 
-  equals ( flickrdiv.innerHTML, "", "initially, there is nothing inside the flickrdiv" );
+  equals( flickrdiv.innerHTML, "", "initially, there is nothing inside the flickrdiv" );
   plus();
 
   popped.flickr({
index d54cd717b115301d09dbf023cd5d5b6baa11633e..20b439967e179cb59db99190724675dbcc56a180 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn Footnote Plugin", function () {
+test( "Popcorn Footnote Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 8,
@@ -9,17 +9,17 @@ test( "Popcorn Footnote Plugin", function () {
   expect( expects );
 
   function plus() {
-    if ( ++count===expects) {
+    if ( ++count===expects ) {
       start();
     }
   }
 
   stop();
 
-  ok ( "footnote" in popped, "footnote is a mehtod of the popped instance" );
+  ok( "footnote" in popped, "footnote is a mehtod of the popped instance" );
   plus();
 
-  equals ( footnotediv.childElementCount, 0, "initially, there is nothing inside the footnotediv" );
+  equals( footnotediv.childElementCount, 0, "initially, there is nothing inside the footnotediv" );
   plus();
 
   popped.footnote({
@@ -38,21 +38,21 @@ test( "Popcorn Footnote Plugin", function () {
   setupId = popped.getLastTrackEventId();
 
   popped.exec( 0, function() {
-    equals ( footnotediv.childElementCount, 2, "footnotediv now has two inner elements" );
+    equals( footnotediv.childElementCount, 2, "footnotediv now has two inner elements" );
     plus();
-    equals ( footnotediv.children[ 0 ].innerHTML , "This video made exclusively for drumbeat.org", "footnote displaing correct information" );
+    equals( footnotediv.children[ 0 ].innerHTML, "This video made exclusively for drumbeat.org", "footnote displaing correct information" );
     plus();
-    equals ( footnotediv.children[ 0 ].style.display , "inline", "footnote is visible on the page" );
+    equals( footnotediv.children[ 0 ].style.display, "inline", "footnote is visible on the page" );
     plus();
   });
 
   popped.exec( 3, function() {
-    equals ( footnotediv.children[ 1 ].style.display , "inline", "second footnote is visible on the page" );
+    equals( footnotediv.children[ 1 ].style.display, "inline", "second footnote is visible on the page" );
     plus();
   });
 
   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" );
+    ok( footnotediv.children[ 1 ].style.display === "none" &&  footnotediv.children[ 0 ].style.display === 'none', "footnote are no longer vidible on the page" );
     plus();
 
     popped.pause().removeTrackEvent( setupId );
@@ -64,7 +64,7 @@ test( "Popcorn Footnote Plugin", function () {
 });
 
 
-test( "Popcorn Text Plugin", function () {
+test( "Popcorn Text Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 2,
@@ -94,7 +94,7 @@ test( "Popcorn Text Plugin", function () {
 
   popped.exec( 2, function() {
 
-    equal( textdiv.children[ 0 ].innerHTML , "I am an alias", "I am an alias set by Popcorn.p.text" );
+    equal( textdiv.children[ 0 ].innerHTML, "I am an alias", "I am an alias set by Popcorn.p.text" );
     plus();
 
   }).currentTime( 1 ).play();
index d3b9f1d83de2e8c52b2de6370bda3aee46a7a73b..e1f7e60f896dff113910c5f93f2559dc5042cf47 100755 (executable)
@@ -5,7 +5,7 @@
   <script src="../../popcorn.js"></script>
   <script src="popcorn.gml.js"></script>
   <script>
-    document.addEventListener( "DOMContentLoaded", function () {
+    document.addEventListener( "DOMContentLoaded", function() {
       var p = Popcorn( "#video" )
       .play()
       .volume( 0 )
@@ -39,7 +39,7 @@
   <div>
     <video id="video"
       controls preload="none"
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png">
 
       <source id="mp4"
index d16eab85314b3a60ae6f328a7603bddee4ff06db..eca2a621b0cdf2684ac3345716675ebf93a0208e 100755 (executable)
@@ -22,7 +22,7 @@
 
   <video id="video"
     controls preload="none"
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index 48d9ad238229d9a8301f6a4e0a208eace2189ef7..0ae489b9895b3d0c3f36ca16391e1f619d3a2c11 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn GML Plugin", function () {
+test( "Popcorn GML Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 8,
@@ -9,17 +9,17 @@ test( "Popcorn GML Plugin", function () {
   expect( expects );
 
   function plus() {
-    if ( ++count===expects ) {
+    if ( ++count === expects ) {
       start();
     }
   }
 
   stop( 10000 );
 
-  ok ( "gml" in popped, "gml is a method of the popped instance" );
+  ok( "gml" in popped, "gml is a method of the popped instance" );
   plus();
 
-  equals ( gmldiv.childElementCount, 0, "initially, there is nothing inside the gmldiv" );
+  equals( gmldiv.childElementCount, 0, "initially, there is nothing inside the gmldiv" );
   plus();
 
   popped.gml({
@@ -43,14 +43,14 @@ test( "Popcorn GML Plugin", function () {
   });
 
   popped.exec( 3, function() {
-    equals( gmldiv.children[ 1 ].style.display , "block", "second GML is visible on the page" );
+    equals( gmldiv.children[ 1 ].style.display, "block", "second GML is visible on the page" );
     plus();
   });
 
   popped.exec( 4, function() {
-    equals( gmldiv.children[ 1 ].style.display , "none", "second GML is no longer visible on the page" );
+    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" );
+    equals( gmldiv.children[ 0 ].style.display, "none", "first GML is no longer visible on the page" );
     plus();
 
     popped.pause().removeTrackEvent( setupId );
index f3bb0b9129d96c8776d986dcc88f78df3f989056..290de5903df69456ec0d4ac670a31d517ec6b72b 100755 (executable)
@@ -6,8 +6,8 @@
   <script src="../../popcorn.js"></script>
   <script src="popcorn.googlefeed.js"></script>
   <script>
-    document.addEventListener("DOMContentLoaded", function () {
-      var p = Popcorn("#video")
+    document.addEventListener( "DOMContentLoaded", function() {
+      var p = Popcorn( "#video" )
       .volume( 0 )
       .play()
       .googlefeed({
@@ -36,7 +36,7 @@
   <div>
     <video id="video"
       controls
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png">
 
       <source id="mp4"
index 1d84f6be9149fb4bb1a1c32950c65102db40c550..769031c686ebd4b6ec2dc8fa252c965faba20dc8 100755 (executable)
@@ -79,7 +79,7 @@
   *
   */
 
-  Popcorn.plugin( "googlefeed" , function( options ) {
+  Popcorn.plugin( "googlefeed", function( options ) {
 
     // create a new div and append it to the parent div so nothing
     // that already exists in the parent div gets overwritten
       },
       orientation: {
         elem: "select",
-        options: [ "Vertical","Horizontal" ],
+        options: [ "Vertical", "Horizontal" ],
         label: "orientation"
       }
     }
index 2f63a8a7b946b2be055de07b4f0374008ca9d8dc..a0cade802464a1b8c8e21556cc04e5d91c1fc3f6 100755 (executable)
@@ -23,7 +23,7 @@
 
   <video id="video"
     controls preload="none"
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index 0ae1743693f82d8b729841b3de26658fa95fe2b0..3b8817f3efe2a06e007e95dad4a8e99ff798a287 100755 (executable)
@@ -1,4 +1,4 @@
-test("Popcorn Google Feed Plugin", function () {
+test( "Popcorn Google Feed Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 13,
@@ -8,7 +8,7 @@ test("Popcorn Google Feed Plugin", function () {
   expect( expects );
 
   function plus() {
-    if ( ++count === expects) {
+    if ( ++count === expects ) {
       start();
     }
   }
@@ -46,7 +46,7 @@ test("Popcorn Google Feed Plugin", function () {
     plus();
     ok( GFdynamicFeedControl, "Dynamic Feed Control Available" );
     plus();
-    ok ( document.getElementById( "_feed1" ), "First feed is on the page" );
+    ok( document.getElementById( "_feed1" ), "First feed is on the page" );
     plus();
     equals ( document.getElementById( "_feed1" ).offsetParent.id, "feed", "First feed is inside the 'feed' div" );
     plus();
@@ -54,18 +54,18 @@ test("Popcorn Google Feed Plugin", function () {
     plus();
   });
   popped.exec( 2, function() {
-    ok ( document.getElementById( "_feed2" ), "Second feed is on the page" );
+    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" );
+    equals( document.getElementById( "_feed2" ).offsetParent.id, "feed1", "Second feed is inside the 'feed2' div" );
     plus();
   });
   popped.exec( 3, function() {
-    ok ( document.getElementById( "_feed2" ).style.display === "none" &&
+    ok( document.getElementById( "_feed2" ).style.display === "none" &&
         document.getElementById( "_feed1" ).style.display === "none", "Both feeds are no lnger visible" );
          plus();
 
     popped.pause().removeTrackEvent( setupId );
-    ok( !document.getElementById( "feed1" ).children[ 0 ], "removed feed was properly destroyed"  );
+    ok( !document.getElementById( "feed1" ).children[ 0 ], "removed feed was properly destroyed" );
     plus();
   });
 
index a14b6f17d8d430f1723b25465ba3ebb3ebb03c52..40030ad65771d6c71ebbe3fdc13899e5b456cdf5 100755 (executable)
@@ -6,7 +6,7 @@
   <script src="../../popcorn.js"></script>
   <script src="popcorn.googlemap.js"></script>
   <script type="text/javascript">
-    document.addEventListener( "DOMContentLoaded", function () {
+    document.addEventListener( "DOMContentLoaded", function() {
       var p = Popcorn( "#video" )
       .volume( 0 )
       .play()
 
     <video id="video"
       controls
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png">
 
       <source id="mp4"
index 11db4163487a5dd051875fc6eb81841f0af3aad4..3cd1cf44c18ab05ffe76c1ceb9e1de5d8dfabe18 100755 (executable)
@@ -24,7 +24,7 @@
 
   <video id="video"
     controls preload="none"
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index f242bb6f7884b0c8e505f8b97e2b35ee23d1f5af..4b5c822e8c79e3f38b305e1c473b16107362c4c0 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn Google Map Plugin", function () {
+test( "Popcorn Google Map Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 15,
@@ -15,16 +15,16 @@ test( "Popcorn Google Map Plugin", function () {
 
   stop();
 
-  ok ( "googlemap" in popped, "googlemap is a mehtod of the popped instance" );
+  ok( "googlemap" in popped, "googlemap is a method of the popped instance" );
   plus();
 
-  ok ( document.getElementById( "map" ).innerHTML === "", "initially, there is nothing inside the map" );
+  ok( document.getElementById( "map" ).innerHTML === "", "initially, there is nothing inside the map" );
   plus();
 
-  ok ( document.getElementById( "map2" ).innerHTML === "", "initially, there is nothing inside the map2" );
+  ok( document.getElementById( "map2" ).innerHTML === "", "initially, there is nothing inside the map2" );
   plus();
 
-  ok ( document.getElementById( "map3" ).innerHTML === "", "initially, there is nothing inside the map3" );
+  ok( document.getElementById( "map3" ).innerHTML === "", "initially, there is nothing inside the map3" );
   plus();
 
   popped.googlemap({
@@ -64,28 +64,28 @@ test( "Popcorn Google Map Plugin", function () {
     plus();
     ok( google.maps.Geocoder, "Google maps Geocoder is available" );
     plus();
-    ok ( document.getElementById( "actualmap1" ), "First map is on the page" );
+    ok( document.getElementById( "actualmap1" ), "First map is on the page" );
     plus();
-    equals ( document.getElementById( "actualmap1" ).offsetParent.id, "map", "First map is inside the 'map' div" );
+    equals( document.getElementById( "actualmap1" ).offsetParent.id, "map", "First map is inside the 'map' div" );
     plus();
     equals( popped.data.trackEvents.byStart[ 1 ].zoom, 8, "Defaulting to zoom of 8" );
     plus();
   });
 
   popped.exec( 1, function() {
-    ok ( document.getElementById( "actualmap2" ), "Second map is on the page" );
+    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" );
+    equals( document.getElementById( "actualmap2" ).offsetParent.id, "map2", "Second map is inside the 'map2' div" );
     plus();
   });
 
   popped.exec( 3, function() {
-    equals ( document.getElementById( "actualmap3" ).offsetParent.id, "map3", "Tweening map is inside the 'map3' div" );
+    equals( document.getElementById( "actualmap3" ).offsetParent.id, "map3", "Tweening map is inside the 'map3' div" );
     plus();
   });
 
   popped.exec( 5, function() {
-    ok ( document.getElementById( "actualmap2" ).style.display === "none" && 
+    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" );
     plus();
index 447b17950f1784f9c61fcc25c55f4c30d104ee4e..4dbbc435df63781e7dcc590eada9d6776d5a5d20 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn Image Plugin", function () {
+test( "Popcorn Image Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 9,
index c3876c4980e1b0467f6c5cffce220c0a3023417b..695117c031f7e0d6ccaaeea43691f374eb73feb1 100755 (executable)
@@ -13,7 +13,7 @@
   <script src="../../popcorn.js"></script>
   <script src="popcorn.lastfm.js"></script>
   <script>
-    document.addEventListener( "DOMContentLoaded", function () {
+    document.addEventListener( "DOMContentLoaded", function() {
       var p = Popcorn( "#video" )
       .volume( 0 )
       .play()
@@ -65,7 +65,7 @@
   <div>
     <video id="video"
       controls preload="none"
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png">
 
       <source id="mp4"
index d4f0dee343b146e433746254d42aa6c05e4493c2..af26ebf5ef8af8d6b642871f370bb77660214e7b 100755 (executable)
@@ -7,7 +7,7 @@
         if ( data.artist ) {
           var htmlString = "";
 
-          htmlString = "<h3>"+data.artist.name+"</h3>";
+          htmlString = "<h3>" + data.artist.name + "</h3>";
           htmlString += "<a href='" + data.artist.url + "' target='_blank' style='float:left;margin:0 10px 0 0;'><img src='" + data.artist.image[ 2 ][ "#text"] + "' alt=''></a>";
           htmlString += "<p>" + data.artist.bio.summary + "</p>";
           htmlString += "<hr /><p><h4>Tags</h4><ul>";
index ad4c9e344653cadf8c1f16c5f4ce0ba28a18f126..cfe5f543030e671ccbafcd058bb7251c09a61231 100755 (executable)
@@ -26,7 +26,7 @@
 
   <video id="video"
     controls
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index c20aaf1f27101ab75440c403ec103961477c067a..586c0527da38325cf772a978a36208a1e8a14165 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn LastFM Plugin", function () {
+test( "Popcorn LastFM Plugin", function() {
   /*
     ATTENTION
 
@@ -24,7 +24,7 @@ test( "Popcorn LastFM Plugin", function () {
   ok( "lastfm" in popped, "lastfm is a method of the popped instance" );
   plus();
 
-  equals ( lastfmdiv.innerHTML, "", "initially, there is nothing inside the lastfmdiv" );
+  equals( lastfmdiv.innerHTML, "", "initially, there is nothing inside the lastfmdiv" );
   plus();
 
   popped.lastfm({
@@ -51,23 +51,23 @@ test( "Popcorn LastFM Plugin", function () {
   setupId = popped.getLastTrackEventId();
 
   popped.exec( 2, function() {
-    equals ( lastfmdiv.childElementCount, 3, "lastfmdiv now has three inner elements" );
+    equals( lastfmdiv.childElementCount, 3, "lastfmdiv now has three inner elements" );
     plus();
-    equals ( lastfmdiv.children[0].style.display , "inline", "yachtdiv is visible on the page" );
+    equals( lastfmdiv.children[ 0 ].style.display , "inline", "yachtdiv is visible on the page" );
     plus();
   });
 
   popped.exec( 3, function() {
-    equals ( lastfmdiv.children[ 0 ].style.display , "inline", "yachtdiv is still visible on the page" );
+    equals( lastfmdiv.children[ 0 ].style.display , "inline", "yachtdiv is still visible on the page" );
     plus();
-    equals ( lastfmdiv.children[ 1 ].style.display , "inline", "beatlesdiv is visible on the page" );
+    equals( lastfmdiv.children[ 1 ].style.display , "inline", "beatlesdiv is visible on the page" );
     plus();
-    equals ( lastfmdiv.children[ 2 ].style.display , "none", "nulldiv is not visible on the page" );
+    equals( lastfmdiv.children[ 2 ].style.display , "none", "nulldiv is not visible on the page" );
     plus();
   });
 
   popped.exec( 5, function() {
-    equals ( lastfmdiv.children[ 2 ].innerHTML , "Unknown Artist", "Artist information could not be found" );
+    equals( lastfmdiv.children[ 2 ].innerHTML , "Unknown Artist", "Artist information could not be found" );
     plus();
 
     popped.pause().removeTrackEvent( setupId );
@@ -83,7 +83,7 @@ test( "Popcorn LastFM Plugin", function () {
   try {
     popped.lastfm({});
   } catch( e ) {
-    ok ( true, "empty event was caught by debug" );
+    ok( true, "empty event was caught by debug" );
     plus();
   }
 
index 2791f886308ed7f09b0facc5dfb7730fa141023b..3c0cdd63b3729ff12bbd410ec0c961e9c6faeb2d 100755 (executable)
@@ -1,4 +1,4 @@
-test ("Popcorn LinkedIn Plugin", function () {
+test( "Popcorn LinkedIn Plugin", function() {
 
   if ( /localhost/.test( location.hostname ) ) {
 
@@ -170,7 +170,7 @@ test ("Popcorn LinkedIn Plugin", function () {
 
       // Make sure _teardown functionality works
       popped.pause().removeTrackEvent( setupId );
-      ok( !companyprofilediv.children[ 1 ], "companyprofilediv plugin was properly destroyed"  );
+      ok( !companyprofilediv.children[ 1 ], "companyprofilediv plugin was properly destroyed" );
       plus();
     });
 
index 60750c378622e8a5b411b6d5ad76568e988abf2b..77696faf1d6fa179b78b2e7d8953947c4a3c581f 100755 (executable)
@@ -7,9 +7,9 @@
 
   <script src="popcorn.lowerthird.js"></script>
   <script>
-    document.addEventListener("DOMContentLoaded", function () {
+    document.addEventListener( "DOMContentLoaded", function() {
 
-      var p = Popcorn("#video")
+      var p = Popcorn( "#video" )
       .play()
       .lowerthird({
         start: 5,
index 429a6dc036d46a76e1f6f551a41a12a0b9908714..d14c261e244064ba720aac46bb0e4d983999a95e 100755 (executable)
@@ -29,7 +29,7 @@
    *
    */
 
-  Popcorn.plugin( "lowerthird" , {
+  Popcorn.plugin( "lowerthird", {
 
       manifest: {
         about:{
@@ -60,7 +60,7 @@
             type: "text",
             label: "Text"
           },
-          role : {
+          role: {
             elem: "input",
             type: "text",
             label: "Text"
        * of the video reaches the end time provided by the
        * options variable
        */
-      end: function(event, options) {
+      end: function( event, options ) {
         options.container.innerHTML = "";
       }
 
-  } );
+  });
 })( Popcorn );
index 7145840708406a0452467af31f4f57c7bfc82ceb..a1c459bdd6085eee4537c6f3c3bc2fd1dfeaaa84 100755 (executable)
@@ -24,7 +24,7 @@
 
   <video id="video"
     controls preload"none"
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index 29fa1c82a8c379388b810dfd6405c1656c92cb57..b0a630b4cb9a5cb6971ffe94188917cd80d72f12 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn lower third Plugin", function () {
+test( "Popcorn lower third Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 8,
@@ -8,14 +8,14 @@ test( "Popcorn lower third Plugin", function () {
   expect( expects );
 
   function plus() {
-    if ( ++count===expects ) {
+    if ( ++count === expects ) {
       start();
     }
   }
 
   stop();
 
-  ok ( "lowerthird" in popped, "lowerthird is a method of the popped instance" );
+  ok( "lowerthird" in popped, "lowerthird is a method of the popped instance" );
   plus();
 
   equals ( lowerthirddiv.innerHTML, "", "initially, there is nothing inside the lowerthirddiv" );
@@ -56,19 +56,19 @@ test( "Popcorn lower third Plugin", function () {
     .volume( 0 );
 
   popped.exec( 1, function() {
-    equals ( popped.container.innerHTML, "Mr Hyde<br>Monster", "first lowerthird is visible" );
+    equals( popped.container.innerHTML, "Mr Hyde<br>Monster", "first lowerthird is visible" );
     plus();
   });
 
   popped.exec( 3, function() {
-    equals ( lowerthirddiv.innerHTML, "<div>Dr Jekyll<br>Person</div>", "second lowerthird is visible" );
+    equals( lowerthirddiv.innerHTML, "<div>Dr Jekyll<br>Person</div>", "second lowerthird is visible" );
     plus();
   });
 
   popped.exec( 5, function() {
-    equals ( popped.container.innerHTML, "", "first lowerthird is empty" );
+    equals( popped.container.innerHTML, "", "first lowerthird is empty" );
     plus();
-    equals ( lowerthirddiv.innerHTML, "<div></div>", "second lowerthird is empty" );
+    equals( lowerthirddiv.innerHTML, "<div></div>", "second lowerthird is empty" );
     plus();
   });
 
index ed34b7e483523000301122df12d836506e1fa745..0eb83608026dc8d0a8c26b36fef73f355d4b2227 100755 (executable)
@@ -84,7 +84,7 @@
   *
   */
 
-  Popcorn.plugin( "mustache" , function( options ) {
+  Popcorn.plugin( "mustache" , function( options ){
 
     var getData, data, getTemplate, template;
 
index 64d54a053086e9c07afb44c2994f14abd66a58b3..6ac07350d63248bfd8c7a864b6f44eb08faf7128 100755 (executable)
@@ -27,7 +27,7 @@
     autobuffer
     preload="auto"
     controls
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index 2a331ce448d2c9ba4b23d3f866d63216dc425c25..1829511f551950305f9e608e15583f6280495c64 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn Mustache Plugin", function () {
+test( "Popcorn Mustache Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 6,
index 204023f5ed8a1d2a0a7b123d93c2d53dc7119270..54abeb89897be3cc7ce2ac2545dc0c36ba966c35 100755 (executable)
@@ -5,7 +5,7 @@
   <script src="../../popcorn.js"></script>
   <script src="popcorn.openmap.js"></script>
   <script>
-    document.addEventListener( "DOMContentLoaded", function () {
+    document.addEventListener( "DOMContentLoaded", function() {
       Popcorn( "#video" )
       .volume( 0 )
       .play()
@@ -61,7 +61,7 @@
   <div>
     <video id="video"
       controls
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png">
 
       <source id="mp4"
index f0c93562fc98433bb6c7ea8fd62c7dab2b4925cb..72811cc04888610a0167631c7470df467c7d2525 100755 (executable)
           displayProjection = new OpenLayers.Projection( "EPSG:4326" );
           projection = new OpenLayers.Projection( "EPSG:4326" );
           options.map = new OpenLayers.Map( {div: newdiv, projection: projection } );
-          var relief = new OpenLayers.Layer.WMS( "USGS Terraserver", "http://terraserver-usa.org/ogcmap.ashx?", { layers: 'DRG' } );
+          var relief = new OpenLayers.Layer.WMS( "USGS Terraserver", "http://terraserver-usa.org/ogcmap.ashx?", { layers: "DRG" } );
           options.map.addLayer( relief );
         } else {
           // add OpenStreetMap layer
index 00f1a3179f5871a4522eaec495685b1d7824e51e..87bdffcb9e76aef544f6a4eac1cae056699d232f 100755 (executable)
@@ -22,7 +22,7 @@
 
   <video id="video"
     controls preload="none"
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index 20cf256214d66e6e15501185df60ce83efb3f350..21cd6aa93983984b48a18ee482f4151e9f971416 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn OpenMap Plugin", function () {
+test( "Popcorn OpenMap Plugin", function() {
 
   var popped = Popcorn( "#video" ),
      expects = 15,
@@ -7,23 +7,23 @@ test( "Popcorn OpenMap Plugin", function () {
   expect( expects );
 
   function plus() {
-    if ( ++count===expects ) {
+    if ( ++count === expects ) {
       start();
     }
   }
 
   stop();
 
-  ok ( "openmap" in popped, "openmap is a method of the popped instance" );
+  ok( "openmap" in popped, "openmap is a method of the popped instance" );
   plus();
 
-  ok ( document.getElementById( "map" ).innerHTML === "", "initially, there is nothing inside map" );
+  ok( document.getElementById( "map" ).innerHTML === "", "initially, there is nothing inside map" );
   plus();
 
-  ok ( document.getElementById( "map2" ).innerHTML === "", "initially, there is nothing inside map2" );
+  ok( document.getElementById( "map2" ).innerHTML === "", "initially, there is nothing inside map2" );
   plus();
 
-  ok ( document.getElementById( "map3" ).innerHTML === "", "initially, there is nothing inside map3" );
+  ok( document.getElementById( "map3" ).innerHTML === "", "initially, there is nothing inside map3" );
   plus();
 
   popped.openmap({
@@ -70,32 +70,32 @@ test( "Popcorn OpenMap Plugin", function () {
     ok( OpenLayers, "OpenLayers is available" );
     plus();
 
-    ok ( document.getElementById( "openmapdiv1" ), "First map is on the page" );
+    ok( document.getElementById( "openmapdiv1" ), "First map is on the page" );
     plus();
 
-    equals ( document.getElementById( "openmapdiv1" ).offsetParent.id, "map", "First map is inside the 'map' div" );
+    equals( document.getElementById( "openmapdiv1" ).offsetParent.id, "map", "First map is inside the 'map' div" );
     plus();
 
-    ok ( document.getElementById( "openmapdiv2" ), "Second map is on the page" );
+    ok( document.getElementById( "openmapdiv2" ), "Second map is on the page" );
     plus();
 
-    equals ( document.getElementById( "openmapdiv2" ).offsetParent.id, "map2", "Second map is inside the 'map2' div" );
+    equals( document.getElementById( "openmapdiv2" ).offsetParent.id, "map2", "Second map is inside the 'map2' div" );
     plus();
 
-    ok ( document.getElementById( "openmapdiv3" ), "Third map is on the page" );
+    ok( document.getElementById( "openmapdiv3" ), "Third map is on the page" );
     plus();
 
-    equals ( document.getElementById( "openmapdiv3" ).offsetParent.id, "map3", "Third map is inside the 'map3' div" );
+    equals( document.getElementById( "openmapdiv3" ).offsetParent.id, "map3", "Third map is inside the 'map3' div" );
     plus();
 
-    ok ( document.getElementById( "openmapdiv4" ), "Fourth map is on the page" );
+    ok( document.getElementById( "openmapdiv4" ), "Fourth map is on the page" );
     plus();
-    equals ( document.getElementById( "openmapdiv4" ).offsetParent.id, "map4", "Fourth map is inside the 'map4' div" );
+    equals( document.getElementById( "openmapdiv4" ).offsetParent.id, "map4", "Fourth map is inside the 'map4' div" );
     plus();
 
   } )
   .exec( 5, function() {
-    ok ( document.getElementById( "openmapdiv2" ).style.display === "none" &&
+    ok( document.getElementById( "openmapdiv2" ).style.display === "none" &&
         document.getElementById( "openmapdiv3" ).style.display === "none" &&
         document.getElementById( "openmapdiv4" ).style.display === "none" &&
         document.getElementById( "openmapdiv1" ).style.display === "none", "All three maps are no longer visible" );
index 018bba2a3104a7faeefa4a1ffa8be0171cd72249..cd77accbbd0ceba04bc0d020c1318130afbb093e 100755 (executable)
@@ -8,7 +8,7 @@
   <script>
     var output;
 
-    document.addEventListener( "DOMContentLoaded", function () {
+    document.addEventListener( "DOMContentLoaded", function() {
       var p = Popcorn( "#video" , {
         pauseOnLinkClicked: true
       })
@@ -21,7 +21,7 @@
   <p>The video pauses when links (anchor elements) are clicked</p>
   <div>
     <video id="video"
-      autobuffer = "autobuffer"
+      autobuffer="autobuffer"
       preload="auto"
       controls="controls"
       width="250px"
index ec84b1ddd7b647bec840e96194e3fabb17ea9b67..683a643e8eab1fdce4e41423075d0fe72d119ab1 100755 (executable)
@@ -27,7 +27,7 @@
     autobuffer="autobuffer"
     preload="auto"
     controls="controls"
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
@@ -44,7 +44,7 @@
     autobuffer="autobuffer"
     preload="auto"
     controls="controls"
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index 8a5997c9aecb3c9883e5c8dcdce3fb362408fa7e..5af94ac01c70ce103f988d355da0a4eb48c1d615 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn Pause Plugin", function () {
+test( "Popcorn Pause Plugin", function() {
 
   var expectedTests = 3 ,
       anchorA = document.getElementById( "anchorA" ),
@@ -7,7 +7,7 @@ test( "Popcorn Pause Plugin", function () {
 
   var simulateClickOn = function ( paramElement ) {
 
-    if ( typeof paramElement.click == "Function" ) {
+    if ( typeof paramElement.click === "Function" ) {
       paramElement.click() ;
       return ;
     }
@@ -25,12 +25,12 @@ test( "Popcorn Pause Plugin", function () {
 
   var otherVideo = Popcorn( "#video2" , {
         pauseOnLinkClicked: true
-      });
+  });
   otherVideo.play() ;
 
   var popped = Popcorn( "#video" , {
         pauseOnLinkClicked: true
-      });
+  });
 
   popped.code ({
     start: 2.000,
@@ -38,7 +38,7 @@ test( "Popcorn Pause Plugin", function () {
     onStart: function ( options ) {
       var currentTime = popped.currentTime() ;
       simulateClickOn( anchorA ) ;
-      ok (
+      ok(
         ( currentTime + tolerance >= 2 ) && ( currentTime - tolerance <= 2 ) ,
         "Video successfully stopped with a click on an anchor at " +
         "second 2 approximately (" + currentTime + ")"
@@ -53,10 +53,10 @@ test( "Popcorn Pause Plugin", function () {
     onStart: function ( options ) {
       var currentTime = popped.currentTime() ;
       simulateClickOn( anchorB ) ;
-      ok (
+      ok(
         ( currentTime + tolerance >= 5.561 ) && ( currentTime - tolerance <= 5.561 ) ,
-        'Video successfully stopped with a click on an anchor at ' +
-        'second 5.561 approximately (' + currentTime + ')'
+        "Video successfully stopped with a click on an anchor at " +
+        "second 5.561 approximately (" + currentTime + ")"
       );
     start() ;
     }
index 41a32b76e46c5ed44fd75ec4b391e87f9d433f0b..e625c97749162615bf36c4a32191d6acfba18cff 100644 (file)
@@ -48,7 +48,7 @@
   <div>
     <video id="video"
       controls preload="auto"
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png">
 
       <source id="mp4"
index 446d658c7d6503aea5b9b540ff038fc15674cf74..3d5aac456015b82d2630472bf2441b95225638c0 100644 (file)
@@ -19,7 +19,7 @@
   <div>
     <video id="video"
       controls preload="none"
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png">
 
       <source id="mp4"
index 881b74058a0011ca2fa482d5b52e7de65982b11a..d4da15b148e76285f94628dfffe4c5c22cf2c16e 100644 (file)
@@ -101,7 +101,7 @@ test( "Processing plugin tests", function() {
     var idx = 5;
     while ( --idx ) {
       popped.removeTrackEvent( trackids.pop() );
-      ok ( !document.getElementById( "processing-div-" + ( idx ) ).children[ 0 ], "track event was removed" );
+      ok( !document.getElementById( "processing-div-" + ( idx ) ).children[ 0 ], "track event was removed" );
       plus();
     }
   });
@@ -140,7 +140,7 @@ test( "Processing plugin tests", function() {
   try {
     popped.processing({});
   } catch( e ) {
-    ok(true, 'empty event was caught by debug');
+    ok( true, "empty event was caught by debug" );
     plus();
   }
 
index 811fcb49ef8f44f8a5dd833c50b6e27523170166..c6c956dd13337dc739afc44add24e9a8e854841d 100755 (executable)
@@ -5,7 +5,7 @@
   <script src="../../popcorn.js"></script>
   <script src="popcorn.subtitle.js"></script>
   <script>
-    document.addEventListener( "DOMContentLoaded", function () {
+    document.addEventListener( "DOMContentLoaded", function() {
       var p = Popcorn( "#video" )
       .volume( 0 )
       .play()
index 45daaf3aa1689e52c1876637405c428fa19735c8..ba113b630f8fff3a66b80959faf2047e0dc2df23 100755 (executable)
@@ -22,7 +22,7 @@
 
   <video id="video"
     controls preload="none"
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
@@ -38,7 +38,7 @@
   </video>
   <video id="video2"
     controls preload="none"
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index 2bdabb5ce131c4ade331c99cb207ef007deba38b..82a8b290656bb018ef8b4d002bf65e453cb9f95a 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn Subtitle Plugin", function () {
+test( "Popcorn Subtitle Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       popped2 = Popcorn( "#video2" ),
@@ -19,7 +19,7 @@ test( "Popcorn Subtitle Plugin", function () {
 
   stop( 12000 );
 
-  ok ( "subtitle" in popped, "subtitle is a method of the popped instance" );
+  ok( "subtitle" in popped, "subtitle is a method of the popped instance" );
   plus();
 
   popped.subtitle({
@@ -98,7 +98,7 @@ test( "Popcorn Subtitle Plugin", function () {
     ok( Popcorn.position( subtitlediv ).top > popped.position().top, "subtitle top position moved" );
     plus();
 
-    equals ( subtitlediv.children[ 1 ].innerHTML, "this is the second subtitle of 2011", "subtitle displaying correct information" );
+    equals( subtitlediv.children[ 1 ].innerHTML, "this is the second subtitle of 2011", "subtitle displaying correct information" );
     plus();
 
     popped.media.play();
@@ -108,7 +108,7 @@ test( "Popcorn Subtitle Plugin", function () {
   popped.exec( 4, function() {
 
     popped.media.pause();
-    equals ( subtitlediv.children[ 1 ].innerHTML, "", "subtitle is clear" );
+    equals( subtitlediv.children[ 1 ].innerHTML, "", "subtitle is clear" );
     plus();
 
     popped.media.play();
@@ -123,16 +123,16 @@ test( "Popcorn Subtitle Plugin", function () {
   popped2.exec( 8, function() {
     popped2.media.pause();
 
-    equals ( subtitlediv.children[ 3 ].innerHTML, "instance one test", "subtitle displaying correct information" );
+    equals( subtitlediv.children[ 3 ].innerHTML, "instance one test", "subtitle displaying correct information" );
     plus();
-    equals ( subtitle2div.children[ 0 ].innerHTML, "instance two test", "subtitle displaying correct information" );
+    equals( subtitle2div.children[ 0 ].innerHTML, "instance two test", "subtitle displaying correct information" );
     plus();
 
     popped.media.play();
   });
 
   popped.exec( 10, function() {
-    ok ( document.getElementById( "subtitle-0" ).style.display === "none" &&
+    ok( document.getElementById( "subtitle-0" ).style.display === "none" &&
         document.getElementById( "subtitle-1" ).style.display === "none" &&
         document.getElementById( "subtitle-2" ).style.display === "none", "All subtitles are no longer visible" );
     plus();
index c07bccb29d261d8f0f6cb86c9f6978b5f162dfae..06eeeb1d94b337f54af8218984ddd2dbd29d745c 100755 (executable)
@@ -6,7 +6,7 @@
   <script src="../../popcorn.js"></script>
   <script src="popcorn.tagthisperson.js"></script>
   <script>
-    document.addEventListener( "DOMContentLoaded", function () {
+    document.addEventListener( "DOMContentLoaded", function() {
       var p = Popcorn( "#video" )
       .play() 
       .volume( 0 )
@@ -43,7 +43,7 @@
   <div>
     <video id="video"
       controls preload="none"
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png">
 
       <source id="mp4"
index da2f207010296a03d3f5495636c4e83e750fb888..bd1a1b39044f3c49ef63aa4caca2c00062498ade 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn tagthisperson Plugin", function () {
+test( "Popcorn tagthisperson Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 8,
index 08b7934fbac02539197ad87e96c08961c30d8612..de62239a4642a13e06bf444e526d43bf93415a0c 100644 (file)
@@ -69,7 +69,7 @@
   <div>
     <video id="video"
       controls
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png">
 
       <source id="mp4"
index 902c6b56ced00304452ab6e60596deb035f93da6..fefbe625855214a66a176b2db9e4886b19c99395 100644 (file)
@@ -24,7 +24,7 @@
 
   <video id="video"
     controls preload="none"
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png"
     style="float: left;">
 
index a4c76183b1b875f535da11b09459d4fc1f0e878e..ec054680b1250389da04bec1bcca1c0df03f6688 100644 (file)
@@ -1,4 +1,4 @@
-test( "Popcorn Timeline Plugin", function () {
+test( "Popcorn Timeline Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 17,
@@ -17,11 +17,11 @@ test( "Popcorn Timeline Plugin", function () {
 
   stop();
 
-    ok ( "timeline" in popped, "timeline is a method of the popped instance" );
+    ok( "timeline" in popped, "timeline is a method of the popped instance" );
     plus();
-    equals ( document.getElementById( "timeline-up" ).firstChild, undefined, "initially, there is nothing inside the 'timeline-up' feed" );
+    equals( document.getElementById( "timeline-up" ).firstChild, undefined, "initially, there is nothing inside the 'timeline-up' feed" );
     plus();
-    equals ( document.getElementById( "timeline-down" ).firstChild, undefined, "initially, there is nothing inside the 'timeline-down' feed" );
+    equals( document.getElementById( "timeline-down" ).firstChild, undefined, "initially, there is nothing inside the 'timeline-down' feed" );
     plus();
 
     popped.timeline({
@@ -66,15 +66,15 @@ test( "Popcorn Timeline Plugin", function () {
 
   popped.exec( 1.5, function() {
     //up
-    ok ( document.getElementById( "timelineDiv1" ), "First timeline is on the page" );
+    ok( document.getElementById( "timelineDiv1" ), "First timeline is on the page" );
     plus();
-    equals ( document.getElementById("timelineDiv1" ).parentNode.parentNode.id, "timeline-up", "First timeline is inside the 'timeline-up' div" );
+    equals( document.getElementById("timelineDiv1" ).parentNode.parentNode.id, "timeline-up", "First timeline is inside the 'timeline-up' div" );
     plus();
 
     //down
-    ok ( document.getElementById( "timelineDiv3" ), "First timeline is on the page" );
+    ok( document.getElementById( "timelineDiv3" ), "First timeline is on the page" );
     plus();
-    equals ( document.getElementById("timelineDiv3" ).parentNode.parentNode.id, "timeline-down", "First Timeline is inside the 'timeline-down' div" );
+    equals( document.getElementById("timelineDiv3" ).parentNode.parentNode.id, "timeline-down", "First Timeline is inside the 'timeline-down' div" );
     plus();
 
   });
@@ -82,28 +82,28 @@ test( "Popcorn Timeline Plugin", function () {
    //up
     var timelinediv2 = document.getElementById( "timelineDiv2" ),
         timelinediv4 = document.getElementById( "timelineDiv4" );
-    ok ( timelinediv2, "Second timeline is on the page" );
+    ok( timelinediv2, "Second timeline is on the page" );
     plus();
-    equals ( timelinediv2 && timelinediv2.parentNode.parentNode.id, "timeline-up", "Second timelineDiv2 is inside the 'timeline-up' div" );
+    equals( timelinediv2 && timelinediv2.parentNode.parentNode.id, "timeline-up", "Second timelineDiv2 is inside the 'timeline-up' div" );
     plus();
-    equals ( timelineUp.firstChild.firstChild.id,  "timelineDiv2", "'timelineDiv2' is the first child in 'timeline-up'" );
+    equals( timelineUp.firstChild.firstChild.id,  "timelineDiv2", "'timelineDiv2' is the first child in 'timeline-up'" );
     plus();
 
     //down
 
-    ok ( timelinediv4, "Second down timeline is on the page" );
+    ok( timelinediv4, "Second down timeline is on the page" );
     plus();
-    equals ( timelinediv4.parentNode.parentNode.id, "timeline-down", "timelineDiv4 is inside the 'timeline-down' div" );
+    equals( timelinediv4.parentNode.parentNode.id, "timeline-down", "timelineDiv4 is inside the 'timeline-down' div" );
     plus();
-    equals ( timelineDown.firstChild.firstChild.id, "timelineDiv3", "'timelineDiv3' is the first child in 'timeline-down'" );
+    equals( timelineDown.firstChild.firstChild.id, "timelineDiv3", "'timelineDiv3' is the first child in 'timeline-down'" );
     plus();
   });
   popped.exec( 4, function() {
-    ok ( document.getElementById( "timelineDiv1" ).style.display !== "none" &&
+    ok( document.getElementById( "timelineDiv1" ).style.display !== "none" &&
         document.getElementById( "timelineDiv2" ).style.display !== "none", "Both timelines in 'timeline-up are not visible" );
          plus();
 
-         ok ( document.getElementById( "timelineDiv3" ).style.display !== "none" &&
+         ok( document.getElementById( "timelineDiv3" ).style.display !== "none" &&
         document.getElementById( "timelineDiv4" ).style.display !== "none", "Both timelines in 'timeline-down' are not visible" );
          plus();
 
index d189505a4e147c86190d422f1583fd58026dc5d8..9c70f3ebc4156bc9397cf5acf850ab4c652e55d7 100755 (executable)
@@ -5,7 +5,7 @@
   <script src="../../popcorn.js"></script>
   <script src="popcorn.twitter.js"></script>
   <script>
-    document.addEventListener( "DOMContentLoaded", function () {
+    document.addEventListener( "DOMContentLoaded", function() {
       var p = Popcorn( "#video" )
       .twitter({
         start: 5,
@@ -32,7 +32,7 @@
   <div>
     <video id="video"
       controls
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png">
 
       <source id="mp4"
index 885b3a32fdf527100058fc0f75d640a3cfeaf733..6614480678e87726820969687e0d04fff0fcb517 100755 (executable)
@@ -34,7 +34,7 @@
   Popcorn.plugin( "twitter" , {
 
       manifest: {
-        about:{
+        about: {
           name: "Popcorn Twitter Plugin",
           version: "0.1",
           author: "Scott Downe",
@@ -82,7 +82,7 @@
         // setup widget div that is unique per track
         options.container = document.createElement( "div" );
         // use this id to connect it to the widget
-        options.container.setAttribute( "id", Popcorn.guid());
+        options.container.setAttribute( "id", Popcorn.guid() );
         // display none by default
         options.container.style.display = "none";
 
index 394085f38a980b8066258f6ac6944d9309aa32c8..2f9f49dcaf532300a89e5ded2b634aee9825db8f 100755 (executable)
@@ -24,7 +24,7 @@
 
   <video id="video"
     controls
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index b2571a65cb7bb87631ae7f5bba11945397a41c2b..90d27f222d41c879aed4dc220098bbf04d0926f6 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn Twitter Plugin", function () {
+test( "Popcorn Twitter Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 7,
index 272a0efdfcbcb0aeef4b2900d9123f8564b0174c..cc932c8cd6e91f9c95a0d47dc4d456a88cc1a6e7 100644 (file)
@@ -6,7 +6,7 @@
   <script src="../../popcorn.js"></script>
   <script src="popcorn.webpage.js"></script>
   <script>
-    document.addEventListener( "DOMContentLoaded", function () {
+    document.addEventListener( "DOMContentLoaded", function() {
       var p = Popcorn( "#video" )
       .volume( 0 )
       .play()
@@ -36,7 +36,7 @@
   <div>
     <video id="video"
       controls preload="none"
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png">
 
       <source id="mp4"
index 33b95b5ea5e6243c3c4773df218ea41c997a4ffd..62049821f0538004a256cc5105e40ab5f7de555a 100755 (executable)
@@ -58,7 +58,7 @@
         target: "iframe-container"
       }
     },
-    _setup : function( options ) {
+    _setup: function( options ) {
 
       var target = document.getElementById( options.target );
 
index c5149d4595a4b0068338c98b712ca2b2d63ab5fb..5901156faf82a9243c985f8a9f272ff7c7b7c98e 100755 (executable)
@@ -24,7 +24,7 @@
 
   <video id="video"
     controls preload="none"
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index 803e6a1add35109ef81188b540f3bae46650c471..7491bbf5c9e1817ab0ea804fe8aab67aa745e289 100755 (executable)
@@ -61,7 +61,7 @@ test( "Popcorn Webpage Plugin", function() {
   });
 
   popped.exec( 2, function() {
-    ok (theiFrame[ 0 ].style.display === "none" && theiFrame[ 1 ].style.display === "none", "both iframes are hidden" );
+    ok( theiFrame[ 0 ].style.display === "none" && theiFrame[ 1 ].style.display === "none", "both iframes are hidden" );
     plus();
 
     popped.pause().removeTrackEvent( setupId );
index dab08b636944dde402c54f0da22b1a5cdd7ce2c2..8ca85b793a36dcc5a0a3163eb6d140005fbd98d1 100755 (executable)
@@ -6,8 +6,8 @@
   <script src="../../popcorn.js"></script>
   <script src="popcorn.wikipedia.js"></script>
   <script>
-    document.addEventListener( "DOMContentLoaded", function () {
-      var p = Popcorn( "#video' )
+    document.addEventListener( "DOMContentLoaded", function() {
+      var p = Popcorn( "#video" )
       .volume( 0 )
       .play() 
       .wikipedia({
@@ -34,7 +34,7 @@
   <div>
     <video id="video" 
       controls 
-      width= "250px"
+      width="250px"
       poster="../../test/poster.png"> 
 
       <source id="mp4"
index 6cc1680c1cdaefc60a472b67da8430876fefea5f..62e501050b425561e0678ca61606ef45db8fdfbd 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn wikipedia Plugin", function () {
+test( "Popcorn wikipedia Plugin", function() {
   
   var popped = Popcorn( "#video" ),
       expects = 13, 
@@ -15,10 +15,10 @@ test( "Popcorn wikipedia Plugin", function () {
   
   stop();
    
-  ok ( "wikipedia" in popped, "wikipedia is a mehtod of the popped instance" );
+  ok( "wikipedia" in popped, "wikipedia is a mehtod of the popped instance" );
   plus();
   
-  equals ( theArticle.innerHTML, "", "initially, there is nothing in the wikidiv" );
+  equals( theArticle.innerHTML, "", "initially, there is nothing in the wikidiv" );
   plus();
   
   popped.wikipedia({
index 3aa709c3a42d058a7c823604e1dd563061aa4e89..96e9449138c7aeb4aadcc379d3ad6823ab041a3f 100755 (executable)
@@ -5,7 +5,7 @@
   <script src="../../popcorn.js"></script>
   <script src="popcorn.wordriver.js"></script>
   <script>
-    document.addEventListener( "DOMContentLoaded", function () {
+    document.addEventListener( "DOMContentLoaded", function() {
       var p = Popcorn( "#video" )
       .volume( 0 )
       .play()
index a217c4c197770a0e360bb944f74afdaabcae0aae..dad03661a2f1c2185ad50e018c44700a40489dad 100755 (executable)
@@ -79,7 +79,7 @@
             type: "text",
             label: "Out"
           },
-          target:  "wordriver-container",
+          target: "wordriver-container",
           text: {
             elem: "input",
             type: "text",
index cc78d2cbb9d1b0e01a9f608d872f829675402ed0..1d35b442178bd26ff22418d2248263a7b866a1d3 100755 (executable)
@@ -22,7 +22,7 @@
 
   <video id="video"
     controls preload="none"
-    width= "250px"
+    width="250px"
     poster="../../test/poster.png">
 
     <source id="mp4"
index 281c9ccadcdcab6db3b0ab8569a7da1df83558e1..9628c056d539fe661f42e650615317484ef2fa71 100755 (executable)
@@ -1,4 +1,4 @@
-test( "Popcorn wordriver Plugin", function () {
+test( "Popcorn wordriver Plugin", function() {
 
   var popped = Popcorn( "#video" ),
       expects = 17,
@@ -17,10 +17,10 @@ test( "Popcorn wordriver Plugin", function () {
 
   stop();
 
-  ok ( "wordriver" in popped, "wordriver is a method of the popped instance" );
+  ok( "wordriver" in popped, "wordriver is a method of the popped instance" );
   plus();
 
-  equals ( wordriverdiv.childElementCount, 0, "initially, there is nothing inside the wordriverdiv" );
+  equals( wordriverdiv.childElementCount, 0, "initially, there is nothing inside the wordriverdiv" );
   plus();
 
   popped.wordriver({