test("Popcorn attribution Plugin", function () {
var popped = Popcorn("#video"),
- expects = 9,
+ expects = 10,
count = 0,
setupId,
attributiondiv = document.getElementById('attribdiv');
end: 2, // seconds
nameofwork: "A Shared Culture",
copyrightholder:"Jesse Dylan",
- license: "CC-BY-N6",
licenseurl: "http://creativecommons.org/licenses/by-nc/2.0/",
target: 'attribdiv'
} )
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" );
+ plus();
});
popped.exec( 4, function() {