popped.subtitle({
start: 0,
- end: 1,
+ end: 3,
text: 'this is the first subtitle of 2011',
language: "en",
languagesrc: "language",
accessibilitysrc: "accessibility"
} )
.subtitle({
- start: 1,
- end: 2,
+ start: 3,
+ end: 6,
text: 'this is the second subtitle of 2011',
language: "en",
languagesrc: "language",
accessibilitysrc: "accessibility"
} )
.subtitle({
- start: 3,
- end: 4,
+ start: 7,
+ end: 10,
text: 'this is the third subtitle of 2011',
language: "en",
languagesrc: "language",
subtitlediv = document.getElementById('subtitlediv');
- popped.exec( 0.5, function() {
+ popped.exec( 1.5, function() {
popped.media.pause();
equals( subtitlediv.innerHTML, "this is the first subtitle of 2011", "subtitle displaying correct information" );
});
- popped.exec( 1.5, function() {
+ popped.exec( 4.5, function() {
popped.media.pause();
// check position of subttile that should of moved with video,
});
- popped.exec( 2.5, function() {
+ popped.exec( 6.5, function() {
popped.media.pause();
equals (subtitlediv.innerHTML, "", "subtitle is clear" );
});
- popped.exec( 3.5, function() {
+ popped.exec( 8.5, function() {
popped.media.play();
equals (subtitlediv.innerHTML, "this is the third subtitle of 2011", "subtitle displaying correct information" );