});
-
+ // Plugin manifests
+ Popcorn.manifest = {};
// Plugins are registered
Popcorn.registry = [];
// An interface for extending Popcorn
Popcorn.registry.push(plugin);
+ if ( !!( "manifest" in setup ) ) {
+
+ // Augment the manifest object
+ Popcorn.manifest[ name ] = setup.manifest;
+ }
+
return plugin;
};
});
module("Popcorn Plugin")
+test("Manifest", function () {
+
+ Popcorn.plugin( "footnote" , (function(){
+
+ return {
+ manifest: {
+ about:{
+ name: "Popcorn Manifest Plugin",
+ version: "0.0",
+ author: "Rick Waldron",
+ website: ""
+ },
+ options: {
+ start : { elem:'input', type:'text', label:'In' },
+ end : { elem:'input', type:'text', label:'Out' },
+ text : { elem:'input', type:'text', label:'Manifest Text' },
+ target : 'text-container'
+ }
+ },
+ start: function(event, options){
+ },
+
+ end: function(event, options){
+
+ }
+
+ };
+
+ })());
+
+
+ expect(1);
+
+ equal( Popcorn.sizeOf( Popcorn.manifest ), 1, "One manifest stored" );
+
+ // add more tests
+
+ Popcorn("#video").removePlugin("footnote");
+});
test("Update Timer", function () {