function plus(){
- if ( ++count == 4 ) {
+ if ( ++count === 4 ) {
equals( fired, wants, "Number of callbacks fired from 1 handler" );
});
p.trigger("play");
+
+ if (fired < 4) {
+ start();
+ }
p.unlisten("play");
var popped = Popcorn("#video"),
methods = "load play pause currentTime mute volume roundTime exec",
- expects = 22,
+ expects = 24,
count = 0;
//expect(expects);
ok( "tracks" in this.data, " complicatorinstance has `tracks` property" );
plus();
- ok( Object.prototype.toString.call(popped.data.tracks) === "[object Array]", "complicator tracks property is an array" )
+ ok( Object.prototype.toString.call(popped.data.tracks) === "[object Object]", "complicator tracks property is an object" )
plus();
},
end: function () {
breaker.end++;
- ok(true, "breaker started");
+ ok(true, "breaker ended");
plus();
end: 2
});
-
- popped.currentTime(0).play();
+ /*Popcorn.plugin("updater", function () {
+
+ return {
+
+ start: function () {
+ ok( true, "start correctly called at " + popped.currentTime());
+ plus();
+ },
+ end: function () {
+ ok( true, "end correctly called");
+ plus();
+ }
+ };
+ });
-
+ popped.updater({
+ start: 2,
+ end: 3
+ });*/
+
+ popped.currentTime(0).play();
});
+
test("Protected Names", function () {
//QUnit.reset();