* *Much* still to do such as auto-selection of date field, checking for end date, parsing of dates, generation of summary text etc
17 lines
418 B
JavaScript
17 lines
418 B
JavaScript
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();
|
|
});
|
|
|