Last active
August 29, 2015 14:20
Excerpt from the BookPlayerPageGenerator tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('updates chapter position property to match audio player position', function () { | |
bppg.generatePage({book: BOOK_OBJECT, chapter: chapterObjInstance}); | |
chapterObjInstance.position = -1 // set the position to a nonzero value | |
var dom_ele = $('#audioSource').trigger('timeupdate'); | |
expect(chapterObjInstance.position).equal(0); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment