[#73,view/timeline][l]: functioning timeline view using VeriteCo Timeline library.
* *Much* still to do such as auto-selection of date field, checking for end date, parsing of dates, generation of summary text etc
This commit is contained in:
16
test/view-timeline.test.js
Normal file
16
test/view-timeline.test.js
Normal file
@@ -0,0 +1,16 @@
|
||||
module("View - Timeline");
|
||||
|
||||
test('basics', function () {
|
||||
var dataset = Fixture.getDataset();
|
||||
var view = new recline.View.Timeline({
|
||||
model: dataset
|
||||
});
|
||||
$('.fixtures').append(view.el);
|
||||
view.initTimeline();
|
||||
assertPresent('.vmm-timeline', view.el);
|
||||
assertPresent('.timenav', view.el);
|
||||
assertPresent('.timenav', view.el);
|
||||
equal('2011', view.el.find('.marker.active h4').text());
|
||||
view.remove();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user