From ea6249b614a281438638777ed58d7a2c8ecab679 Mon Sep 17 00:00:00 2001 From: Florrie Date: Sat, 2 Sep 2017 10:24:49 -0300 Subject: Improve test formatting, add timelineIndex-changed test --- src/pickers2.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/pickers2.js b/src/pickers2.js index b7ae460..53b76a8 100644 --- a/src/pickers2.js +++ b/src/pickers2.js @@ -104,7 +104,16 @@ const createOrderedPicker = playlist => { console.log(hm.timeline) console.log('initial length:', hm.timeline.length) for (let i = 0; i < 6; i++) { - console.log('next:', hm.getNextTrack()) - console.log('length:', hm.timeline.length) + console.log(`(${hm.timelineIndex}) next:`, hm.getNextTrack()) + console.log(`(-> ${hm.timelineIndex}) length:`, hm.timeline.length) + } + + console.log('setting timeline index to 2 (3)..') + hm.timelineIndex = 2 + console.log('current:', hm.currentTrack) + + for (let i = 0; i < 6; i++) { + console.log(`(${hm.timelineIndex}) next:`, hm.getNextTrack()) + console.log(`(-> ${hm.timelineIndex}) length:`, hm.timeline.length) } } -- cgit 1.3.0-6-gf8a5